* [patch 0/5] s390: network patches for net-next
@ 2012-09-24 14:24 frank.blaschka
2012-09-24 19:47 ` David Miller
0 siblings, 1 reply; 9+ messages in thread
From: frank.blaschka @ 2012-09-24 14:24 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-s390
Hi Dave,
here are some s390 related patches for net-next
shortlog:
Sebastian Ott(2)
qeth: cleanup channel path descriptor function
lcs: ensure proper ccw setup
Wei Yongjun(1)
qeth: fix possible memory leak in qeth_l3_add_[vipa|rxip]()
Peter Senna(2)
drivers/s390/net: removes unnecessary semicolon
ctcm: fix error return code
Thanks,
Frank
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch 0/5] s390: network patches for net-next
2012-09-24 14:24 frank.blaschka
@ 2012-09-24 19:47 ` David Miller
0 siblings, 0 replies; 9+ messages in thread
From: David Miller @ 2012-09-24 19:47 UTC (permalink / raw)
To: frank.blaschka; +Cc: netdev, linux-s390
From: frank.blaschka@de.ibm.com
Date: Mon, 24 Sep 2012 16:24:22 +0200
> here are some s390 related patches for net-next
>
> shortlog:
>
> Sebastian Ott(2)
> qeth: cleanup channel path descriptor function
> lcs: ensure proper ccw setup
>
> Wei Yongjun(1)
> qeth: fix possible memory leak in qeth_l3_add_[vipa|rxip]()
>
> Peter Senna(2)
> drivers/s390/net: removes unnecessary semicolon
> ctcm: fix error return code
All applied, thanks!
^ permalink raw reply [flat|nested] 9+ messages in thread
* [patch 0/5] s390: network patches for net-next
@ 2013-06-24 11:21 frank.blaschka
2013-06-24 11:21 ` [patch 1/5] netiucv: remove unused macro frank.blaschka
` (5 more replies)
0 siblings, 6 replies; 9+ messages in thread
From: frank.blaschka @ 2013-06-24 11:21 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-s390
Hi Dave,
here are some s390 related patches for net-next
shortlog:
Andy Shevchenko (1)
netiucv: remove unused macro
Stefan Raspl (2)
qeth: Increase default MTU for OSA devices
qeth: Fix crash on initial MTU size change
Ursula Braun (1)
qeth: change default standard blkt settings for OSA
Sebastian Ott (1)
qeth: use default napi weight
Thanks,
Frank
^ permalink raw reply [flat|nested] 9+ messages in thread
* [patch 1/5] netiucv: remove unused macro
2013-06-24 11:21 [patch 0/5] s390: network patches for net-next frank.blaschka
@ 2013-06-24 11:21 ` frank.blaschka
2013-06-24 11:21 ` [patch 2/5] qeth: Increase default MTU for OSA devices frank.blaschka
` (4 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: frank.blaschka @ 2013-06-24 11:21 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-s390, Andy Shevchenko, Ursula Braun
[-- Attachment #1: 600-netiucv-hex-dump.diff --]
[-- Type: text/plain, Size: 1781 bytes --]
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
If someone is interested to dump something they may consider to use
print_hex_dump() or print_hex_dump_bytes() kernel helpers.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
---
drivers/s390/net/netiucv.c | 20 --------------------
1 file changed, 20 deletions(-)
--- a/drivers/s390/net/netiucv.c
+++ b/drivers/s390/net/netiucv.c
@@ -130,26 +130,6 @@ static inline int iucv_dbf_passes(debug_
/**
* some more debug stuff
*/
-#define IUCV_HEXDUMP16(importance,header,ptr) \
-PRINT_##importance(header "%02x %02x %02x %02x %02x %02x %02x %02x " \
- "%02x %02x %02x %02x %02x %02x %02x %02x\n", \
- *(((char*)ptr)),*(((char*)ptr)+1),*(((char*)ptr)+2), \
- *(((char*)ptr)+3),*(((char*)ptr)+4),*(((char*)ptr)+5), \
- *(((char*)ptr)+6),*(((char*)ptr)+7),*(((char*)ptr)+8), \
- *(((char*)ptr)+9),*(((char*)ptr)+10),*(((char*)ptr)+11), \
- *(((char*)ptr)+12),*(((char*)ptr)+13), \
- *(((char*)ptr)+14),*(((char*)ptr)+15)); \
-PRINT_##importance(header "%02x %02x %02x %02x %02x %02x %02x %02x " \
- "%02x %02x %02x %02x %02x %02x %02x %02x\n", \
- *(((char*)ptr)+16),*(((char*)ptr)+17), \
- *(((char*)ptr)+18),*(((char*)ptr)+19), \
- *(((char*)ptr)+20),*(((char*)ptr)+21), \
- *(((char*)ptr)+22),*(((char*)ptr)+23), \
- *(((char*)ptr)+24),*(((char*)ptr)+25), \
- *(((char*)ptr)+26),*(((char*)ptr)+27), \
- *(((char*)ptr)+28),*(((char*)ptr)+29), \
- *(((char*)ptr)+30),*(((char*)ptr)+31));
-
#define PRINTK_HEADER " iucv: " /* for debugging */
/* dummy device to make sure netiucv_pm functions are called */
^ permalink raw reply [flat|nested] 9+ messages in thread
* [patch 2/5] qeth: Increase default MTU for OSA devices
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
2013-06-24 11:21 ` [patch 3/5] qeth: change default standard blkt settings for OSA frank.blaschka
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: frank.blaschka @ 2013-06-24 11:21 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-s390, Stefan Raspl
[-- 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;
}
^ permalink raw reply [flat|nested] 9+ messages in thread
* [patch 3/5] qeth: change default standard blkt settings for OSA
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 ` [patch 2/5] qeth: Increase default MTU for OSA devices frank.blaschka
@ 2013-06-24 11:21 ` frank.blaschka
2013-06-24 11:21 ` [patch 4/5] qeth: Fix crash on initial MTU size change frank.blaschka
` (2 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: frank.blaschka @ 2013-06-24 11:21 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-s390, Ursula Braun
[-- Attachment #1: 602-qeth-default-blkt.diff --]
[-- Type: text/plain, Size: 1701 bytes --]
From: Ursula Braun <ursula.braun@de.ibm.com>
blkt settings (or LAN idle settings) for an OSA Express card
determine when and how often an OSA Express card tells the
operating system about new incoming packets. The semantic of
these settings has changed starting with OSA Express3. Currently
the qeth standard settings apply to OSA Express2 and older
generations of OSA Express cards, while new generations of OSA
Express cards require extra coding of their reasonable default.
To cover future OSA Express generations the qeth default standard
blkt setting is now the desired setting for OSA generations
starting with OSA Express3, while the fixed set of older OSA
Express cards receives its blkt settings explicitly.
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Reviewed-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
---
drivers/s390/net/qeth_core_main.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -1729,14 +1729,14 @@ static void qeth_configure_blkt_default(
QETH_DBF_TEXT(SETUP, 2, "cfgblkt");
if (prcd[74] == 0xF0 && prcd[75] == 0xF0 &&
- (prcd[76] == 0xF5 || prcd[76] == 0xF6)) {
- card->info.blkt.time_total = 250;
- card->info.blkt.inter_packet = 5;
- card->info.blkt.inter_packet_jumbo = 15;
- } else {
+ prcd[76] >= 0xF1 && prcd[76] <= 0xF4) {
card->info.blkt.time_total = 0;
card->info.blkt.inter_packet = 0;
card->info.blkt.inter_packet_jumbo = 0;
+ } else {
+ card->info.blkt.time_total = 250;
+ card->info.blkt.inter_packet = 5;
+ card->info.blkt.inter_packet_jumbo = 15;
}
}
^ permalink raw reply [flat|nested] 9+ messages in thread
* [patch 4/5] qeth: Fix crash on initial MTU size change
2013-06-24 11:21 [patch 0/5] s390: network patches for net-next frank.blaschka
` (2 preceding siblings ...)
2013-06-24 11:21 ` [patch 3/5] qeth: change default standard blkt settings for OSA frank.blaschka
@ 2013-06-24 11:21 ` 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
5 siblings, 0 replies; 9+ messages in thread
From: frank.blaschka @ 2013-06-24 11:21 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-s390, Stefan Raspl
[-- Attachment #1: 603-qeth-initial-mtu-crash.diff --]
[-- Type: text/plain, Size: 1143 bytes --]
From: Stefan Raspl <raspl@linux.vnet.ibm.com>
When the initial MTU size is changed prior to any activity on the device
(e.g. by attaching a z/VM vNIC already configured in Linux to a guestLAN),
we call dev_kfree_skb_irq(NULL) which results in a kernel panic.
Adding a proper check for NULL pointers to address this issue.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Reviewed-by: Ursula Braun <braunu@de.ibm.com>
---
drivers/s390/net/qeth_core_main.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -1282,8 +1282,10 @@ static void qeth_free_qdio_buffers(struc
qeth_free_cq(card);
cancel_delayed_work_sync(&card->buffer_reclaim_work);
- for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j)
- dev_kfree_skb_any(card->qdio.in_q->bufs[j].rx_skb);
+ for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j) {
+ if (card->qdio.in_q->bufs[j].rx_skb)
+ dev_kfree_skb_any(card->qdio.in_q->bufs[j].rx_skb);
+ }
kfree(card->qdio.in_q);
card->qdio.in_q = NULL;
/* inbound buffer pool */
^ permalink raw reply [flat|nested] 9+ messages in thread
* [patch 5/5] qeth: use default napi weight
2013-06-24 11:21 [patch 0/5] s390: network patches for net-next frank.blaschka
` (3 preceding siblings ...)
2013-06-24 11:21 ` [patch 4/5] qeth: Fix crash on initial MTU size change frank.blaschka
@ 2013-06-24 11:21 ` frank.blaschka
2013-06-25 23:25 ` [patch 0/5] s390: network patches for net-next David Miller
5 siblings, 0 replies; 9+ messages in thread
From: frank.blaschka @ 2013-06-24 11:21 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-s390, Sebastian Ott
[-- Attachment #1: 604-qeth-default-napi-weight.diff --]
[-- Type: text/plain, Size: 757 bytes --]
From: Sebastian Ott <sebott@linux.vnet.ibm.com>
Since commit 82dc3c63c692b1e1d59378ecee948ac88e034aad
"net: introduce NAPI_POLL_WEIGHT" network drivers receive a warning
when they use napi weight higher than NAPI_POLL_WEIGHT. This patch
reduces QETH_NAPI_WEIGHT from 128 to 64 (NAPI_POLL_WEIGHT).
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
---
drivers/s390/net/qeth_core.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/s390/net/qeth_core.h
+++ b/drivers/s390/net/qeth_core.h
@@ -738,7 +738,7 @@ struct qeth_rx {
int qdio_err;
};
-#define QETH_NAPI_WEIGHT 128
+#define QETH_NAPI_WEIGHT NAPI_POLL_WEIGHT
struct qeth_card {
struct list_head list;
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch 0/5] s390: network patches for net-next
2013-06-24 11:21 [patch 0/5] s390: network patches for net-next frank.blaschka
` (4 preceding siblings ...)
2013-06-24 11:21 ` [patch 5/5] qeth: use default napi weight frank.blaschka
@ 2013-06-25 23:25 ` David Miller
5 siblings, 0 replies; 9+ messages in thread
From: David Miller @ 2013-06-25 23:25 UTC (permalink / raw)
To: frank.blaschka; +Cc: netdev, linux-s390
From: frank.blaschka@de.ibm.com
Date: Mon, 24 Jun 2013 13:21:47 +0200
> here are some s390 related patches for net-next
Series applied, thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-06-25 23:25 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [patch 2/5] qeth: Increase default MTU for OSA devices frank.blaschka
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
-- strict thread matches above, loose matches on Subject: below --
2012-09-24 14:24 frank.blaschka
2012-09-24 19:47 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).