From: Frank Blaschka 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 --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html