]> 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)
commitc5599cc4774f408930551ce97a996856959f7825
tree880f1f0bbb458efa075d9dc884df329580337066
parenteecf10db6860af2fd2a9a6b3005b4aa66c2ef003
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: 2734d91dfd20 ("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