Message ID | 20230315111842.1589296-3-razor@blackwall.org (mailing list archive) |
---|---|
State | Accepted |
Commit | e667d469098671261d558be0cd93dca4d285ce1e |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | bonding: properly restore flags when bond changes ether type | expand |
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 4bd911f9d3f9..236e5219c811 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -2300,9 +2300,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev, eth_hw_addr_random(bond_dev); if (bond_dev->type != ARPHRD_ETHER) { dev_close(bond_dev); - ether_setup(bond_dev); - bond_dev->flags |= IFF_MASTER; - bond_dev->priv_flags &= ~IFF_TX_SKB_SHARING; + bond_ether_setup(bond_dev); } }