[PATCH net-next 1/3] octeontx2-af: fix LD CUSTOM LTYPE aliasing

2020-09-11 Thread skardach
From: Stanislaw Kardach Since LD contains LTYPE definitions tweaked toward efficient NIX_AF_RX_FLOW_KEY_ALG(0..31)_FIELD(0..4) usage, the original location of NPC_LT_LD_CUSTOM0/1 was aliased with MPLS_IN_* definitions. Moving custom frame to value 6 and 7 removes the aliasing at the cost of custo

[PATCH net-next 3/3] octeontx2-af: add support for custom KPU entries

2020-09-11 Thread skardach
From: Stanislaw Kardach Add ability to load a set of custom KPU entries via firmware APIs. This allows for flexible support for custom protocol parsing and CAM matching. AF driver will attempt to load the profile from the firmware file and verify if it can fit hardware capabilities. If not, it w

[PATCH net-next 2/3] octeontx2-af: prepare for custom KPU profiles

2020-09-11 Thread skardach
From: Stanislaw Kardach Refactor KPU related NPC code to prepare for upcoming KPU customization functionality. This requires the following: * Gathering all KPU profile related data into a single adapter struct. * Converting the built-in MKEX definition to a structured one to streamline the MKEX

[PATCH net-next 0/3] octeontx2-af: add support for KPU profile customization

2020-09-11 Thread skardach
From: Stanislaw Kardach Marvell octeontx2 NPC device contains a configurable Kanguroo Parser Unit (KPU) and CAM match key data extraction (MKEX). The octeontx2-af driver configures them both to parse a list of standard protocol headers which are used by netdev driver and other potential applicati