summaryrefslogtreecommitdiff
path: root/drivers/s390
diff options
context:
space:
mode:
authorKlaus D. Wacker <kdwacker@de.ibm.com>2008-04-24 10:15:18 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-04-29 01:56:27 -0400
commit93ad37d94d0b42e493d95b8a79181112c76ab459 (patch)
tree5c28c92d2f0c002e28dc69c4a8b5347f89ba7ced /drivers/s390
parent679dce39e3cdfcc641b2888ce04f1cd5ff0b3b92 (diff)
downloadlwn-93ad37d94d0b42e493d95b8a79181112c76ab459.tar.gz
lwn-93ad37d94d0b42e493d95b8a79181112c76ab459.zip
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 <kdwacker@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/net/lcs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c
index f51ed9972587..dd22f4b37037 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);
}