aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_l3_main.c
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.ibm.com>2018-07-19 12:43:53 +0200
committerDavid S. Miller <davem@davemloft.net>2018-07-21 10:12:30 -0700
commit8ce7a9e064db4a31e9d9d08300e2f3e9679eaffe (patch)
treeb952632981f4ae4d1891c7b1d2873788717b77fa /drivers/s390/net/qeth_l3_main.c
parents390/qeth: don't cache HW port number (diff)
downloadlinux-dev-8ce7a9e064db4a31e9d9d08300e2f3e9679eaffe.tar.xz
linux-dev-8ce7a9e064db4a31e9d9d08300e2f3e9679eaffe.zip
s390/qeth: simplify max MTU handling
When the MPC initialization code discovers the HW-specific max MTU, apply the resulting changes straight to the netdevice. If this is the device's first initialization, also set its MTU (HiperSockets: the max MTU; else: a layer-specific default value). Then cap the current MTU by the new max MTU. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/s390/net/qeth_l3_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c
index 72c8f323801b..e5fa8e5ac1b3 100644
--- a/drivers/s390/net/qeth_l3_main.c
+++ b/drivers/s390/net/qeth_l3_main.c
@@ -2579,7 +2579,6 @@ static int qeth_l3_setup_netdev(struct qeth_card *card)
} else
return -ENODEV;
- card->dev->mtu = card->info.initial_mtu;
card->dev->ethtool_ops = &qeth_l3_ethtool_ops;
card->dev->priv_flags &= ~IFF_TX_SKB_SHARING;
card->dev->needed_headroom = sizeof(struct qeth_hdr) - ETH_HLEN;