diff options
author | Sarveshwar Bandi <sarveshwar.bandi@emulex.com> | 2012-06-13 23:51:43 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-18 03:18:51 +0400 |
commit | b7e5887e0e414bde0a2f311ae3fbea5611562e29 (patch) | |
tree | 276daa4d03097a1cb2bb250595a10367fd607130 | |
parent | b6138ed60457ef1e9150692f6790eb4a2a696308 (diff) | |
download | linux-b7e5887e0e414bde0a2f311ae3fbea5611562e29.tar.xz |
be2net: reduce gso_max_size setting to account for ethernet header.
The maximum size of packet that can be handled by controller including ethernet
header is 65535. Reducing gso_max_size accordingly.
Signed-off-by: Sarveshwar Bandi <sarveshwar.bandi@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index fdb50cec6b51..501dfa9c88ec 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -3237,7 +3237,7 @@ static void be_netdev_init(struct net_device *netdev) netdev->flags |= IFF_MULTICAST; - netif_set_gso_max_size(netdev, 65535); + netif_set_gso_max_size(netdev, 65535 - ETH_HLEN); netdev->netdev_ops = &be_netdev_ops; |