summaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_core_main.c
diff options
context:
space:
mode:
authorJulian Wiedmann2018-07-19 12:43:58 +0200
committerDavid S. Miller2018-07-21 19:12:30 +0200
commit5f89eca577776952325ee35da54786d26de1120a (patch)
treebae78d7a1eca3196a41a4bdb0aa44dd08a6b7a4e /drivers/s390/net/qeth_core_main.c
parents390/qeth: add support for constrained HW headers (diff)
downloadkernel-qcow2-linux-5f89eca577776952325ee35da54786d26de1120a.tar.gz
kernel-qcow2-linux-5f89eca577776952325ee35da54786d26de1120a.tar.xz
kernel-qcow2-linux-5f89eca577776952325ee35da54786d26de1120a.zip
s390/qeth: speed up L2 IQD xmit
Modify the L2 OSA xmit path so that it also supports L2 IQD devices (in particular, their HW header requirements). This allows IQD devices to advertise NETIF_F_SG support, and eliminates the allocation overhead for the HW header. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core_main.c')
-rw-r--r--drivers/s390/net/qeth_core_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index 732b517369c7..d09a7110b381 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -5731,6 +5731,13 @@ static struct net_device *qeth_alloc_netdev(struct qeth_card *card)
dev->mtu = 0;
SET_NETDEV_DEV(dev, &card->gdev->dev);
netif_carrier_off(dev);
+
+ if (!IS_OSN(card)) {
+ dev->priv_flags &= ~IFF_TX_SKB_SHARING;
+ dev->hw_features |= NETIF_F_SG;
+ dev->vlan_features |= NETIF_F_SG;
+ }
+
return dev;
}