Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57beaca8 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

bonding: set inactive flags on release



Be correct and symmetric to enslave and set inactive flags during release.
That gives LAG offload drivers - lower state change listeners - possibility
to do proper cleanup.

Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f7c7eb7f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1832,6 +1832,8 @@ static int __bond_release_one(struct net_device *bond_dev,
		return -EINVAL;
	}

	bond_set_slave_inactive_flags(slave, BOND_SLAVE_NOTIFY_NOW);

	bond_sysfs_slave_del(slave);

	/* recompute stats just before removing the slave */