net: dsa: mv88e6xxx: make switchdev DB ops generic
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Wed, 31 Aug 2016 15:50:04 +0000 (11:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Aug 2016 21:15:43 +0000 (14:15 -0700)
commit83dabd1fa84cdf288303f8cbe7a56849bb553ea9
tree4c69e75dbd8e0474effac7630bc0eecfcb4608f9
parent8df3025520aaeba36aba867a4851f8968ac65b4d
net: dsa: mv88e6xxx: make switchdev DB ops generic

The MDB support for the mv88e6xxx driver will be very similar to the FDB
support, since it consists of loading/purging/dumping address to/from
the Address Translation Unit (ATU).

Prepare the support for MDB by making the FDB code accessing the ATU
generic. The FDB operations now provide access to the unicast addresses
while the MDB operations will provide access to the multicast addresses.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c