From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: [PATCH net-next v2 0/4] net: dsa: bcm_sf2: CFP support Date: Sat, 28 Jan 2017 19:13:21 -0800 Message-ID: <20170129031325.21911-1-f.fainelli@gmail.com> Cc: davem@davemloft.net, cphealy@gmail.com, vivien.didelot@savoirfairelinux.com, andrew@lunn.ch, Florian Fainelli To: netdev@vger.kernel.org Return-path: Received: from mail-oi0-f66.google.com ([209.85.218.66]:35970 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750723AbdA2Hr5 (ORCPT ); Sun, 29 Jan 2017 02:47:57 -0500 Received: by mail-oi0-f66.google.com with SMTP id u143so23625334oif.3 for ; Sat, 28 Jan 2017 23:47:56 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: 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