Skip to content

octeontx2: Rework MCAM flows management for VFs

Subbaraya Sundeep netdev 1 version Applied

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

  1. v1 Latest11 patches 0 repliesApplied 11/11

Patches in v1 All 11 applied

#Subject and filesSizeRepliesApplied
1/11octeontx2-af: Modify install flow error codesdrivers/net/ethernet/marvell/octeontx2/af/mbox.h drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c+15 -80 repliesApplied
2/11octeontx2-af: add proper return codes for AF mailbox handlersdrivers/net/ethernet/marvell/octeontx2/af/mbox.h drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +1 more+47 -210 repliesApplied
3/11octeontx2-af: Add debug messages for failuresdrivers/net/ethernet/marvell/octeontx2/af/rvu.c+73 -190 repliesApplied
4/11octeontx2-pf: Enable NETIF_F_RXALL support for VF driverdrivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c+4 -40 repliesApplied
5/11octeontx2-pf: Ntuple filters support for VF netdevdrivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c +2 more+98 -600 repliesApplied
6/11octeontx2-pf: Sort the allocated MCAM entry indicesdrivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c+15 -00 repliesApplied
7/11octeontx2-pf: Unify flow management variablesdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +1 more+80 -460 repliesApplied
8/11octeontx2-pf: devlink params support to set mcam entry countdrivers/net/ethernet/marvell/octeontx2/nic/Makefile drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.c +5 more+221 -170 repliesApplied
9/11octeontx2-af: Allocate low priority entries for PFdrivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c+12 -00 repliesApplied
10/11octeontx2-af: cn10K: Get NPC counters valuedrivers/net/ethernet/marvell/octeontx2/af/rvu.h drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c+20 -80 repliesApplied
11/11octeontx2-af: configure npc for cn10k to allow packets from cptdrivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c+11 -10 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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