]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
s390/qeth: switch on SG by default for IQD devices
authorJulian Wiedmann <jwi@linux.ibm.com>
Wed, 12 Sep 2018 13:31:33 +0000 (15:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Sep 2018 20:12:51 +0000 (13:12 -0700)
Scatter-gather transmit brings a nice performance boost. Considering the
rather large MTU sizes at play, it's also totally the Right Thing To Do.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c

index 6b24face21d5587266803d60b0630d19b5684501..b60055e9cb1a64bd3fcb1f50fbb5028b2a447f09 100644 (file)
@@ -5706,6 +5706,8 @@ static struct net_device *qeth_alloc_netdev(struct qeth_card *card)
                dev->priv_flags &= ~IFF_TX_SKB_SHARING;
                dev->hw_features |= NETIF_F_SG;
                dev->vlan_features |= NETIF_F_SG;
+               if (IS_IQD(card))
+                       dev->features |= NETIF_F_SG;
        }
 
        return dev;