]> git.baikalelectronics.ru Git - kernel.git/commit
spectrum: flower: Treat ETH_P_ALL as a special case and translate for HW
authorJiri Pirko <jiri@mellanox.com>
Thu, 9 Feb 2017 13:42:03 +0000 (14:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 18:42:50 +0000 (13:42 -0500)
commit9d0d1ac4c67daa75ee6bb2d482ac9941cc3c1f67
tree880f1f0bbb458efa075d9dc884df329580337066
parent32888cdd2d753a91023b32601aa4a101f910914c
spectrum: flower: Treat ETH_P_ALL as a special case and translate for HW

HW does not understand ETH_P_ALL. So treat this special case differently
and translate to 0/0 key/mask. That will allow HW to match all ethertypes.

Fixes: 3600960c8cd2 ("mlxsw: spectrum: Implement TC flower offload")
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/spectrum_flower.c