Skip to content

Commit 4cda7d8

Browse files
jpirkodavem330
authored andcommitted
mlxsw: core: Introduce flexible actions support
Each entry which is matched during ACL lookup points to an action set. This action set contains up to three separate actions. If more actions are needed to be chained, the extended set is created to hold them in KVD linear area. This patch implements handling of sets and encoding of actions. Currectly, only two actions are supported. Drop and forward. Forward action uses PBS pointer to KVD linear area, so the action code needs to take care of this as well. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3f1a84e commit 4cda7d8

File tree

3 files changed

+753
-1
lines changed

3 files changed

+753
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/Makefile

Lines changed: 2 additions & 1 deletion
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 core_acl_flex_keys.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

0 commit comments

Comments
 (0)