octeontx2: Rework MCAM flows management for VFs
Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 11 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | octeontx2-af: Modify install flow error codesdrivers/ drivers/ | +15 | 0 replies | Applied |
| 2/11 | octeontx2-af: add proper return codes for AF mailbox handlersdrivers/ drivers/ drivers/ +1 more | +47 | 0 replies | Applied |
| 3/11 | octeontx2-af: Add debug messages for failuresdrivers/ | +73 | 0 replies | Applied |
| 4/11 | octeontx2-pf: Enable NETIF_F_RXALL support for VF driverdrivers/ drivers/ | +4 | 0 replies | Applied |
| 5/11 | octeontx2-pf: Ntuple filters support for VF netdevdrivers/ drivers/ drivers/ +2 more | +98 | 0 replies | Applied |
| 6/11 | octeontx2-pf: Sort the allocated MCAM entry indicesdrivers/ | +15 | 0 replies | Applied |
| 7/11 | octeontx2-pf: Unify flow management variablesdrivers/ drivers/ drivers/ +1 more | +80 | 0 replies | Applied |
| 8/11 | octeontx2-pf: devlink params support to set mcam entry countdrivers/ drivers/ drivers/ +5 more | +221 | 0 replies | Applied |
| 9/11 | octeontx2-af: Allocate low priority entries for PFdrivers/ | +12 | 0 replies | Applied |
| 10/11 | octeontx2-af: cn10K: Get NPC counters valuedrivers/ drivers/ | +20 | 0 replies | Applied |
| 11/11 | octeontx2-af: configure npc for cn10k to allow packets from cptdrivers/ | +11 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [net-next PATCH 00/11] octeontx2: Rework MCAM flows management for VFs
From Octeontx2 hardware point of view there is no difference between PFs and VFs. Hence with refactoring in driver the packet classification features or offloads can be supported by VFs also. This patchset unifies the mcam flows management so that VFs can also support ntuple filters. Since there are MCAM allocations by all PFs and VFs in the system it is required to have the ability to modify number of mcam rules count for a PF/VF in runtime. This is achieved by using devlink. Below is the summary of patches:
Patch 1,2,3 are trivial patches which helps in debugging in case of errors by using custom error codes and displaying proper error messages.
Patches 4,5 brings rx-all and ntuple support for CGX mapped VFs and LBK VFs.
Patches 6,7,8 brings devlink support to
PF netdev driver so that mcam entries count
can be changed at runtime.
To change mcam rule count at runtime where multiple rule allocations are done sorting is required.
Also both ntuple and TC rules needs to be unified.
Patch 9 is related to AF NPC where a PF allocated entries are allocated at bottom(low priority).
On CN10K there is slight change in reading
NPC counters which is handled by patch 10.
Patch 11 is to allow packets from CPT for
NPC parsing on CN10K.
Thanks,
Sundeep
Hariprasad Kelam (1):
octeontx2-af: cn10K: Get NPC counters value
Naveen Mamindlapalli (1):
octeontx2-af: add proper return codes for AF mailbox handlers
Rakesh Babu (1):
octeontx2-pf: Ntuple filters support for VF netdev
Subbaraya Sundeep (2):
octeontx2-af: Modify install flow error codes
octeontx2-af: Allocate low priority entries for PF
Sunil Goutham (5):
octeontx2-af: Add debug messages for failures
octeontx2-pf: Enable NETIF_F_RXALL support for VF driver
octeontx2-pf: Sort the allocated MCAM entry indices
octeontx2-pf: Unify flow management variables
octeontx2-pf: devlink params support to set mcam entry count
Vidya (1):
octeontx2-af: configure npc for cn10k to allow packets from cpt
drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 16 +++ drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 92 +++++++++--- drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 1 + .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 12 +- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 45 ++++-- .../net/ethernet/marvell/octeontx2/af/rvu_npc.c | 51 +++++-- .../net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 36 +++-- .../net/ethernet/marvell/octeontx2/nic/Makefile | 5 +- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 32 +++-- .../ethernet/marvell/octeontx2/nic/otx2_devlink.c | 156 +++++++++++++++++++++ .../ethernet/marvell/octeontx2/nic/otx2_devlink.h | 20 +++ .../ethernet/marvell/octeontx2/nic/otx2_ethtool.c | 52 ++----- .../ethernet/marvell/octeontx2/nic/otx2_flows.c | 110 +++++++++++---- .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 44 +++--- .../net/ethernet/marvell/octeontx2/nic/otx2_tc.c | 50 ++++++- .../net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 36 ++++- 16 files changed, 585 insertions(+), 173 deletions(-) create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.c create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.h
Signature · 1 line
2.7.4