octeontx2-af: NPC parser and NIX blocks initialization
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest17 patches 14 repliesIn review
- v117 patches 0 repliesSuperseded
Changes in v2 from the cover letter
1 Fixed kernel build failure when compiled with BIG_ENDIAN enabled.
- Reported by Kbuild test robot
2 Fixed a warning observed when kernel is built with -Wunused-but-set-variable
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | octeontx2-af: NIX Tx scheduler queues alloc/freedrivers/ drivers/ drivers/ +1 more | +265 | 0 replies | |
| 2/17 | octeontx2-af: NIX Tx scheduler queue config supportdrivers/ drivers/ drivers/ +2 more | +199 | 0 replies | |
| 3/17 | octeontx2-af: Reset NIXLF's Rx/Tx statsdrivers/ drivers/ drivers/ | +34 | 0 replies | |
| 4/17 | octeontx2-af: Add NPC KPU profiledrivers/ drivers/ | +5852 | 0 replies | |
| 5/17 | octeontx2-af: Config NPC KPU engines with parser profiledrivers/ drivers/ drivers/ +3 more | +385 | 1 reply | |
| 6/17 | octeontx2-af: Config pkind for CGX mapped PFsdrivers/ drivers/ drivers/ +4 more | +90 | 0 replies | |
| 7/17 | octeontx2-af: Broadcast packet replication supportdrivers/ drivers/ | +220 | 0 replies | |
| 8/17 | octeontx2-af: Update bcast list upon NIXLF alloc/freedrivers/ | +133 | 0 replies | |
| 9/17 | octeontx2-af: Support for VTAG strip and capturedrivers/ drivers/ drivers/ +1 more | +101 | 0 replies | |
| 10/17 | octeontx2-af: Enable packet length and csum validationdrivers/ drivers/ | +28 | 0 replies | |
| 11/17 | octeontx2-af: NPC MCAM and LDATA extract minimal configurationdrivers/ drivers/ drivers/ +1 more | +181 | 0 replies | |
| 12/17 | octeontx2-af: Add LMAC channel info to NIXLF_ALLOC responsedrivers/ drivers/ drivers/ +1 more | +18 | 0 replies | |
| 13/17 | octeontx2-af: Install ucast and bcast pkt forwarding rulesdrivers/ drivers/ drivers/ +1 more | +375 | 0 replies | |
| 14/17 | octeontx2-af: NIX Rx flowkey configuration for RSSdrivers/ drivers/ drivers/ | +187 | 0 replies | |
| 15/17 | octeontx2-af: Support for changing RSS algorithmdrivers/ drivers/ drivers/ +1 more | +108 | 0 replies | |
| 16/17 | octeontx2-af: Support for setting MAC addressdrivers/ drivers/ drivers/ | +35 | 0 replies | |
| 17/17 | octeontx2-af: Support for NIXLF's UCAST/PROMISC/ALLMULTI modesdrivers/ drivers/ drivers/ +1 more | +105 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/17] octeontx2-af: NPC parser and NIX blocks initialization
From: Sunil Goutham <[email protected]>
This patchset is a continuation to earlier submitted two patch series to add a new driver for Marvell's OcteonTX2 SOC's Resource virtualization unit (RVU) admin function driver.
1. octeontx2-af: Add RVU Admin Function driver
https://www.spinics.net/lists/netdev/msg528272.html
2. octeontx2-af: NPA and NIX blocks initialization
https://www.spinics.net/lists/netdev/msg529163.html
This patch series adds more NIX block configuration logic and additionally adds NPC block parser profile configuration. In brief below is what this series adds.
NIX block:
- Support for PF/VF to allocate/free transmit scheduler queues, maintenance and their configuration.
- Adds support for packet replication lists, only broadcast packets is covered for now.
- Defines few RSS flow algorithms for HW to distribute packets. This is not the hash algorithsm (i.e toeplitz or crc32), here SW defines what fields in packet should HW take and calculate the hash.
- Support for PF/VF to configure VTAG strip and capture capabilities.
- Reset NIXLF statastics.
NPC block:
This block has multiple parser engines which support packet parsing at multiple layers and generates a parse result which is further used to generate a key. Based on packet field offsets in the key, SW can install packet forwarding rules.
This patch series adds
- Initial parser profile to be programmed into parser engines.
- Default forwarding rules to forward packets to different logical interfaces having a NIXLF attached.
- Support for promiscuous and multicast modes.
Changes from v1:
1 Fixed kernel build failure when compiled with BIG_ENDIAN enabled.
- Reported by Kbuild test robot
2 Fixed a warning observed when kernel is built with -Wunused-but-set-variable
Geetha sowjanya (1):
octeontx2-af: Config pkind for CGX mapped PFs
Hao Zheng (1):
octeontx2-af: Add NPC KPU profile
Stanislaw Kardach (1):
octeontx2-af: Add LMAC channel info to NIXLF_ALLOC response
Sunil Goutham (12):
octeontx2-af: NIX Tx scheduler queues alloc/free
octeontx2-af: NIX Tx scheduler queue config support
octeontx2-af: Config NPC KPU engines with parser profile
octeontx2-af: Broadcast packet replication support
octeontx2-af: Update bcast list upon NIXLF alloc/free
octeontx2-af: Enable packet length and csum validation
octeontx2-af: NPC MCAM and LDATA extract minimal configuration
octeontx2-af: Install ucast and bcast pkt forwarding rules
octeontx2-af: NIX Rx flowkey configuration for RSS
octeontx2-af: Support for changing RSS algorithm
octeontx2-af: Support for setting MAC address
octeontx2-af: Support for NIXLF's UCAST/PROMISC/ALLMULTI modes
Vamsi Attunuru (2):
octeontx2-af: Reset NIXLF's Rx/Tx stats
octeontx2-af: Support for VTAG strip and capture
drivers/net/ethernet/marvell/octeontx2/af/Makefile | 3 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 12 + drivers/net/ethernet/marvell/octeontx2/af/cgx.h | 1 + drivers/net/ethernet/marvell/octeontx2/af/common.h | 50 + drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 110 +- drivers/net/ethernet/marvell/octeontx2/af/npc.h | 262 + .../ethernet/marvell/octeontx2/af/npc_profile.h | 5709 ++++++++++++++++++++ drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 12 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 97 +- .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 7 +- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 1067 ++++ .../net/ethernet/marvell/octeontx2/af/rvu_npc.c | 816 +++ .../net/ethernet/marvell/octeontx2/af/rvu_reg.c | 71 + .../net/ethernet/marvell/octeontx2/af/rvu_reg.h | 61 + .../net/ethernet/marvell/octeontx2/af/rvu_struct.h | 35 + 15 files changed, 8306 insertions(+), 7 deletions(-) create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/npc.h create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c
Signature · 1 line
2.7.4