net: dsa: bcm_sf2: Propagate ethtool::rxnfc to CPU port
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 7 Aug 2018 17:50:22 +0000 (10:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Aug 2018 19:15:03 +0000 (12:15 -0700)
commit8a75f4f2acd78adfaf4b96939322d8a1de97d378
tree4f9af091cedf7770d5533a6638901323861d01ac
parent6cfef793b558eee47bac720574aff0d36b89d20a
net: dsa: bcm_sf2: Propagate ethtool::rxnfc to CPU port

Allow propagating ethtool::rxnfc programming to the CPU/management port
such that it is possible for such a CPU to perform e.g: Wake-on-LAN
using filters configured by the switch. We need a tiny bit of
cooperation between the switch drivers which is able to do the full flow
matching, whereas the CPU/management port might not. The CPU/management
driver needs to return -EOPNOTSUPP to indicate an non critical error,
any other error code otherwise.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2_cfp.c