summary refs log tree commit diff
path: root/drivers/xen/manage.c
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-03-23 01:51:52 +0200
committerDavid S. Miller <davem@davemloft.net>2021-03-23 14:49:06 -0700
commite4bd44e89dcf37345e4851c5e775cb5abf38ab62 (patch)
tree0385f926132f4595dd87aac94a098fc9433944d9 /drivers/xen/manage.c
parent81ef35e7619a04b902ca457d60594f956154b9f2 (diff)
downloadlinux-e4bd44e89dcf37345e4851c5e775cb5abf38ab62.tar.gz
net: ocelot: replay switchdev events when joining bridge
The premise of this change is that the switchdev port attributes and
objects offloaded by ocelot might have been missed when we are joining
an already existing bridge port, such as a bonding interface.

The patch pulls these switchdev attributes and objects from the bridge,
on behalf of the 'bridge port' net device which might be either the
ocelot switch interface, or the bonding upper interface.

The ocelot_net.c belongs strictly to the switchdev ocelot driver, while
ocelot.c is part of a library shared with the DSA felix driver.
The ocelot_port_bridge_leave function (part of the common library) used
to call ocelot_port_vlan_filtering(false), something which is not
necessary for DSA, since the framework deals with that already there.
So we move this function to ocelot_switchdev_unsync, which is specific
to the switchdev driver.

The code movement described above makes ocelot_port_bridge_leave no
longer return an error code, so we change its type from int to void.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/xen/manage.c')
0 files changed, 0 insertions, 0 deletions