]> asedeno.scripts.mit.edu Git - linux.git/commit
net: dsa: add slave VLAN helpers
authorVivien Didelot <vivien.didelot@gmail.com>
Sun, 25 Aug 2019 17:25:17 +0000 (13:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 03:17:27 +0000 (20:17 -0700)
commitbdcff080f7ae1932893436f7891528aa8fc59cb9
treedc3ca953aa4e4f1f7e0b35a85eee24ae1d109646
parentcf360866b11901eca5317e8a5c26c3e15b7bf1f2
net: dsa: add slave VLAN helpers

Add dsa_slave_vlan_add and dsa_slave_vlan_del helpers to handle
SWITCHDEV_OBJ_ID_PORT_VLAN switchdev objects. Also copy the
switchdev_obj_port_vlan structure on add since we will modify it in
future patches.

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