]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitdc371700d43e45ed9bf380746e293f063113c2b1
tree880f1f0bbb458efa075d9dc884df329580337066
parent201dacbb1d77e3227aa61b7b9fd375ae201e86b2
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: 7aa0f5aa9030 ("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