Skip to content

Commit

Permalink
qeth: core code should alloc headroom for LLC protocol
Browse files Browse the repository at this point in the history
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@de.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Frank Blaschka authored and Jeff Garzik committed Apr 17, 2008
1 parent d11ba0c commit b403e68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/s390/net/qeth_core_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4002,7 +4002,11 @@ struct sk_buff *qeth_core_get_next_skb(struct qeth_card *card,
}
} 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)
Expand Down

0 comments on commit b403e68

Please sign in to comment.