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 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 -- 2.9.3