Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93ad37d9 authored by Klaus D. Wacker's avatar Klaus D. Wacker Committed by Jeff Garzik
Browse files

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: default avatarKlaus D. Wacker <kdwacker@de.ibm.com>
Signed-off-by: default avatarFrank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 679dce39
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1793,6 +1793,7 @@ 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++;
	if (skb->protocol == htons(ETH_P_802_2))
		*((__u32 *)skb->cb) = ++card->pkt_seq;
	netif_rx(skb);
}