This small series implements the ethtool RXNFC operations in the mv88e6xxx DSA driver to configure a port's Layer 2 Policy Control List (PCL) supported by models such as 88E6352 and 88E6390 and equivalent.
This allows to configure a port to discard frames based on a configured destination or source MAC address and an optional VLAN, with e.g.: # ethtool --config-nfc lan1 flow-type ether src 00:11:22:33:44:55 action -1 Vivien Didelot (3): net: dsa: mv88e6xxx: complete ATU state definitions net: dsa: mv88e6xxx: introduce .port_set_policy net: dsa: mv88e6xxx: add RXNFC support drivers/net/dsa/mv88e6xxx/chip.c | 241 ++++++++++++++++++++++-- drivers/net/dsa/mv88e6xxx/chip.h | 35 ++++ drivers/net/dsa/mv88e6xxx/global1.h | 43 +++-- drivers/net/dsa/mv88e6xxx/global1_atu.c | 6 +- drivers/net/dsa/mv88e6xxx/port.c | 74 ++++++++ drivers/net/dsa/mv88e6xxx/port.h | 17 +- 6 files changed, 388 insertions(+), 28 deletions(-) -- 2.23.0