Skip to content

NXP DPAA2 driver updates and fixes

Prashant Gupta dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest47 patches 3 repliesIn review
  2. v145 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Dropped the header-only patches; every remaining patch now contains the implementation together with its declarations.
- Addressed all findings reported by checkpatch; the series is clean against the current checkpatch.
- Removed the per-device Tx scatter/gather pool member that was never assigned, and used the existing global pool instead.
- Widened the DQRR held-mask shift to 64-bit to avoid undefined behaviour when the DQRR index exceeds 31.
- Bounded the MAC xstats collection loop by the size of the statistics array.
- Treated the traffic class priority mask as a bitmask rather than an index.
- Added a per-entry DQRR consume fallback for portals whose DQRR ring does not fit the vectored consume encoding.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/47crypto/dpaa2_sec: fix buffer overflow in GCM decryptdrivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h drivers/dma/dpaa2/dpaa2_qdma.c +1 more+49 -40 replies
2/47crypto/dpaa2_sec: fix FLE pool leak on sec FD build failuredrivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c+6 -00 replies
3/47crypto/dpaa2_sec: support AES-GMACdoc/guides/rel_notes/release_26_11.rst drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h +2 more+54 -21 reply
4/47crypto/dpaa2_sec: increase ivsize range for AES-CTRdrivers/crypto/dpaa2_sec/dpaa2_sec_priv.h+4 -40 replies
5/47crypto/dpaa2_sec: add missing ECN capabilitydrivers/crypto/dpaa2_sec/dpaa2_sec_priv.h+2 -00 replies
6/47crypto/dpaa2_sec: add support for env variablesdrivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c+36 -41 reply
7/47net/dpaa2: fix integer overflow in CCSR region mappingdrivers/net/dpaa2/dpaa2_recycle.c+15 -60 replies
8/47dma/dpaa2: fix array-bounds warning in dequeue pathdrivers/dma/dpaa2/dpaa2_qdma.c drivers/dma/dpaa2/dpaa2_qdma.h+9 -160 replies
9/47bus/fslmc: defer bus initialization to probedrivers/bus/fslmc/fslmc_bus.c+51 -410 replies
10/47dma/dpaa2: validate IOVA in pre-populate helpersdrivers/dma/dpaa2/dpaa2_qdma.c+35 -70 replies
11/47dma/dpaa2: optimize context index ring enqueuedrivers/dma/dpaa2/dpaa2_qdma.c+14 -60 replies
12/47drivers: add dpaa2 DMA bypass memory translation optiondrivers/common/dpaax/rte_pmd_dpaax_qdma.h drivers/dma/dpaa2/dpaa2_qdma.c+29 -340 replies
13/47mempool/dpaa2: support ops index from primary in secondarydrivers/mempool/dpaa2/dpaa2_hw_mempool.c+85 -30 replies
14/47net/dpaa2: set Tx confirmation on device initdrivers/net/dpaa2/dpaa2_ethdev.c+15 -250 replies
15/47drivers: optimize dpaa2 Tx queue and channel mappingdrivers/bus/fslmc/portal/dpaa2_hw_pvt.h drivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_ethdev.h+70 -480 replies
16/47net/dpaa2: support larger burst sizedrivers/net/dpaa2/dpaa2_tm.c drivers/net/dpaa2/mc/dpni.c drivers/net/dpaa2/mc/fsl_dpni.h +1 more+28 -100 replies
17/47net/dpaa2: support MPLS and PPPoE flow distributiondrivers/net/dpaa2/dpaa2_flow.c+196 -00 replies
18/47net/dpaa2: support meter and policingdrivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_ethdev.h drivers/net/dpaa2/dpaa2_meter.c +2 more+638 -40 replies
19/47net/dpaa2: support flow drop actiondrivers/net/dpaa2/dpaa2_flow.c+7 -10 replies
20/47net/dpaa2: set default flow miss action per devicedrivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_ethdev.h drivers/net/dpaa2/dpaa2_flow.c+5 -130 replies
21/47net/dpaa2: identify Rx mbuf hash information by FLCdrivers/net/dpaa2/dpaa2_ethdev.h drivers/net/dpaa2/dpaa2_flow.c drivers/net/dpaa2/dpaa2_rxtx.c+70 -20 replies
22/47net/dpaa2: add minimum key size supportdrivers/net/dpaa2/dpaa2_flow.c+5 -30 replies
23/47net/dpaa2: restructure dpaa2 parser processingdrivers/net/dpaa2/dpaa2_ethdev.h drivers/net/dpaa2/dpaa2_parse_dump.h drivers/net/dpaa2/dpaa2_parser_decode.h +1 more+1845 -5780 replies
24/47net/dpaa2: parse tunnel and fragmented packet typesdrivers/net/dpaa2/dpaa2_ethdev.h drivers/net/dpaa2/dpaa2_rxtx.c+48 -00 replies
25/47net/dpaa2: remove unused soft parser driverdrivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_recycle.c drivers/net/dpaa2/dpaa2_sparser.c +2 more+0 -3690 replies
26/47drivers: refresh dpaa2 MC and SoC version infodrivers/bus/fslmc/bus_fslmc_driver.h drivers/bus/fslmc/fslmc_bus.c drivers/bus/fslmc/fslmc_vfio.c +7 more+225 -1360 replies
27/47drivers: identify dpaa2 soft parser protocoldrivers/bus/fslmc/fslmc_bus.c drivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_flow.c +1 more+126 -980 replies
28/47drivers: assign dpaa2 Rx CGID per traffic classdrivers/bus/fslmc/portal/dpaa2_hw_pvt.h drivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_ethdev.h+126 -1320 replies
29/47drivers: inherit dpaa2 rxq config for event queuedrivers/bus/fslmc/portal/dpaa2_hw_pvt.h drivers/net/dpaa2/dpaa2_ethdev.c+3 -20 replies
30/47net/dpaa2: rename Rx queue flagsdrivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_ethdev.h drivers/net/dpaa2/dpaa2_rxtx.c+9 -90 replies
31/47drivers: rework dpaa2 Tx confirmationdrivers/bus/fslmc/portal/dpaa2_hw_pvt.h drivers/net/dpaa2/base/dpaa2_hw_dpni.c drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h +4 more+742 -8740 replies
32/47net/dpaa2: ptp enhancementsdrivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_ethdev.h drivers/net/dpaa2/dpaa2_ptp.c +1 more+239 -1180 replies
33/47net/dpaa2: remove unused soft parser Tx codedrivers/net/dpaa2/dpaa2_rxtx.c+2 -120 replies
34/47net/dpaa2: update MC dpni QoS and flow steering APIdrivers/net/dpaa2/dpaa2_flow.c drivers/net/dpaa2/mc/dpni.c drivers/net/dpaa2/mc/fsl_dpni.h +1 more+206 -540 replies
35/47net/dpaa2: enhance xstat implementationdrivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_ethdev.h drivers/net/dpaa2/mc/fsl_dpni.h+738 -4460 replies
36/47net/dpaa2: rework flow enginedrivers/net/dpaa2/base/dpaa2_hw_dpni.c drivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_ethdev.h +2 more+4119 -37500 replies
37/47net/dpaa2: support GENEVE flow itemdrivers/net/dpaa2/dpaa2_flow.c+101 -10 replies
38/47net/dpaa2: support flow meter and policer actionsdrivers/net/dpaa2/dpaa2_flow.c+316 -00 replies
39/47net/dpaa2: support flow table miss actionsdrivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_flow.c+295 -00 replies
40/47net/dpaa2: support Rx mempool per traffic classdrivers/net/dpaa2/dpaa2_ethdev.c drivers/net/dpaa2/dpaa2_ethdev.h+119 -20 replies
41/47drivers: consume dpaa2 DQRR entries in batchesdrivers/bus/fslmc/portal/dpaa2_hw_dpio.c drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h drivers/bus/fslmc/qbman/qbman_portal.c +3 more+86 -80 replies
42/47drivers: resolve dpaa2 endpoint in the net driverdrivers/bus/fslmc/bus_fslmc_driver.h drivers/bus/fslmc/portal/dpaa2_hw_dprc.c drivers/net/dpaa2/dpaa2_ethdev.c +1 more+70 -510 replies
43/47drivers: align dpaa2 event port depths with hardware ringsdrivers/bus/fslmc/qbman/include/fsl_qbman_portal.h drivers/bus/fslmc/qbman/qbman_portal.c drivers/event/dpaa2/dpaa2_eventdev.c +1 more+69 -290 replies
44/47net/dpaa2: read MC version from device private datadrivers/net/dpaa2/dpaa2_ethdev.h drivers/net/dpaa2/dpaa2_flow.c+19 -460 replies
45/47net/dpaa2: do not overwrite mbuf hash with drop prioritydrivers/net/dpaa2/dpaa2_rxtx.c+0 -10 replies
46/47bus/fslmc: reduce probe-time logging and MC trafficdrivers/bus/fslmc/fslmc_vfio.c+1 -90 replies
47/47net/dpaa2: reject Rx queue deferred startdrivers/net/dpaa2/dpaa2_ethdev.c+7 -0273 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/47] NXP DPAA2 driver updates and fixes

This series brings the NXP DPAA2 drivers (net, crypto, dma, event, mempool and the fslmc bus) up to date with the current internal tree. It carries bug fixes, a reworked flow engine, an extended parser, meter and policer support, PTP enhancements, and a number of performance improvements in the Rx/Tx and DQRR handling paths.

The series is based on commit c1a46b9d9243 and is intended for 26.11.

Changes in v2:

- Dropped the header-only patches; every remaining patch now contains the implementation together with its declarations.
- Addressed all findings reported by checkpatch; the series is clean against the current checkpatch.
- Removed the per-device Tx scatter/gather pool member that was never assigned, and used the existing global pool instead.
- Widened the DQRR held-mask shift to 64-bit to avoid undefined behaviour when the DQRR index exceeds 31.
- Bounded the MAC xstats collection loop by the size of the statistics array.
- Treated the traffic class priority mask as a bitmask rather than an index.
- Added a per-entry DQRR consume fallback for portals whose DQRR ring does not fit the vectored consume encoding.

Each of the review fixes above has been folded into the patch that introduced the code in question, so the series remains bisectable.

Build tested with gcc, clang and the aarch64 DPAA cross toolchain (werror enabled, no compiler warnings).

Gagandeep Singh (18):
crypto/dpaa2_sec: fix buffer overflow in GCM decrypt crypto/dpaa2_sec: fix FLE pool leak on sec FD build failure crypto/dpaa2_sec: support AES-GMAC crypto/dpaa2_sec: increase ivsize range for AES-CTR crypto/dpaa2_sec: add missing ECN capability crypto/dpaa2_sec: add support for env variables dma/dpaa2: validate IOVA in pre-populate helpers dma/dpaa2: optimize context index ring enqueue
drivers: add dpaa2 DMA bypass memory translation option net/dpaa2: set Tx confirmation on device init
drivers: optimize dpaa2 Tx queue and channel mapping net/dpaa2: support larger burst size
net/dpaa2: support MPLS and PPPoE flow distribution net/dpaa2: support meter and policing
net/dpaa2: support flow drop action
net/dpaa2: set default flow miss action per device net/dpaa2: identify Rx mbuf hash information by FLC net/dpaa2: enhance xstat implementation

Hemant Agrawal (17):
net/dpaa2: fix integer overflow in CCSR region mapping net/dpaa2: add minimum key size support net/dpaa2: restructure dpaa2 parser processing net/dpaa2: parse tunnel and fragmented packet types net/dpaa2: remove unused soft parser Tx code net/dpaa2: update MC dpni QoS and flow steering API net/dpaa2: rework flow engine
net/dpaa2: support GENEVE flow item
net/dpaa2: support flow meter and policer actions net/dpaa2: support flow table miss actions
drivers: consume dpaa2 DQRR entries in batches
drivers: resolve dpaa2 endpoint in the net driver
drivers: align dpaa2 event port depths with hardware rings net/dpaa2: read MC version from device private data net/dpaa2: do not overwrite mbuf hash with drop priority bus/fslmc: reduce probe-time logging and MC traffic net/dpaa2: reject Rx queue deferred start

Jun Yang (11):
dma/dpaa2: fix array-bounds warning in dequeue path mempool/dpaa2: support ops index from primary in secondary net/dpaa2: remove unused soft parser driver
drivers: refresh dpaa2 MC and SoC version info
drivers: identify dpaa2 soft parser protocol
drivers: assign dpaa2 Rx CGID per traffic class
drivers: inherit dpaa2 rxq config for event queue net/dpaa2: rename Rx queue flags
drivers: rework dpaa2 Tx confirmation
net/dpaa2: ptp enhancements
net/dpaa2: support Rx mempool per traffic class

Prashant Gupta (1):
bus/fslmc: defer bus initialization to probe

 doc/guides/rel_notes/release_26_11.rst        |    6 +
 drivers/bus/fslmc/bus_fslmc_driver.h          |   14 +-
 drivers/bus/fslmc/fslmc_bus.c                 |  177 +-
 drivers/bus/fslmc/fslmc_vfio.c                |  196 +-
 drivers/bus/fslmc/fslmc_vfio.h                |   30 +-
 drivers/bus/fslmc/portal/dpaa2_hw_dpio.c      |   83 +-
 drivers/bus/fslmc/portal/dpaa2_hw_dpio.h      |    7 -
 drivers/bus/fslmc/portal/dpaa2_hw_dprc.c      |   45 +-
 drivers/bus/fslmc/portal/dpaa2_hw_pvt.h       |    7 +-
 drivers/bus/fslmc/private.h                   |    3 +
 .../fslmc/qbman/include/fsl_qbman_portal.h    |   12 +-
 drivers/bus/fslmc/qbman/qbman_portal.c        |   83 +-
 drivers/bus/fslmc/qbman/qbman_portal.h        |   11 +-
 drivers/common/dpaax/rte_pmd_dpaax_qdma.h     |    4 +-
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c   |   98 +-
 drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h     |   45 +-
 drivers/dma/dpaa2/dpaa2_qdma.c                |  155 +-
 drivers/dma/dpaa2/dpaa2_qdma.h                |    1 +
 drivers/event/dpaa2/dpaa2_eventdev.c          |   76 +-
 drivers/event/dpaa2/dpaa2_eventdev.h          |    4 +-
 drivers/mempool/dpaa2/dpaa2_hw_mempool.c      |   88 +-
 drivers/net/dpaa2/base/dpaa2_hw_dpni.c        |  546 --
 drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h  |    6 +-
 drivers/net/dpaa2/dpaa2_ethdev.c              | 2135 +++--
 drivers/net/dpaa2/dpaa2_ethdev.h              |  759 +-
 drivers/net/dpaa2/dpaa2_flow.c                | 6966 ++++++++++-------
 drivers/net/dpaa2/dpaa2_meter.c               |  588 ++
 drivers/net/dpaa2/dpaa2_parse_dump.h          |  374 -
 drivers/net/dpaa2/dpaa2_parser_decode.h       | 1545 ++++
 drivers/net/dpaa2/dpaa2_ptp.c                 |  161 +-
 drivers/net/dpaa2/dpaa2_recycle.c             |   37 +-
 drivers/net/dpaa2/dpaa2_rxtx.c                | 1902 ++---
 drivers/net/dpaa2/dpaa2_sparser.c             |  137 -
 drivers/net/dpaa2/dpaa2_sparser.h             |  202 -
 drivers/net/dpaa2/dpaa2_tm.c                  |   16 +-
 drivers/net/dpaa2/mc/dpni.c                   |  138 +-
 drivers/net/dpaa2/mc/fsl_dpni.h               |  390 +-
 drivers/net/dpaa2/mc/fsl_dpni_cmd.h           |   33 +-
 drivers/net/dpaa2/meson.build                 |    5 +-
 lib/cryptodev/rte_crypto_sym.h                |    2 +
 lib/cryptodev/rte_cryptodev.c                 |    1 +
 41 files changed, 10532 insertions(+), 6556 deletions(-)
 delete mode 100644 drivers/net/dpaa2/base/dpaa2_hw_dpni.c
 create mode 100644 drivers/net/dpaa2/dpaa2_meter.c
 delete mode 100644 drivers/net/dpaa2/dpaa2_parse_dump.h
 create mode 100644 drivers/net/dpaa2/dpaa2_parser_decode.h
 delete mode 100644 drivers/net/dpaa2/dpaa2_sparser.c
 delete mode 100644 drivers/net/dpaa2/dpaa2_sparser.h
Signature · 1 line
2.43.0