From: Eric Dumazet Date: Fri, 17 Sep 2010 09:25:07 +0000 (+0000) Subject: bonding: enable gro by default X-Git-Tag: MMI-PSA29.97-13-9~21994^2~404 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e6599c2ecf18002339fe81cde1fa83b37bf26290;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- 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) 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)