]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Implement TC flower offload
authorJiri Pirko <jiri@mellanox.com>
Fri, 3 Feb 2017 09:29:09 +0000 (10:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2017 21:35:43 +0000 (16:35 -0500)
commit2734d91dfd20a96b281c2731121d595863500b3c
treea30a65453da541f4f6ad8f37e43892cae29fb8ec
parent1eb26c42a33221a56301aa7bfa91d26b3b8d66ba
mlxsw: spectrum: Implement TC flower offload

Extend the existing setup_tc ndo call and allow to offload cls_flower
rules. Only limited set of dissector keys and actions are supported now.
Use previously introduced ACL infrastructure to offload cls_flower rules
to be processed in the HW.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/Makefile
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c [new file with mode: 0644]