Merge tag 'for-linus-4.18-2' of git://github.com/cminyard/linux-ipmi
[linux-2.6-microblaze.git] / drivers / net / bonding / bond_options.c
index 8a945c9..98663c5 100644 (file)
@@ -1142,6 +1142,7 @@ static int bond_option_primary_set(struct bonding *bond,
                                   slave->dev->name);
                        rcu_assign_pointer(bond->primary_slave, slave);
                        strcpy(bond->params.primary, slave->dev->name);
+                       bond->force_primary = true;
                        bond_select_active_slave(bond);
                        goto out;
                }