[<prev] [next>] [<thread-prev] [thread-next>] [month] [year] [list]
Date: Tue, 01 Apr 2008 10:26:59 +0200
From: frank.blaschka@...ibm.com
To: jgarzik@...ox.com
Subject: [patch 7/8] qeth: core code should alloc headroom for LLC protocol
From: Frank Blaschka <frank.blaschka@...ibm.com>
Allocate headroom for TR_HLEN but using only ETH_HLEN causes rx
performance degradation. Allocate ETH_HLEN for ethernet and
TR_HLEN for token ring (layer 3 mode).
Signed-off-by: Frank Blaschka <frank.blaschka@...ibm.com>
---
drivers/s390/net/qeth_core_main.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Index: git_davem-2.6.26/drivers/s390/net/qeth_core_main.c
===================================================================
--- git_davem-2.6.26.orig/drivers/s390/net/qeth_core_main.c 2008-03-31 13:21:07.000000000 +0200
+++ git_davem-2.6.26/drivers/s390/net/qeth_core_main.c 2008-03-31 13:21:36.000000000 +0200
@@ -4002,7 +4002,11 @@
}
} else {
skb_len = (*hdr)->hdr.l3.length;
- headroom = max((int)ETH_HLEN, (int)TR_HLEN);
+ if ((card->info.link_type == QETH_LINK_TYPE_LANE_TR) ||
+ (card->info.link_type == QETH_LINK_TYPE_HSTR))
+ headroom = TR_HLEN;
+ else
+ headroom = ETH_HLEN;
}
if (!skb_len)
--
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hosted by DataForce ISP -
Powered by Openwall GNU/*/Linux