aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r--drivers/net/bonding/bond_main.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 3a451b6cd3d5..ffefb704b529 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -1001,12 +1001,6 @@ static netdev_features_t bond_fix_features(struct net_device *dev,
1001 netdev_features_t mask; 1001 netdev_features_t mask;
1002 struct slave *slave; 1002 struct slave *slave;
1003 1003
1004 if (!bond_has_slaves(bond)) {
1005 /* Disable adding VLANs to empty bond. But why? --mq */
1006 features |= NETIF_F_VLAN_CHALLENGED;
1007 return features;
1008 }
1009
1010 mask = features; 1004 mask = features;
1011 features &= ~NETIF_F_ONE_FOR_ALL; 1005 features &= ~NETIF_F_ONE_FOR_ALL;
1012 features |= NETIF_F_ALL_FOR_ALL; 1006 features |= NETIF_F_ALL_FOR_ALL;
@@ -3956,13 +3950,6 @@ void bond_setup(struct net_device *bond_dev)
3956 bond_dev->priv_flags |= IFF_BONDING | IFF_UNICAST_FLT; 3950 bond_dev->priv_flags |= IFF_BONDING | IFF_UNICAST_FLT;
3957 bond_dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING); 3951 bond_dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING);
3958 3952
3959 /* At first, we block adding VLANs. That's the only way to
3960 * prevent problems that occur when adding VLANs over an
3961 * empty bond. The block will be removed once non-challenged
3962 * slaves are enslaved.
3963 */
3964 bond_dev->features |= NETIF_F_VLAN_CHALLENGED;
3965
3966 /* don't acquire bond device's netif_tx_lock when 3953 /* don't acquire bond device's netif_tx_lock when
3967 * transmitting */ 3954 * transmitting */
3968 bond_dev->features |= NETIF_F_LLTX; 3955 bond_dev->features |= NETIF_F_LLTX;