Skip to content

support protocol based buffer split

Yuan Wang dpdk-dev 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest4 patches 2 repliesIn review
  2. v84 patches 6 repliesSuperseded
  3. v74 patches 9 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v64 patches1 replySuperseded
v54 patches1 replySuperseded
v44 patches0 repliesSuperseded
v34 patches8 repliesSuperseded
v24 patches0 repliesSuperseded
v14 patches0 repliesSuperseded

Changes in v9 from the cover letter

Define the intend behaviors for exact match and longest match. Add protocol headers repeat check.
Add no proto-split after length-based split check. Add a helper function to short the check function. Refine the doc and commit log.

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ethdev: introduce protocol header APIdoc/guides/nics/features.rst doc/guides/rel_notes/release_22_11.rst lib/ethdev/ethdev_driver.h +3 more+85 -10 replies
2/4ethdev: introduce protocol hdr based buffer splitdoc/guides/rel_notes/release_22_11.rst lib/ethdev/rte_ethdev.c lib/ethdev/rte_ethdev.h+127 -120 replies
3/4app/testpmd: add rxhdrs commands and parametersapp/test-pmd/cmdline.c app/test-pmd/config.c app/test-pmd/parameters.c +3 more+303 -90 replies
4/4net/ice: support buffer split in Rx pathdoc/guides/nics/features/default.ini doc/guides/nics/features/ice.ini doc/guides/rel_notes/release_22_11.rst +4 more+314 -320 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchAndrew Rybchenko
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [PATCH v9 0/4] support protocol based buffer split

Protocol type based buffer split consists of splitting a received packet into several separate segments based on the packet content. It is useful in some scenarios, such as GPU acceleration. The splitting will help to enable true zero copy and hence improve the performance significantly.

This patchset aims to support protocol header split based on current buffer split. When Rx queue is configured with RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT offload and corresponding protocol, packets received will be directly split into different mempools.

Change log:
v9:
Define the intend behaviors for exact match and longest match. Add protocol headers repeat check.
Add no proto-split after length-based split check. Add a helper function to short the check function. Refine the doc and commit log.

v8:
Restrict length == 0 and proto_hdr == 0 in another buffer split. Add check for proto_hdr == 0 in last segment.
Use heap instead of stack for array to avoid vulnerabilities. Define the proto_hdr for two segments and multi-segments, respectively. Separate variable definition and code.
Refine the doc and commit log.

v7:
ice: Fix CI issue.

v6:
ice: Fix proto_hdr mappings to NIC configuration.

v5:
Define proto_hdr to use mask instead of single protocol type. Define PMD to return protocol header mask.
Refine the doc and commit log.
Remove deprecated RTE_FUNC_PTR_OR_ERR_RET.

v4:
Change proto_hdr to a bit mask of RTE_PTYPE_*.
Add the description on how to put the unsplit packages. Use proto_hdr to determine whether to use protocol based split.

v3:
Fix mail thread.

v2:
Add mbuf dump to the driver's buffer split path. Add buffer split to the driver feature list. Remove unsupported header protocols from the driver.

Yuan Wang (4):
ethdev: introduce protocol header API
ethdev: introduce protocol hdr based buffer split app/testpmd: add rxhdrs commands and parameters net/ice: support buffer split in Rx path

 app/test-pmd/cmdline.c                      | 152 ++++++++++-
 app/test-pmd/config.c                       | 108 ++++++++
 app/test-pmd/parameters.c                   |  16 +-
 app/test-pmd/testpmd.c                      |  11 +-
 app/test-pmd/testpmd.h                      |   6 +
 doc/guides/nics/features.rst                |   2 +-
 doc/guides/nics/features/default.ini        |   1 +
 doc/guides/nics/features/ice.ini            |   1 +
 doc/guides/rel_notes/release_22_11.rst      |  16 ++
 doc/guides/testpmd_app_ug/testpmd_funcs.rst |  19 +-
 drivers/net/ice/ice_ethdev.c                |  58 ++++-
 drivers/net/ice/ice_rxtx.c                  | 263 +++++++++++++++++---
 drivers/net/ice/ice_rxtx.h                  |  16 ++
 drivers/net/ice/ice_rxtx_vec_common.h       |   3 +
 lib/ethdev/ethdev_driver.h                  |  15 ++
 lib/ethdev/rte_ethdev.c                     | 128 +++++++++-
 lib/ethdev/rte_ethdev.h                     |  67 ++++-
 lib/ethdev/version.map                      |   1 +
 18 files changed, 829 insertions(+), 54 deletions(-)
Signature · 1 line
2.25.1