]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Offload multichain TC rules
authorJiri Pirko <jiri@mellanox.com>
Wed, 23 Aug 2017 08:08:18 +0000 (10:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Aug 2017 03:44:32 +0000 (20:44 -0700)
commit4bb428e97fd5a7e092f78366e3fdbc29dbfdeda7
tree235166b510c655f2533f99a85754c3da5b20a040
parent25705c1520f80652a7bc52809f7b079084dca428
mlxsw: spectrum: Offload multichain TC rules

Reflect chain index coming down from TC core and create a ruleset per
chain. Note that only chain 0, being the implicit chain, is bound to the
device for processing. The rest of chains have to be "jumped-to" by
actions.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c