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)
commit7aa0f5aa9030aa97e9d83d834fc977664cf1b066
treea30a65453da541f4f6ad8f37e43892cae29fb8ec
parent69ca05ce9dec2cc95070df7f1f10ea6c9c12d237
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]