Skip to content

add support for cpfl PMD in DPDK

Mingxia Liu dpdk-dev 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest21 patches 6 repliesIn review
  2. v821 patches 8 repliesSuperseded
  3. v721 patches 45 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v621 patches2 repliesSuperseded
v521 patches2 repliesSuperseded
v421 patches0 repliesSuperseded
v321 patches0 repliesSuperseded
v221 patches2 repliesSuperseded
v121 patches0 repliesSuperseded

Changes in v9 from the cover letter

- refine cpfl_pci_probe(), remove redundant code.

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21net/cpfl: support device initializationMAINTAINERS doc/guides/nics/cpfl.rst doc/guides/nics/features/cpfl.ini +7 more+998 -05 replies
2/21net/cpfl: add Tx queue setupdrivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_rxtx.c drivers/net/cpfl/cpfl_rxtx.h +1 more+283 -00 replies
3/21net/cpfl: add Rx queue setupdrivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_rxtx.c drivers/net/cpfl/cpfl_rxtx.h+249 -00 replies
4/21net/cpfl: support device start and stopdrivers/net/cpfl/cpfl_ethdev.c+35 -00 replies
5/21net/cpfl: support queue startdrivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_rxtx.c drivers/net/cpfl/cpfl_rxtx.h+183 -00 replies
6/21net/cpfl: support queue stopdrivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_rxtx.c drivers/net/cpfl/cpfl_rxtx.h+110 -10 replies
7/21net/cpfl: support queue releasedrivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_rxtx.c drivers/net/cpfl/cpfl_rxtx.h+28 -00 replies
8/21net/cpfl: support MTU configurationdoc/guides/nics/features/cpfl.ini drivers/net/cpfl/cpfl_ethdev.c+28 -00 replies
9/21net/cpfl: support basic Rx data pathdrivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_rxtx.c drivers/net/cpfl/cpfl_rxtx.h+21 -00 replies
10/21net/cpfl: support basic Tx data pathdrivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_rxtx.c drivers/net/cpfl/cpfl_rxtx.h+24 -00 replies
11/21net/cpfl: support write back based on ITR expiredrivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_ethdev.h+46 -10 replies
12/21net/cpfl: support RSSdrivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_ethdev.h+75 -00 replies
13/21net/cpfl: support Rx offloadingdoc/guides/nics/features/cpfl.ini drivers/net/cpfl/cpfl_ethdev.c+8 -00 replies
14/21net/cpfl: support Tx offloadingdoc/guides/nics/features/cpfl.ini drivers/net/cpfl/cpfl_ethdev.c+8 -10 replies
15/21net/cpfl: add AVX512 data path for single queue modeldoc/guides/nics/cpfl.rst drivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_rxtx.c +2 more+242 -30 replies
16/21net/cpfl: support timestamp offloaddrivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_rxtx.c+9 -10 replies
17/21net/cpfl: add AVX512 data path for split queue modeldrivers/net/cpfl/cpfl_rxtx.c drivers/net/cpfl/cpfl_rxtx_vec_common.h drivers/net/cpfl/meson.build+75 -70 replies
18/21net/cpfl: add HW statisticsdrivers/net/cpfl/cpfl_ethdev.c+87 -00 replies
19/21net/cpfl: add RSS set/get opsdrivers/net/cpfl/cpfl_ethdev.c+270 -10 replies
20/21net/cpfl: support scalar scatter Rx datapath for single queue modeldrivers/net/cpfl/cpfl_ethdev.c drivers/net/cpfl/cpfl_rxtx.c drivers/net/cpfl/cpfl_rxtx.h+31 -10 replies
21/21net/cpfl: add xstats opsdrivers/net/cpfl/cpfl_ethdev.c+79 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.

Read the v9 thread

Cover letter [PATCH v9 00/21] add support for cpfl PMD in DPDK

The patchset introduced the cpfl (Control Plane Function Library) PMD for Intel® IPU E2100’s Configure Physical Function (Device ID: 0x1453)

The cpfl PMD inherits all the features from idpf PMD which will follow an ongoing standard data plan function spec
https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=idpf
Besides, it will also support more device specific hardware offloading features from DPDK’s control path (e.g.: hairpin, rte_flow …). which is different from idpf PMD, and that's why we need a new cpfl PMD.

This patchset mainly focuses on idpf PMD’s equivalent features. To avoid duplicated code, the patchset depends on below patchsets which move the common part from net/idpf into common/idpf as a shared library.

v2 changes:
- rebase to the new baseline.
- Fix rss lut config issue.
v3 changes:
- rebase to the new baseline.
v4 changes:
- Resend v3. No code changed.
v5 changes:
- rebase to the new baseline.
- optimize some code
- give "not supported" tips when user want to config rss hash type
- if stats reset fails at initialization time, don't rollback, just print ERROR info
v6 changes:
- for small fixed size structure, change rte_memcpy to memcpy()
- fix compilation for AVX512DQ
- update cpfl maintainers
v7 changes:
- add dependency in cover-letter
v8 changes:
- improve documentation and commit msg
- optimize function cpfl_dev_link_update()
- refine devargs check
v9 changes:
- refine cpfl_pci_probe(), remove redundant code.

This patchset is based on the idpf PMD code for refining Rx/Tx queue model info:
http://patches.dpdk.org/project/dpdk/patch/[email protected]/

Mingxia Liu (21):
net/cpfl: support device initialization
net/cpfl: add Tx queue setup
net/cpfl: add Rx queue setup
net/cpfl: support device start and stop
net/cpfl: support queue start
net/cpfl: support queue stop
net/cpfl: support queue release
net/cpfl: support MTU configuration
net/cpfl: support basic Rx data path
net/cpfl: support basic Tx data path
net/cpfl: support write back based on ITR expire net/cpfl: support RSS
net/cpfl: support Rx offloading
net/cpfl: support Tx offloading
net/cpfl: add AVX512 data path for single queue model net/cpfl: support timestamp offload
net/cpfl: add AVX512 data path for split queue model net/cpfl: add HW statistics
net/cpfl: add RSS set/get ops
net/cpfl: support scalar scatter Rx datapath for single queue model net/cpfl: add xstats ops

 MAINTAINERS                             |    8 +
 doc/guides/nics/cpfl.rst                |  107 ++
 doc/guides/nics/features/cpfl.ini       |   16 +
 doc/guides/nics/index.rst               |    1 +
 doc/guides/rel_notes/release_23_03.rst  |    6 +
 drivers/net/cpfl/cpfl_ethdev.c          | 1460 +++++++++++++++++++++++
 drivers/net/cpfl/cpfl_ethdev.h          |   94 ++
 drivers/net/cpfl/cpfl_logs.h            |   29 +
 drivers/net/cpfl/cpfl_rxtx.c            |  951 +++++++++++++++
 drivers/net/cpfl/cpfl_rxtx.h            |   44 +
 drivers/net/cpfl/cpfl_rxtx_vec_common.h |  116 ++
 drivers/net/cpfl/meson.build            |   40 +
 drivers/net/meson.build                 |    1 +
 13 files changed, 2873 insertions(+)
 create mode 100644 doc/guides/nics/cpfl.rst
 create mode 100644 doc/guides/nics/features/cpfl.ini
 create mode 100644 drivers/net/cpfl/cpfl_ethdev.c
 create mode 100644 drivers/net/cpfl/cpfl_ethdev.h
 create mode 100644 drivers/net/cpfl/cpfl_logs.h
 create mode 100644 drivers/net/cpfl/cpfl_rxtx.c
 create mode 100644 drivers/net/cpfl/cpfl_rxtx.h
 create mode 100644 drivers/net/cpfl/cpfl_rxtx_vec_common.h
 create mode 100644 drivers/net/cpfl/meson.build
Signature · 1 line
2.34.1