Skip to content

Commit e60df62

Browse files
committed
Merge branch 'mlxsw-Introduce-TC-Flower-offload-using-TCAM'
Jiri Pirko says: ==================== mlxsw: Introduce TC Flower offload using TCAM This patchset introduces support for offloading TC cls_flower and actions to Spectrum TCAM-base policy engine. The patchset contains patches to allow work with flexible keys and actions which are used in Spectrum TCAM. It also contains in-driver infrastructure for offloading TC rules to TCAM HW. The TCAM management code is simple and limited for now. It is going to be extended as a follow-up work. The last patch uses the previously introduced infra to allow to implement cls_flower offloading. Initially, only limited set of match-keys and only a drop and forward actions are supported. As a dependency, this patchset introduces parman - priority array area manager - as a library. v1->v2: - patch11: - use __set_bit and __test_and_clear_bit as suggested by DaveM - patch16: - Added documentation to the API functions as suggested by Tom Herbert - patch17: - use __set_bit and __clear_bit as suggested by DaveM ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 3d67576 + 7aa0f5a commit e60df62

25 files changed

Lines changed: 5184 additions & 16 deletions

‎MAINTAINERS‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9382,6 +9382,14 @@ F: drivers/video/fbdev/sti*
93829382
F: drivers/video/console/sti*
93839383
F: drivers/video/logo/logo_parisc*
93849384

9385+
PARMAN
9386+
M: Jiri Pirko <jiri@mellanox.com>
9387+
L: netdev@vger.kernel.org
9388+
S: Supported
9389+
F: lib/parman.c
9390+
F: lib/test_parman.c
9391+
F: include/linux/parman.h
9392+
93859393
PC87360 HARDWARE MONITORING DRIVER
93869394
M: Jim Cromie <jim.cromie@gmail.com>
93879395
L: linux-hwmon@vger.kernel.org

‎drivers/net/ethernet/mellanox/mlxsw/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ config MLXSW_SWITCHX2
7373
config MLXSW_SPECTRUM
7474
tristate "Mellanox Technologies Spectrum support"
7575
depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
76+
select PARMAN
7677
default m
7778
---help---
7879
This driver supports Mellanox Technologies Spectrum Ethernet

‎drivers/net/ethernet/mellanox/mlxsw/Makefile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
obj-$(CONFIG_MLXSW_CORE) += mlxsw_core.o
2-
mlxsw_core-objs := core.o
2+
mlxsw_core-objs := core.o core_acl_flex_keys.o \
3+
core_acl_flex_actions.o
34
mlxsw_core-$(CONFIG_MLXSW_CORE_HWMON) += core_hwmon.o
45
mlxsw_core-$(CONFIG_MLXSW_CORE_THERMAL) += core_thermal.o
56
obj-$(CONFIG_MLXSW_PCI) += mlxsw_pci.o
@@ -13,7 +14,8 @@ mlxsw_switchx2-objs := switchx2.o
1314
obj-$(CONFIG_MLXSW_SPECTRUM) += mlxsw_spectrum.o
1415
mlxsw_spectrum-objs := spectrum.o spectrum_buffers.o \
1516
spectrum_switchdev.o spectrum_router.o \
16-
spectrum_kvdl.o
17+
spectrum_kvdl.o spectrum_acl_tcam.o \
18+
spectrum_acl.o spectrum_flower.o
1719
mlxsw_spectrum-$(CONFIG_MLXSW_SPECTRUM_DCB) += spectrum_dcb.o
1820
obj-$(CONFIG_MLXSW_MINIMAL) += mlxsw_minimal.o
1921
mlxsw_minimal-objs := minimal.o

0 commit comments

Comments
 (0)