OSDN Git Service

net: dsa: add switch vlan bitmap functions
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 30 Nov 2017 16:23:59 +0000 (11:23 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Dec 2017 02:18:56 +0000 (21:18 -0500)
commit9c428c593fb7533595c439b510e5eb5e94aec65e
treeae24c2fba9fd22add3a0607e7e874778dc1f09c8
parent3709aadc8375a1b0c42da5b12e38eddf8133dd4e
net: dsa: add switch vlan bitmap functions

This patch brings no functional changes.
It moves out the VLAN code iterating on a list of VLAN members into new
dsa_switch_vlan_{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