]> err.no Git - linux-2.6/commitdiff
lcs: CCL-sequ. numbers required for protocol 802.2 only.
authorKlaus D. Wacker <kdwacker@de.ibm.com>
Thu, 24 Apr 2008 08:15:18 +0000 (10:15 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 29 Apr 2008 05:56:27 +0000 (01:56 -0400)
Sequence numbers in skbs (Receive path) are assigned only to
802.2 packets.

Signed-off-by: Klaus D. Wacker <kdwacker@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/s390/net/lcs.c

index f51ed997258793b71ea49db3301270eac70f726b..dd22f4b37037ebaa25e25c49bda17de8670dddd6 100644 (file)
@@ -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);
 }