net: mscc: ocelot: lift protocol restriction for flow_match_eth_addrs keys
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 20 Apr 2020 16:27:43 +0000 (19:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Apr 2020 18:40:51 +0000 (11:40 -0700)
commit4faa2e06433fbba16a13a21e1380ee4d246b95fc
tree70dcc676be67e4eb2447140695bfd1faf35de6d2
parent7dec902f4fc0cf1162e18030f2598440e311a2d2
net: mscc: ocelot: lift protocol restriction for flow_match_eth_addrs keys

An attempt was made in commit fe3490e6107e ("net: mscc: ocelot: Hardware
ofload for tc flower filter") to avoid clashes between MAC_ETYPE rules
and IP rules. Because the protocol blacklist should have included
ETH_P_ALL too, it created some confusion, but now the situation should
be dealt with a bit better by the patch immediately previous to this one
("net: mscc: ocelot: refine the ocelot_ace_is_problematic_mac_etype
function").

So now we can remove that check. MAC_ETYPE rules with a protocol of
ETH_P_IP, ETH_P_IPV6, ETH_P_ARP and ETH_P_ALL _are_ supported, with some
restrictions regarding per-port exclusivity which are enforced now.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_flower.c