From: Klaus D. Wacker Date: Thu, 24 Apr 2008 08:15:18 +0000 (+0200) Subject: lcs: CCL-sequ. numbers required for protocol 802.2 only. X-Git-Tag: v2.6.26-rc1~104^2~32 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=93ad37d94d0b42e493d95b8a79181112c76ab459;p=linux-2.6-omap-h63xx.git lcs: CCL-sequ. numbers required for protocol 802.2 only. Sequence numbers in skbs (Receive path) are assigned only to 802.2 packets. Signed-off-by: Klaus D. Wacker Signed-off-by: Frank Blaschka Signed-off-by: Jeff Garzik --- diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index f51ed997258..dd22f4b3703 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c @@ -1793,7 +1793,8 @@ lcs_get_skb(struct lcs_card *card, char *skb_data, unsigned int skb_len) skb->protocol = card->lan_type_trans(skb, card->dev); card->stats.rx_bytes += skb_len; card->stats.rx_packets++; - *((__u32 *)skb->cb) = ++card->pkt_seq; + if (skb->protocol == htons(ETH_P_802_2)) + *((__u32 *)skb->cb) = ++card->pkt_seq; netif_rx(skb); }