net: usb: Set skb protocol based on RMNET Link Layer Protocol Mode
Embedded rmnet driver is setting skb protocol to ethernet link layer protocol, which causes the IP stack to drop the packets if it is set to raw IP link layer protocol mode. Hence set the SKB protocol based on the RMNET link layer protocol mode. Change-Id: Ife1243feec54a50c00ec833b6ed72f59bf883b94 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This commit is contained in:
@@ -234,7 +234,6 @@ void usbnet_skb_return (struct usbnet *dev, struct sk_buff *skb)
|
|||||||
if (!skb->protocol)
|
if (!skb->protocol)
|
||||||
skb->protocol = eth_type_trans(skb, dev->net);
|
skb->protocol = eth_type_trans(skb, dev->net);
|
||||||
|
|
||||||
skb->protocol = eth_type_trans (skb, dev->net);
|
|
||||||
dev->net->stats.rx_packets++;
|
dev->net->stats.rx_packets++;
|
||||||
dev->net->stats.rx_bytes += skb->len;
|
dev->net->stats.rx_bytes += skb->len;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user