[PATCH net-next 0/2] octeontx2-af: NPC parser and RSS improvements
From: nshettyj
Date: Tue Jun 30 2026 - 02:23:10 EST
From: Kiran Kumar K <kirankumark@xxxxxxxxxxx>
This series extends the Marvell OcteonTX2 admin-function driver with two
improvements to the NPC (Network Parser CAM) block. The NPC parses packets
received by or transmitted from the NIX, and its matching CAM (MCAM)
selects which VFs, queues, or output ports handle each packet.
Patch 1 reserves a new range of PKINDs (46-53) to support configurable
L2 skip-size parsing. Packets arriving with variable length L2 headers
or a CPT (Cryptographic Accelerator Unit) pre-header can be steered
to one of four skip-size PKINDs so the NPC advances past the right number
of bytes before starting protocol classification. The mbox interface is
extended with a skip_size field so PF/VF drivers can program the desired
L2 offset at run time without rebuilding firmware.
Patch 2 adds a NIX_FLOW_KEY_TYPE_ROCEV2 flow-key type so the RSS engine
can distribute RoCEv2 traffic across receive queues using the destination
Queue Pair (QP) field. Without this, all RoCEv2 flows hash the same
way and land on a single queue.
Both changes target the admin-function driver to improve overall hardware
parsing infrastructure.
Changelog:
v2:
- Fixed coding style in patch 1 and patch 2.
Kiran Kumar K (2):
octeontx2-af: reserve 4 PKINDs for skip-size custom use
octeontx2-af: Add RSS hashing support based on RoCEv2 header
.../net/ethernet/marvell/octeontx2/af/mbox.h | 2 +
.../net/ethernet/marvell/octeontx2/af/npc.h | 4 +-
.../net/ethernet/marvell/octeontx2/af/rvu.h | 2 +-
.../ethernet/marvell/octeontx2/af/rvu_nix.c | 9 +++-
.../ethernet/marvell/octeontx2/af/rvu_npc.c | 43 +++++++++++++++++--
5 files changed, 54 insertions(+), 6 deletions(-)
--
2.48.1