diff options
author | Jiri Pirko <jiri@resnulli.us> | 2014-06-27 10:13:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-01 21:57:43 -0400 |
commit | 763e0ecd72fe90fdd73bb1aa1b72caf8381d2fff (patch) | |
tree | 4414948bcf6b4c1abac073fec9b69ec2b82adc3f /drivers/net/bonding | |
parent | 813f8e29c9d8f3b3b3c9d332260f6aaf95110601 (diff) |
bonding: allow to add vlans on top of empty bond
This limitation maybe had some reason in the past, but now there is not
one -> removing this.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Veaceslav Falico <vfalico@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 13 |
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; |