From: frank.blaschka@de•ibm.com
To: davem@davemloft•net
Cc: netdev@vger•kernel.org, linux-s390@vger•kernel.org,
Stefan Raspl <raspl@linux•vnet.ibm.com>
Subject: [patch 2/5] qeth: Increase default MTU for OSA devices
Date: Mon, 24 Jun 2013 13:21:49 +0200 [thread overview]
Message-ID: <20130624112226.544988561@de.ibm.com> (raw)
In-Reply-To: 20130624112147.347247916@de.ibm.com
[-- Attachment #1: 601-qeth-default-mtu.diff --]
[-- Type: text/plain, Size: 1300 bytes --]
From: Stefan Raspl <raspl@linux•vnet.ibm.com>
Increase the default MTU for real OSA devices in layer 2 mode
to 1500 Bytes for increased compatibility.
Signed-off-by: Stefan Raspl <raspl@linux•vnet.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux•vnet.ibm.com>
Reviewed-by: Ursula Braun <ursula.braun@de•ibm.com>
---
drivers/s390/net/qeth_core_main.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -2198,11 +2198,11 @@ static inline int qeth_get_initial_mtu_f
case QETH_LINK_TYPE_LANE_TR:
return 2000;
default:
- return 1492;
+ return card->options.layer2 ? 1500 : 1492;
}
case QETH_CARD_TYPE_OSM:
case QETH_CARD_TYPE_OSX:
- return 1492;
+ return card->options.layer2 ? 1500 : 1492;
default:
return 1500;
}
@@ -2275,9 +2275,10 @@ static int qeth_ulp_enable_cb(struct qet
card->info.max_mtu = mtu;
card->qdio.in_buf_size = mtu + 2 * PAGE_SIZE;
} else {
- card->info.initial_mtu = qeth_get_initial_mtu_for_card(card);
card->info.max_mtu = *(__u16 *)QETH_ULP_ENABLE_RESP_MAX_MTU(
iob->data);
+ card->info.initial_mtu = min(card->info.max_mtu,
+ qeth_get_initial_mtu_for_card(card));
card->qdio.in_buf_size = QETH_IN_BUF_SIZE_DEFAULT;
}
next prev parent reply other threads:[~2013-06-24 11:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-24 11:21 [patch 0/5] s390: network patches for net-next frank.blaschka
2013-06-24 11:21 ` [patch 1/5] netiucv: remove unused macro frank.blaschka
2013-06-24 11:21 ` frank.blaschka [this message]
2013-06-24 11:21 ` [patch 3/5] qeth: change default standard blkt settings for OSA frank.blaschka
2013-06-24 11:21 ` [patch 4/5] qeth: Fix crash on initial MTU size change frank.blaschka
2013-06-24 11:21 ` [patch 5/5] qeth: use default napi weight frank.blaschka
2013-06-25 23:25 ` [patch 0/5] s390: network patches for net-next David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130624112226.544988561@de.ibm.com \
--to=frank.blaschka@de$(echo .)ibm.com \
--cc=davem@davemloft$(echo .)net \
--cc=linux-s390@vger$(echo .)kernel.org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=raspl@linux$(echo .)vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox