net: dsa: mv88e6xxx: add RXNFC support
authorVivien Didelot <vivien.didelot@gmail.com>
Sat, 7 Sep 2019 20:00:49 +0000 (16:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Sep 2019 15:53:31 +0000 (16:53 +0100)
commitda7dc87553046a43be1620a783ce3d9f6583d322
tree4eb25a6df0f3b1d7a0188b0f556ed5cfed549f3c
parentf3a2cd326e448f5b62b96b68bf12d2621de19303
net: dsa: mv88e6xxx: add RXNFC support

Implement the .get_rxnfc and .set_rxnfc DSA operations to configure
a port's Layer 2 Policy Control List (PCL) via ethtool.

Currently only dropping frames based on MAC Destination or Source
Address (including the option VLAN parameter) is supported.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h