netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 0/1] s390: qeth patch for net-next
@ 2010-10-01 12:51 frank.blaschka
  0 siblings, 0 replies; 4+ messages in thread
From: frank.blaschka @ 2010-10-01 12:51 UTC (permalink / raw)
  To: davem; +Cc: netdev, linux-s390

Hi Dave,

here is one more qeth patch for net-next.

shortlog:
Ursula Braun (1)
qeth: tagging with VLAN-ID 0

Thanks,
        Frank

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [patch 0/1] s390: qeth patch for net-next
@ 2011-03-14 13:20 frank.blaschka
  2011-03-14 13:20 ` [patch 1/1] [PATCH] qeth: change some configurations defaults frank.blaschka
  0 siblings, 1 reply; 4+ messages in thread
From: frank.blaschka @ 2011-03-14 13:20 UTC (permalink / raw)
  To: davem; +Cc: netdev, linux-s390

Hi Dave,

here is another qeth patch for net-next.

shortlog:
Frank Blaschka (1)
qeth: change some configurations defaults

Thanks,
        Frank


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [patch 1/1] [PATCH] qeth: change some configurations defaults
  2011-03-14 13:20 [patch 0/1] s390: qeth patch for net-next frank.blaschka
@ 2011-03-14 13:20 ` frank.blaschka
  2011-03-14 22:40   ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: frank.blaschka @ 2011-03-14 13:20 UTC (permalink / raw)
  To: davem; +Cc: netdev, linux-s390

[-- Attachment #1: 603-qeth-defaults.diff --]
[-- Type: text/plain, Size: 2524 bytes --]

From: Frank Blaschka <frank.blaschka@de.ibm.com>

This patch turns on RX checksum and GRO by default. To improve
receiving performance and reduce congestion in case of network
bursts we also increase the default number of inbound buffers.

Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
---


 drivers/s390/net/qeth_core.h      |    3 ++-
 drivers/s390/net/qeth_core_main.c |    5 ++++-
 drivers/s390/net/qeth_l3_main.c   |    5 +++++
 3 files changed, 11 insertions(+), 2 deletions(-)
--- a/drivers/s390/net/qeth_core.h
+++ b/drivers/s390/net/qeth_core.h
@@ -225,7 +225,8 @@ static inline int qeth_is_ipa_enabled(st
 /*****************************************************************************/
 #define QETH_MAX_QUEUES 4
 #define QETH_IN_BUF_SIZE_DEFAULT 65536
-#define QETH_IN_BUF_COUNT_DEFAULT 16
+#define QETH_IN_BUF_COUNT_DEFAULT 64
+#define QETH_IN_BUF_COUNT_HSDEFAULT 128
 #define QETH_IN_BUF_COUNT_MIN 8
 #define QETH_IN_BUF_COUNT_MAX 128
 #define QETH_MAX_BUFFER_ELEMENTS(card) ((card)->qdio.in_buf_size >> 12)
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -1026,7 +1026,10 @@ static void qeth_init_qdio_info(struct q
 	atomic_set(&card->qdio.state, QETH_QDIO_UNINITIALIZED);
 	/* inbound */
 	card->qdio.in_buf_size = QETH_IN_BUF_SIZE_DEFAULT;
-	card->qdio.init_pool.buf_count = QETH_IN_BUF_COUNT_DEFAULT;
+	if (card->info.type == QETH_CARD_TYPE_IQD)
+		card->qdio.init_pool.buf_count = QETH_IN_BUF_COUNT_HSDEFAULT;
+	else
+		card->qdio.init_pool.buf_count = QETH_IN_BUF_COUNT_DEFAULT;
 	card->qdio.in_buf_pool.buf_count = card->qdio.init_pool.buf_count;
 	INIT_LIST_HEAD(&card->qdio.in_buf_pool.entry_list);
 	INIT_LIST_HEAD(&card->qdio.init_pool.entry_list);
--- a/drivers/s390/net/qeth_l3_main.c
+++ b/drivers/s390/net/qeth_l3_main.c
@@ -3392,6 +3392,8 @@ static int qeth_l3_setup_netdev(struct q
 			if (!(card->info.unique_id & UNIQUE_ID_NOT_BY_CARD))
 				card->dev->dev_id = card->info.unique_id &
 							 0xffff;
+			if (!card->info.guestlan)
+				card->dev->features |= NETIF_F_GRO;
 		}
 	} else if (card->info.type == QETH_CARD_TYPE_IQD) {
 		card->dev = alloc_netdev(0, "hsi%d", ether_setup);
@@ -3430,6 +3432,9 @@ static int qeth_l3_probe_device(struct c
 	card->discipline.output_handler = (qdio_handler_t *)
 		qeth_qdio_output_handler;
 	card->discipline.recover = qeth_l3_recover;
+	if ((card->info.type == QETH_CARD_TYPE_OSD) ||
+	    (card->info.type == QETH_CARD_TYPE_OSX))
+		card->options.checksum_type = HW_CHECKSUMMING;
 	return 0;
 }
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch 1/1] [PATCH] qeth: change some configurations defaults
  2011-03-14 13:20 ` [patch 1/1] [PATCH] qeth: change some configurations defaults frank.blaschka
@ 2011-03-14 22:40   ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-03-14 22:40 UTC (permalink / raw)
  To: frank.blaschka; +Cc: netdev, linux-s390

From: frank.blaschka@de.ibm.com
Date: Mon, 14 Mar 2011 14:20:54 +0100

> This patch turns on RX checksum and GRO by default. To improve
> receiving performance and reduce congestion in case of network
> bursts we also increase the default number of inbound buffers.
> 
> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>

Applied, thanks Frank.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-14 22:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 13:20 [patch 0/1] s390: qeth patch for net-next frank.blaschka
2011-03-14 13:20 ` [patch 1/1] [PATCH] qeth: change some configurations defaults frank.blaschka
2011-03-14 22:40   ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2010-10-01 12:51 [patch 0/1] s390: qeth patch for net-next frank.blaschka

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).