OSDN Git Service

net: dsa: add switch mdb bitmap functions
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 30 Nov 2017 16:24:00 +0000 (11:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Dec 2017 02:18:56 +0000 (21:18 -0500)
commite6db98db8a9595f8001958e489ff07ed97a15a54
tree934469e8b3fe39d8d5e6c743384ccb1d8a9788a7
parent9c428c593fb7533595c439b510e5eb5e94aec65e
net: dsa: add switch mdb bitmap functions

This patch brings no functional changes.
It moves out the MDB code iterating on a multicast group into new
dsa_switch_mdb_{prepare,add}_bitmap() functions.

This gives us a better isolation of the two switchdev phases.

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