Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/usb/asix_common.c drivers/net/usb/sr9800.c drivers/net/usb/usbnet.c include/linux/usb/usbnet.h net/ipv4/tcp_ipv4.c net/ipv6/tcp_ipv6.c The TCP conflicts were overlapping changes. In 'net' we added a READ_ONCE() to the socket cached RX route read, whilst in 'net-next' Eric Dumazet touched the surrounding code dealing with how mini sockets are handled. With USB, it's a case of the same bug fix first going into net-next and then I cherry picked it back into net. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -4937,10 +4937,16 @@ static int rocker_port_master_changed(struct net_device *dev)
|
||||
struct net_device *master = netdev_master_upper_dev_get(dev);
|
||||
int err = 0;
|
||||
|
||||
/* There are currently three cases handled here:
|
||||
* 1. Joining a bridge
|
||||
* 2. Leaving a previously joined bridge
|
||||
* 3. Other, e.g. being added to or removed from a bond or openvswitch,
|
||||
* in which case nothing is done
|
||||
*/
|
||||
if (master && master->rtnl_link_ops &&
|
||||
!strcmp(master->rtnl_link_ops->kind, "bridge"))
|
||||
err = rocker_port_bridge_join(rocker_port, master);
|
||||
else
|
||||
else if (rocker_port_is_bridged(rocker_port))
|
||||
err = rocker_port_bridge_leave(rocker_port);
|
||||
|
||||
return err;
|
||||
|
Reference in New Issue
Block a user