diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-09-19 19:56:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-21 00:04:50 -0400 |
commit | 8847293992606677d5e446d1e712bd128ea7977f (patch) | |
tree | d039fd6b94a1f4fa2a39c42456b5931a47bc6173 /drivers/net/ethernet | |
parent | aecc5cefc389735b5327d234e11d1fe505e1c280 (diff) | |
download | linux-8847293992606677d5e446d1e712bd128ea7977f.tar.bz2 |
net: dsa: mv88e6xxx: handle multiple ports in ATU
An address can be loaded in the ATU with multiple ports, for instance
when adding multiple ports to a Multicast group with "bridge mdb".
The current code doesn't allow that. Add an helper to get a single entry
from the ATU, then set or clear the requested port, before loading the
entry back in the ATU.
Note that the required _mv88e6xxx_atu_getnext function is defined below
mv88e6xxx_port_db_load_purge, so forward-declare it for the moment. The
ATU code will be isolated in future patches.
Fixes: 83dabd1fa84c ("net: dsa: mv88e6xxx: make switchdev DB ops generic")
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
0 files changed, 0 insertions, 0 deletions