]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: dsa: use switchdev handle helpers
authorVivien Didelot <vivien.didelot@gmail.com>
Fri, 14 Jun 2019 17:49:22 +0000 (13:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 03:20:07 +0000 (20:20 -0700)
commit79b139f4bc4659016854115b9104cfb9ef598b31
treee172a8546806917545ec7371c428d28532974e15
parentf3b78049d4629b4fc565e225dda4e3ffdf907a84
net: dsa: use switchdev handle helpers

Get rid of the dsa_slave_switchdev_port_{attr_set,obj}_event functions
in favor of the switchdev_handle_port_{attr_set,obj_add,obj_del}
helpers which recurse into the lower devices of the target interface.

This has the benefit of being aware of the operations made on the
bridge device itself, where orig_dev is the bridge, and dev is the
slave. This can be used later to configure the hardware switches.

Only VLAN and (port) MDB objects not directly targeting the slave
device are unsupported at the moment, so skip this case in their
respective case statements.

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