diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2018-07-11 17:42:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-12 16:42:39 -0700 |
commit | 371a1e7a07a0d1bb272f69ccb3df617f8a049d07 (patch) | |
tree | 589ce02e3b9d9045061c1193083317dab4792d9f /drivers/s390 | |
parent | 09960b3a0a474f420894d88ae2e6f09ee4c60f9c (diff) | |
download | linux-371a1e7a07a0d1bb272f69ccb3df617f8a049d07.tar.gz linux-371a1e7a07a0d1bb272f69ccb3df617f8a049d07.tar.bz2 linux-371a1e7a07a0d1bb272f69ccb3df617f8a049d07.zip |
s390/qeth: increase GSO max size for eligible L3 devices
When a L3 device doesn't offer TSO, allow the stack to build full-size
GSO skbs.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 7b4de46bf6e3..d07803df460b 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c @@ -2536,8 +2536,9 @@ static int qeth_l3_setup_netdev(struct qeth_card *card) NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_HW_VLAN_CTAG_FILTER; netif_keep_dst(card->dev); - netif_set_gso_max_size(card->dev, (QETH_MAX_BUFFER_ELEMENTS(card) - 1) * - PAGE_SIZE); + if (card->dev->hw_features & NETIF_F_TSO) + netif_set_gso_max_size(card->dev, + PAGE_SIZE * (QETH_MAX_BUFFER_ELEMENTS(card) - 1)); SET_NETDEV_DEV(card->dev, &card->gdev->dev); netif_napi_add(card->dev, &card->napi, qeth_poll, QETH_NAPI_WEIGHT); |