aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/bonding/bond_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 1eb3979d0af5..3960b1b26178 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -1382,6 +1382,7 @@ static void bond_compute_features(struct bonding *bond)
1382 netdev_features_t vlan_features = BOND_VLAN_FEATURES; 1382 netdev_features_t vlan_features = BOND_VLAN_FEATURES;
1383 unsigned short max_hard_header_len = ETH_HLEN; 1383 unsigned short max_hard_header_len = ETH_HLEN;
1384 int i; 1384 int i;
1385 unsigned int flags, dst_release_flag = IFF_XMIT_DST_RELEASE;
1385 1386
1386 read_lock(&bond->lock); 1387 read_lock(&bond->lock);
1387 1388
@@ -1392,6 +1393,7 @@ static void bond_compute_features(struct bonding *bond)
1392 vlan_features = netdev_increment_features(vlan_features, 1393 vlan_features = netdev_increment_features(vlan_features,
1393 slave->dev->vlan_features, BOND_VLAN_FEATURES); 1394 slave->dev->vlan_features, BOND_VLAN_FEATURES);
1394 1395
1396 dst_release_flag &= slave->dev->priv_flags;
1395 if (slave->dev->hard_header_len > max_hard_header_len) 1397 if (slave->dev->hard_header_len > max_hard_header_len)
1396 max_hard_header_len = slave->dev->hard_header_len; 1398 max_hard_header_len = slave->dev->hard_header_len;
1397 } 1399 }
@@ -1400,6 +1402,9 @@ done:
1400 bond_dev->vlan_features = vlan_features; 1402 bond_dev->vlan_features = vlan_features;
1401 bond_dev->hard_header_len = max_hard_header_len; 1403 bond_dev->hard_header_len = max_hard_header_len;
1402 1404
1405 flags = bond_dev->priv_flags & ~IFF_XMIT_DST_RELEASE;
1406 bond_dev->priv_flags = flags | dst_release_flag;
1407
1403 read_unlock(&bond->lock); 1408 read_unlock(&bond->lock);
1404 1409
1405 netdev_change_features(bond_dev); 1410 netdev_change_features(bond_dev);