Current KPU configuration data is spread over multiple files which makes it hard to read. Clean this up by gathering all configuration data in a single structure and also in a single file (npc_profile.h). This should increase the readability of KPU handling code (since it always references same structure), simplify updates to the CAM key extraction code and allow abstracting out the configuration source. Additionally extend and fix the parser config to support additional DSA types, NAT-T-ESP and IPv6 fields.
Patch 1 ensures that CUSTOMx LTYPEs are not aliased with meaningful LTYPEs where possible. Patch 2 gathers all KPU profile related data into a single struct and creates an adapter structure which provides an interface to the KPU profile for the octeontx2-af driver. Patches 3-4 add support for Extended DSA, eDSA and Forward DSA. Patches 5-6 adds IPv6 fields to CAM key extraction and optimize the parser performance for fragmented IPv6 packets. Patch 7 refactors ESP handling in the parser to support NAT-T-ESP. Abhijit Ayarekar (1): octeontx2-af: optimize parsing of IPv6 fragments Hariprasad Kelam (1): octeontx2-af: add parser support for Forward DSA Kiran Kumar K (1): octeontx2-af: add parser support for NAT-T-ESP Satha Rao (1): octeontx2-af: fix Extended DSA and eDSA parsing Stanislaw Kardach (2): octeontx2-af: fix LD CUSTOM LTYPE aliasing octeontx2-af: cleanup KPU config data Vidhya Vidhyaraman (1): octeontx2-af: Add IPv6 fields to default MKEX .../net/ethernet/marvell/octeontx2/af/npc.h | 43 +- .../marvell/octeontx2/af/npc_profile.h | 473 +++++++++++++++--- .../net/ethernet/marvell/octeontx2/af/rvu.h | 17 + .../ethernet/marvell/octeontx2/af/rvu_nix.c | 36 +- .../ethernet/marvell/octeontx2/af/rvu_npc.c | 202 +++----- 5 files changed, 557 insertions(+), 214 deletions(-) -- 2.20.1