Skip to content

net/sxe2: re-align with reference and fix review findings

[email protected] dpdk-dev 9 versions – Applied

Status from this message: Applied to next-net

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest48 patches 1 replyApplied
  2. v948 patches 1 replySuperseded
  3. v849 patches 1 replySuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v7 posting 2/247 patches2 repliesSuperseded
v7 posting 1/220 of 47 patches0 repliesSuperseded
v645 patches1 replySuperseded
v545 patches0 repliesSuperseded
v444 patches1 replySuperseded
v351 patches1 replySuperseded

Changes in v10 from the cover letter

- correct the commit message of the link state refresh patch: the sxe2_link_update() call in sxe2_link_update_init() is kept, not removed, and is now conditional on a successful link status read so the initial link state is still populated at init
- return the error from rte_eth_devargs_parse() directly on the devargs parse failure paths: that function does not set rte_errno, so returning -rte_errno could yield 0 and let probing continue with an empty eth_da after a parse failure

Patches in v10 Applied

#Subject and filesSizeRepliesApplied
1/48common/sxe2: fix null pointer in class driver removedrivers/common/sxe2/sxe2_common.c+5 -10 replies
2/48common/sxe2: allow munmap during kernel resetdrivers/common/sxe2/sxe2_ioctl_chnl.c+1 -70 replies
3/48net/sxe2: fix VF PCI device IDdrivers/net/sxe2/sxe2_ethdev.c+1 -10 replies
4/48net/sxe2: fix MSIX register width in PF map tabledrivers/net/sxe2/sxe2_ethdev.c+1 -10 replies
5/48net/sxe2: restore PF and port index caps assignmentdrivers/net/sxe2/sxe2_ethdev.c+2 -20 replies
6/48net/sxe2: fix VSI lifecycle managementdrivers/net/sxe2/sxe2_vsi.c+10 -210 replies
7/48net/sxe2: initialize stats in representor device initdrivers/net/sxe2/sxe2_ethdev_repr.c+8 -00 replies
8/48net/sxe2: use base device name for representor namingdrivers/net/sxe2/sxe2_ethdev_repr.c+4 -40 replies
9/48net/sxe2: propagate LSC event to VF representorsdrivers/net/sxe2/sxe2_irq.c+20 -20 replies
10/48net/sxe2: clear security context pointer on uninitdrivers/net/sxe2/sxe2_security.c+1 -00 replies
11/48net/sxe2: rename representor VSI ID fieldsdrivers/net/sxe2/sxe2_dump.c drivers/net/sxe2/sxe2_ethdev.h drivers/net/sxe2/sxe2_flow.c +1 more+10 -100 replies
12/48net/sxe2: clean up duplicate function declarationsdrivers/net/sxe2/sxe2_cmd_chnl.h drivers/net/sxe2/sxe2_ethdev.h drivers/net/sxe2/sxe2_txrx_poll.h+0 -100 replies
13/48net/sxe2: fix null VSI dereference in device infodrivers/net/sxe2/sxe2_ethdev.c+4 -00 replies
14/48net/sxe2: fill MAC addresses in device infodrivers/net/sxe2/sxe2_ethdev.c+1 -00 replies
15/48net/sxe2: fix QinQ and RSS offload capability reportdrivers/net/sxe2/sxe2_ethdev.c+13 -80 replies
16/48net/sxe2: use regular write for mapped registersdrivers/net/sxe2/sxe2_ethdev.c drivers/net/sxe2/sxe2_ethdev.h+3 -10 replies
17/48net/sxe2: move PCI register read macro to common headerdrivers/net/sxe2/sxe2_ethdev.h drivers/net/sxe2/sxe2_queue.h+1 -20 replies
18/48net/sxe2: validate PCI map resource typedrivers/net/sxe2/sxe2_ethdev.c+6 -00 replies
19/48net/sxe2: guard PCI BAR unmap when not initializeddrivers/net/sxe2/sxe2_ethdev.c+6 -80 replies
20/48net/sxe2: fix duplicated cleanup in dev closedrivers/net/sxe2/sxe2_ethdev.c+2 -40 replies
21/48net/sxe2: align dev init and cleanup orderdrivers/net/sxe2/sxe2_ethdev.c+8 -80 replies
22/48net/sxe2: simplify switchdev representor matchingdrivers/net/sxe2/sxe2_ethdev.c drivers/net/sxe2/sxe2_ethdev.h+37 -380 replies
23/48net/sxe2: rename fnav cid manager symbols to flowdrivers/net/sxe2/sxe2_cmd_chnl.c drivers/net/sxe2/sxe2_cmd_chnl.h drivers/net/sxe2/sxe2_flow.c +2 more+34 -340 replies
24/48net/sxe2: move tunnel port helpers into flow moduledrivers/net/sxe2/sxe2_flow.c drivers/net/sxe2/sxe2_flow_parse_pattern.c drivers/net/sxe2/sxe2_flow_parse_pattern.h+113 -1190 replies
25/48net/sxe2: add ACL engine event statistics supportdoc/guides/nics/sxe2.rst drivers/net/sxe2/sxe2_cmd_chnl.c drivers/net/sxe2/sxe2_cmd_chnl.h +7 more+209 -360 replies
26/48net/sxe2: enable FDIR on all Rx queuesdrivers/net/sxe2/sxe2_queue.c+2 -00 replies
27/48net/sxe2: refactor primary process MP message handlingdrivers/net/sxe2/sxe2_mp.c+34 -250 replies
28/48net/sxe2: refactor Tx queue reset operationsdrivers/net/sxe2/sxe2_tx.c drivers/net/sxe2/sxe2_tx.h drivers/net/sxe2/sxe2_txrx_vec.c+49 -140 replies
29/48net/sxe2: unify vectorized Tx buffer handlingdrivers/net/sxe2/sxe2_queue.h drivers/net/sxe2/sxe2_txrx_vec.c drivers/net/sxe2/sxe2_txrx_vec_avx2.c +4 more+40 -1940 replies
30/48net/sxe2: optimize NEON Tx descriptor filldrivers/net/sxe2/sxe2_txrx_vec_neon.c+70 -70 replies
31/48net/sxe2: fix NEON Rx ptype mapping and memory orderingdrivers/net/sxe2/sxe2_txrx_vec_neon.c+70 -660 replies
32/48net/sxe2: refine vectorized Tx/Rx mode setupdrivers/net/sxe2/sxe2_rx.c drivers/net/sxe2/sxe2_txrx.c+17 -60 replies
33/48net/sxe2: fix RSS action attribute validationdrivers/net/sxe2/sxe2_flow_parse_action.c+10 -40 replies
34/48net/sxe2: restore PF-only guard in UDP tunnel port adddrivers/net/sxe2/sxe2_ethdev.c+11 -00 replies
35/48net/sxe2: refresh link state on link change eventsdrivers/net/sxe2/sxe2_irq.c drivers/net/sxe2/sxe2_mac.c+5 -80 replies
36/48net/sxe2: validate representor ID against VF countdrivers/net/sxe2/sxe2_switchdev.c+6 -00 replies
37/48net/sxe2: use primary VSI ID for representor VSIdrivers/net/sxe2/sxe2_switchdev.c+1 -40 replies
38/48net/sxe2: wrap command params fill debug log in macrodrivers/net/sxe2/sxe2_cmd_chnl.c+6 -40 replies
39/48net/sxe2: restore Rx queue buffer split fill supportdrivers/net/sxe2/sxe2_cmd_chnl.c+88 -00 replies
40/48net/sxe2: skip tunnel config fill on get failuredrivers/net/sxe2/sxe2_cmd_chnl.c+4 -20 replies
41/48net/sxe2: skip flow ID assignment on filter add failuredrivers/net/sxe2/sxe2_cmd_chnl.c+5 -10 replies
42/48net/sxe2: correct command channel log messagesdrivers/net/sxe2/sxe2_cmd_chnl.c+8 -80 replies
43/48net/sxe2: align command structs with kernel layoutdrivers/net/sxe2/sxe2_drv_cmd.h+12 -140 replies
44/48common/sxe2: fix ioctl channel log and close handlingdrivers/common/sxe2/sxe2_ioctl_chnl.c+8 -50 replies
45/48doc/sxe2: remove drv-SW-stats parameter documentationdoc/guides/nics/sxe2.rst+2 -290 replies
46/48net/sxe2: remove ineffective representor queue countsdrivers/net/sxe2/sxe2_ethdev_repr.c+1 -30 replies
47/48net/sxe2: fix VEC mode selection in mode set functionsdrivers/net/sxe2/sxe2_txrx.c+6 -80 replies
48/48net/sxe2: fix devargs parse error check for representorsdrivers/net/sxe2/sxe2_ethdev.c+4 -40 replies

Reviews trailers per patch

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

Read the v10 thread

Cover letter [PATCH v10 00/48] net/sxe2: re-align with reference and fix review findings

From: Jie Liu <[email protected]>

This series updates the SXE2 poll mode driver (drivers/net/sxe2) and its common library (drivers/common/sxe2), fixing issues found in the previous version and re-aligning the driver with the reference implementation.

Changes since v9:
- correct the commit message of the link state refresh patch: the sxe2_link_update() call in sxe2_link_update_init() is kept, not removed, and is now conditional on a successful link status read so the initial link state is still populated at init
- return the error from rte_eth_devargs_parse() directly on the devargs parse failure paths: that function does not set rte_errno, so returning -rte_errno could yield 0 and let probing continue with an empty eth_da after a parse failure

Jie Liu (48):
common/sxe2: fix null pointer in class driver remove common/sxe2: allow munmap during kernel reset net/sxe2: fix VF PCI device ID
net/sxe2: fix MSIX register width in PF map table net/sxe2: restore PF and port index caps assignment net/sxe2: fix VSI lifecycle management net/sxe2: initialize stats in representor device init net/sxe2: use base device name for representor naming net/sxe2: propagate LSC event to VF representors net/sxe2: clear security context pointer on uninit net/sxe2: rename representor VSI ID fields net/sxe2: clean up duplicate function declarations net/sxe2: fix null VSI dereference in device info net/sxe2: fill MAC addresses in device info net/sxe2: fix QinQ and RSS offload capability report net/sxe2: use regular write for mapped registers net/sxe2: move PCI register read macro to common header net/sxe2: validate PCI map resource type net/sxe2: guard PCI BAR unmap when not initialized net/sxe2: fix duplicated cleanup in dev close net/sxe2: align dev init and cleanup order net/sxe2: simplify switchdev representor matching net/sxe2: rename fnav cid manager symbols to flow net/sxe2: move tunnel port helpers into flow module net/sxe2: add ACL engine event statistics support net/sxe2: enable FDIR on all Rx queues net/sxe2: refactor primary process MP message handling net/sxe2: refactor Tx queue reset operations net/sxe2: unify vectorized Tx buffer handling net/sxe2: optimize NEON Tx descriptor fill net/sxe2: fix NEON Rx ptype mapping and memory ordering net/sxe2: refine vectorized Tx/Rx mode setup net/sxe2: fix RSS action attribute validation net/sxe2: restore PF-only guard in UDP tunnel port add net/sxe2: refresh link state on link change events net/sxe2: validate representor ID against VF count net/sxe2: use primary VSI ID for representor VSI net/sxe2: wrap command params fill debug log in macro net/sxe2: restore Rx queue buffer split fill support net/sxe2: skip tunnel config fill on get failure net/sxe2: skip flow ID assignment on filter add failure net/sxe2: correct command channel log messages net/sxe2: align command structs with kernel layout common/sxe2: fix ioctl channel log and close handling doc/sxe2: remove drv-SW-stats parameter documentation net/sxe2: remove ineffective representor queue counts net/sxe2: fix VEC mode selection in mode set functions net/sxe2: fix devargs parse error check for representors

 doc/guides/nics/sxe2.rst                   |  40 ++--
 drivers/common/sxe2/sxe2_common.c          |   6 +-
 drivers/common/sxe2/sxe2_ioctl_chnl.c      |  21 +-
 drivers/net/sxe2/sxe2_cmd_chnl.c           | 199 +++++++++++++++--
 drivers/net/sxe2/sxe2_cmd_chnl.h           |  15 +-
 drivers/net/sxe2/sxe2_drv_cmd.h            |  33 +--
 drivers/net/sxe2/sxe2_dump.c               |  10 +-
 drivers/net/sxe2/sxe2_ethdev.c             | 192 ++++++++++-------
 drivers/net/sxe2/sxe2_ethdev.h             |  13 +-
 drivers/net/sxe2/sxe2_ethdev_repr.c        |  20 +-
 drivers/net/sxe2/sxe2_flow.c               | 235 ++++++++++++++++++---
 drivers/net/sxe2/sxe2_flow.h               |   6 +-
 drivers/net/sxe2/sxe2_flow_define.h        |  15 +-
 drivers/net/sxe2/sxe2_flow_parse_action.c  |  42 ++--
 drivers/net/sxe2/sxe2_flow_parse_pattern.c | 113 ----------
 drivers/net/sxe2/sxe2_flow_parse_pattern.h |   6 -
 drivers/net/sxe2/sxe2_irq.c                |  24 ++-
 drivers/net/sxe2/sxe2_mac.c                |  11 +-
 drivers/net/sxe2/sxe2_mp.c                 |  59 +++---
 drivers/net/sxe2/sxe2_queue.c              |   2 +
 drivers/net/sxe2/sxe2_queue.h              |   7 +-
 drivers/net/sxe2/sxe2_rx.c                 |   3 +-
 drivers/net/sxe2/sxe2_security.c           |   1 +
 drivers/net/sxe2/sxe2_switchdev.c          |  15 +-
 drivers/net/sxe2/sxe2_tx.c                 |  42 +++-
 drivers/net/sxe2/sxe2_tx.h                 |   4 +
 drivers/net/sxe2/sxe2_txrx.c               |  34 +--
 drivers/net/sxe2/sxe2_txrx_poll.h          |   2 -
 drivers/net/sxe2/sxe2_txrx_vec.c           |  74 +++----
 drivers/net/sxe2/sxe2_txrx_vec_avx2.c      |  10 +-
 drivers/net/sxe2/sxe2_txrx_vec_avx512.c    | 133 +-----------
 drivers/net/sxe2/sxe2_txrx_vec_common.h    |   9 +-
 drivers/net/sxe2/sxe2_txrx_vec_neon.c      | 223 ++++++++++++-------
 drivers/net/sxe2/sxe2_txrx_vec_sse.c       |  10 +-
 drivers/net/sxe2/sxe2_vsi.c                |  31 +--
 35 files changed, 948 insertions(+), 712 deletions(-)
Signature · 1 line
2.52.0