Skip to content

net: dsa: bcm_sf2: CFP support

Florian Fainelli netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v24 patches 3 repliesSuperseded
  3. v14 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- rebased against latest net-next/master after Vivien's changes

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: dsa: Hook {get,set}_rxnfc ethtool operationsinclude/net/dsa.h net/dsa/slave.c+34 -00 replies
2/4net: dsa: bcm_sf2: Configure traffic classes to queue mappingdrivers/net/dsa/bcm_sf2.c drivers/net/dsa/bcm_sf2_regs.h+13 -00 replies
3/4net: dsa: bcm_sf2: Add CFP registers definitionsdrivers/net/dsa/bcm_sf2_regs.h+146 -00 replies
4/4net: dsa: bcm_sf2: Add support for ethtool::rxnfcdrivers/net/dsa/Makefile drivers/net/dsa/bcm_sf2.c drivers/net/dsa/bcm_sf2.h +1 more+645 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/4] net: dsa: bcm_sf2: CFP support

Hi all,

This patch series adds support for the Broadcom Compact Field Processor (CFP) which is a classification and matching engine built into most Broadcom switches.

We support that using ethtool::rxnfc because it allows all known uses cases from the users I support to work, and more importantly, it allows the selection of a target rule index, which is later used by e.g: offloading hardware, this is an essential feature that I could not find being supported with cls_* for instance.

Thanks!

Changes in v3:

- rebased against latest net-next/master after Vivien's changes

Changes in v2:

- fixed modular builds reported by kbuild test robot

Florian Fainelli (4):
net: dsa: Hook {get,set}_rxnfc ethtool operations
net: dsa: bcm_sf2: Configure traffic classes to queue mapping
net: dsa: bcm_sf2: Add CFP registers definitions
net: dsa: bcm_sf2: Add support for ethtool::rxnfc

 drivers/net/dsa/Makefile       |   1 +
 drivers/net/dsa/bcm_sf2.c      |  23 ++
 drivers/net/dsa/bcm_sf2.h      |  17 ++
 drivers/net/dsa/bcm_sf2_cfp.c  | 613 +++++++++++++++++++++++++++++++++++++++++
 drivers/net/dsa/bcm_sf2_regs.h | 150 ++++++++++
 include/net/dsa.h              |   8 +
 net/dsa/slave.c                |  26 ++
 7 files changed, 838 insertions(+)
 create mode 100644 drivers/net/dsa/bcm_sf2_cfp.c
Signature · 1 line
2.9.3