Skip to content

remove mbuf timestamp

Thomas Monjalon dpdk-dev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest16 patches 7 repliesIn review
  2. v416 patches 6 repliesSuperseded
  3. v316 patches 13 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v214 patches13 repliesSuperseded
v115 patches49 repliesSuperseded

Changes in v5 from the cover letter

- add a blank line between different kind of ARK variables
- move registration after octeontx2 VF config
- register also in otx2_nix_timesync_enable

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16eventdev: remove software Rx timestampdoc/guides/prog_guide/event_ethernet_rx_adapter.rst lib/librte_eventdev/rte_event_eth_rx_adapter.c lib/librte_eventdev/rte_event_eth_rx_adapter.h+2 -210 replies
2/16mbuf: add Rx timestamp flag and helperslib/librte_mbuf/rte_mbuf_dyn.c lib/librte_mbuf/rte_mbuf_dyn.h lib/librte_mbuf/version.map+72 -50 replies
3/16latency: switch Rx timestamp to dynamic mbuf fieldlib/librte_latencystats/rte_latencystats.c+25 -50 replies
4/16net/ark: switch Rx timestamp to dynamic mbuf fielddrivers/net/ark/ark_ethdev.c drivers/net/ark/ark_ethdev_rx.c drivers/net/ark/ark_ethdev_rx.h+25 -10 replies
5/16net/dpaa2: switch Rx timestamp to dynamic mbuf fielddrivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_ethdev.h drivers/net/dpaa2/dpaa2_rxtx.c+31 -70 replies
6/16net/mlx5: fix dynamic mbuf offset lookup checkdrivers/net/mlx5/mlx5_rxtx.c drivers/net/mlx5/mlx5_trigger.c drivers/net/mlx5/mlx5_txq.c+4 -40 replies
7/16net/mlx5: switch Rx timestamp to dynamic mbuf fielddrivers/net/mlx5/mlx5_rxq.c drivers/net/mlx5/mlx5_rxtx.c drivers/net/mlx5/mlx5_rxtx.h +3 more+90 -600 replies
8/16net/nfb: switch Rx timestamp to dynamic mbuf fielddrivers/net/nfb/nfb_rx.c drivers/net/nfb/nfb_rx.h+31 -50 replies
9/16net/octeontx2: switch Rx timestamp to dynamic mbuf fielddrivers/net/octeontx2/otx2_ethdev.c drivers/net/octeontx2/otx2_ptp.c drivers/net/octeontx2/otx2_rx.h+34 -30 replies
10/16net/pcap: switch Rx timestamp to dynamic mbuf fielddrivers/net/pcap/rte_eth_pcap.c+17 -30 replies
11/16app/testpmd: switch Rx timestamp to dynamic mbuf fieldapp/test-pmd/util.c+36 -20 replies
12/16examples/rxtx_callbacks: switch timestamp to dynamic fieldexamples/rxtx_callbacks/main.c+15 -10 replies
13/16ethdev: add doxygen comment for Rx timestamp APIlib/librte_ethdev/rte_ethdev.h+6 -11 reply
14/16mbuf: remove deprecated timestamp fieldapp/test/test_mbuf.c doc/guides/rel_notes/deprecation.rst doc/guides/rel_notes/release_20_11.rst +4 more+8 -180 replies
15/16mbuf: add Tx timestamp registration helperlib/librte_mbuf/rte_mbuf_dyn.c lib/librte_mbuf/rte_mbuf_dyn.h lib/librte_mbuf/version.map+30 -00 replies
16/16ethdev: include mbuf registration in Tx timestamp APIapp/test-pmd/config.c doc/guides/nics/mlx5.rst drivers/net/mlx5/mlx5_ethdev.c +1 more+14 -440 replies

Reviews trailers per patch

All 16 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid MarchandAndrew RybchenkoHemant AgrawalViacheslav OvsiienkoRuifeng WangDavid ChristensenAjit KhapardeRay KinsellaOlivier Matz
SeriesA-b
1/16A-b
2/16A-b A-b
3/16A-b
4/16A-b
5/16A-b A-b
6/16A-b A-b
7/16A-b A-b R-b R-b
8/16A-b
9/16A-b
10/16A-b
11/16A-b
12/16A-b
13/16A-b A-b A-b
14/16A-b R-b A-b A-b
15/16A-b A-b
16/16A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 9 reviewers.

Read the v5 thread

Cover letter [dpdk-dev] [PATCH v5 00/16] remove mbuf timestamp

The mbuf field timestamp was announced to be removed for three reasons:
- a dynamic field already exist, used for Tx only
- this field always used 8 bytes even if unneeded
- this field is in the first half (cacheline) of mbuf

After this series, the dynamic field timestamp is used for both Rx and Tx with separate dynamic flags to distinguish when the value is meaningful without resetting the field during forwarding.

As a consequence, 8 bytes can be re-allocated to dynamic fields in the first half of mbuf structure.
It is still open to change more the mbuf layout.

This mbuf layout change is important to allow adding more features (consuming more dynamic fields) during the next year,
and can allow performance improvements with new usages in the first half.

v5:
- add a blank line between different kind of ARK variables
- move registration after octeontx2 VF config
- register also in otx2_nix_timesync_enable

v4:
- use local variable in nfb
- fix flag initialization
- remove useless blank line

v3:
- move ark variables declaration in a .h file
- improve cache locality for octeontx2
- add comments about cache locality in commit logs
- add comment for unused flag offset 17
- add timestamp register functions
- replace lookup with register in drivers and apps
- remove register in ethdev

v2:
- remove optimization to register only once in ethdev
- fix error message in latencystats
- convert rxtx_callbacks macro to inline function
- increase dynamic fields space
- do not move pool field

Thomas Monjalon (16):
eventdev: remove software Rx timestamp
mbuf: add Rx timestamp flag and helpers
latency: switch Rx timestamp to dynamic mbuf field net/ark: switch Rx timestamp to dynamic mbuf field net/dpaa2: switch Rx timestamp to dynamic mbuf field net/mlx5: fix dynamic mbuf offset lookup check net/mlx5: switch Rx timestamp to dynamic mbuf field net/nfb: switch Rx timestamp to dynamic mbuf field net/octeontx2: switch Rx timestamp to dynamic mbuf field net/pcap: switch Rx timestamp to dynamic mbuf field app/testpmd: switch Rx timestamp to dynamic mbuf field examples/rxtx_callbacks: switch timestamp to dynamic field
ethdev: add doxygen comment for Rx timestamp API
mbuf: remove deprecated timestamp field
mbuf: add Tx timestamp registration helper
ethdev: include mbuf registration in Tx timestamp API

 app/test-pmd/config.c                         | 38 -------------
 app/test-pmd/util.c                           | 38 ++++++++++++-
 app/test/test_mbuf.c                          |  1 -
 doc/guides/nics/mlx5.rst                      |  5 +-
 .../prog_guide/event_ethernet_rx_adapter.rst  |  6 +-
 doc/guides/rel_notes/deprecation.rst          |  4 --
 doc/guides/rel_notes/release_20_11.rst        |  4 ++
 drivers/net/ark/ark_ethdev.c                  | 17 ++++++
 drivers/net/ark/ark_ethdev_rx.c               |  7 ++-
 drivers/net/ark/ark_ethdev_rx.h               |  2 +
 drivers/net/dpaa2/dpaa2_ethdev.c              | 11 ++++
 drivers/net/dpaa2/dpaa2_ethdev.h              |  2 +
 drivers/net/dpaa2/dpaa2_rxtx.c                | 25 ++++++---
 drivers/net/mlx5/mlx5_ethdev.c                |  8 ++-
 drivers/net/mlx5/mlx5_rxq.c                   |  8 +++
 drivers/net/mlx5/mlx5_rxtx.c                  |  8 +--
 drivers/net/mlx5/mlx5_rxtx.h                  | 19 +++++++
 drivers/net/mlx5/mlx5_rxtx_vec_altivec.h      | 41 +++++++-------
 drivers/net/mlx5/mlx5_rxtx_vec_neon.h         | 43 ++++++++-------
 drivers/net/mlx5/mlx5_rxtx_vec_sse.h          | 35 ++++++------
 drivers/net/mlx5/mlx5_trigger.c               |  2 +-
 drivers/net/mlx5/mlx5_txq.c                   |  2 +-
 drivers/net/nfb/nfb_rx.c                      | 15 ++++-
 drivers/net/nfb/nfb_rx.h                      | 21 +++++--
 drivers/net/octeontx2/otx2_ethdev.c           | 10 ++++
 drivers/net/octeontx2/otx2_ptp.c              |  8 +++
 drivers/net/octeontx2/otx2_rx.h               | 19 ++++++-
 drivers/net/pcap/rte_eth_pcap.c               | 20 ++++++-
 examples/rxtx_callbacks/main.c                | 16 +++++-
 lib/librte_ethdev/rte_ethdev.h                | 14 ++++-
 .../rte_event_eth_rx_adapter.c                | 11 ----
 .../rte_event_eth_rx_adapter.h                |  6 +-
 lib/librte_latencystats/rte_latencystats.c    | 30 ++++++++--
 lib/librte_mbuf/rte_mbuf.c                    |  2 -
 lib/librte_mbuf/rte_mbuf.h                    |  2 +-
 lib/librte_mbuf/rte_mbuf_core.h               | 12 +---
 lib/librte_mbuf/rte_mbuf_dyn.c                | 51 +++++++++++++++++
 lib/librte_mbuf/rte_mbuf_dyn.h                | 55 +++++++++++++++++--
 lib/librte_mbuf/version.map                   |  2 +
 39 files changed, 440 insertions(+), 180 deletions(-)
Signature · 1 line
2.28.0