]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
bonding: enable gro by default
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 17 Sep 2010 09:25:07 +0000 (09:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Sep 2010 23:53:24 +0000 (16:53 -0700)
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>
drivers/net/bonding/bond_main.c

index 3b16f62d5606c741e97fb0a7c7b0b211c903157d..fb70c3e12927194ec0f16ac37955471cfd5333e5 100644 (file)
@@ -4678,6 +4678,10 @@ static void bond_setup(struct net_device *bond_dev)
                               NETIF_F_HW_VLAN_RX |
                               NETIF_F_HW_VLAN_FILTER);
 
+       /* By default, we enable GRO on bonding devices.
+        * Actual support requires lowlevel drivers are GRO ready.
+        */
+       bond_dev->features |= NETIF_F_GRO;
 }
 
 static void bond_work_cancel_all(struct bonding *bond)