summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
authorJiri Pirko2015-12-03 12:12:21 +0100
committerDavid S. Miller2015-12-03 17:49:27 +0100
commit57beaca8ecd77c85087270ef15ff319767994f6d (patch)
treeb3a917f532198b8257cec141a1660e9fdd9d75e5 /drivers/net/bonding/bond_main.c
parentbonding: implement lower state change propagation (diff)
downloadkernel-qcow2-linux-57beaca8ecd77c85087270ef15ff319767994f6d.tar.gz
kernel-qcow2-linux-57beaca8ecd77c85087270ef15ff319767994f6d.tar.xz
kernel-qcow2-linux-57beaca8ecd77c85087270ef15ff319767994f6d.zip
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: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 2f1145063c60..5a7de43a09f8 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -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 */