diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2014-06-04 16:23:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-04 15:13:54 -0700 |
commit | c565b488c6a86fdff24f6d716defc3d07a474b44 (patch) | |
tree | 3fdb2f79f69bdf53a65f9224cddc1234f4418357 /drivers/net/bonding/bond_main.c | |
parent | f830b0223cabfc614552a73dabff920859191f2e (diff) | |
download | lwn-c565b488c6a86fdff24f6d716defc3d07a474b44.tar.gz lwn-c565b488c6a86fdff24f6d716defc3d07a474b44.zip |
bonding: Turn on IFF_UNICAST_FLT on bond devices
Bonding devices manage the unicast filters of the underlying
interfaces, but do not turn on IFF_UNICAST_FLT flag. Thus
anytime a unicast address is added to the bond, the bond is
places in promiscuous mode.
Turn on IFF_UNICAST_FLT on the bond device so that the bond does
not go into promiscuous mode needlesly. If an underlying device
does not support unicast filtering, that device will automaticall
enter promiscuous mode already.
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 59a12c61ceb4..a89bf18caa79 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -3945,7 +3945,7 @@ void bond_setup(struct net_device *bond_dev) /* Initialize the device options */ bond_dev->tx_queue_len = 0; bond_dev->flags |= IFF_MASTER|IFF_MULTICAST; - bond_dev->priv_flags |= IFF_BONDING; + bond_dev->priv_flags |= IFF_BONDING | IFF_UNICAST_FLT; bond_dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING); /* At first, we block adding VLANs. That's the only way to |