aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-09-17 05:25:07 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-17 19:53:24 -0400
commite6599c2ecf18002339fe81cde1fa83b37bf26290 (patch)
tree8cd7549605c0459e9730537e0e9235e6d01355d8
parent07af7a2bfa853db3957a22f9a41f437bf0f10e63 (diff)
bonding: enable gro by default
gro can be enabled by default on bonding devices. Actual support depends on the lower devices. One can still use ethtool to switch off GRO if needed. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/bonding/bond_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 3b16f62d5606..fb70c3e12927 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -4678,6 +4678,10 @@ static void bond_setup(struct net_device *bond_dev)
4678 NETIF_F_HW_VLAN_RX | 4678 NETIF_F_HW_VLAN_RX |
4679 NETIF_F_HW_VLAN_FILTER); 4679 NETIF_F_HW_VLAN_FILTER);
4680 4680
4681 /* By default, we enable GRO on bonding devices.
4682 * Actual support requires lowlevel drivers are GRO ready.
4683 */
4684 bond_dev->features |= NETIF_F_GRO;
4681} 4685}
4682 4686
4683static void bond_work_cancel_all(struct bonding *bond) 4687static void bond_work_cancel_all(struct bonding *bond)