linux/drivers/net/bonding
Veaceslav Falico 3ec775b9fb bonding: handle slave's name change with primary_slave logic
Currently, if a slave's name change, we just pass it by. However, if the
slave is a current primary_slave, then we end up with using a slave, whose
name != params.primary, for primary_slave. And vice-versa, if we don't have
a primary_slave but have params.primary set - we will not detected a new
primary_slave.

Fix this by catching the NETDEV_CHANGENAME event and setting primary_slave
accordingly. Also, if the primary_slave was changed, issue a reselection of
the active slave, cause the priorities have changed.

Reported-by: Ding Tianhong <dingtianhong@huawei.com>
CC: Ding Tianhong <dingtianhong@huawei.com>
CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Acked-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-01-16 17:26:47 -08:00
..
Makefile bonding: move mode setting into separate function 2013-10-19 18:58:45 -04:00
bond_3ad.c bonding: fix __get_active_agg() RCU logic 2014-01-13 22:22:27 -08:00
bond_3ad.h bonding: remove the return value for bond_3ad_bind_slave() 2014-01-01 22:58:55 -05:00
bond_alb.c bonding: slight optimization for bond_alb_xmit() 2014-01-01 22:58:15 -05:00
bond_alb.h drivers/net/*: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
bond_debugfs.c bonding: delete migrated IP addresses from the rlb hash table 2012-11-30 12:07:27 -05:00
bond_main.c bonding: handle slave's name change with primary_slave logic 2014-01-16 17:26:47 -08:00
bond_netlink.c bonding: fix netlink msg size 2014-01-03 21:03:21 -05:00
bond_options.c bonding: add bounds checking for tbl params 2014-01-03 21:03:22 -05:00
bond_procfs.c bonding: don't use bond_next_slave() in bond_info_seq_next() 2013-09-28 15:28:06 -07:00
bond_sysfs.c bonding: fix kstrtou8() return value verification in num_peer_notif 2014-01-06 16:26:00 -05:00
bonding.h bonding: add ad_select attribute netlink support 2014-01-03 21:03:21 -05:00