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

Commit abc4e4fa authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

packet: dont drop packet but consume it



When we need to clone skb, we dont drop a packet.
Call consume_skb() to not confuse dropwatch.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ab185d7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1654,7 +1654,7 @@ static int packet_rcv(struct sk_buff *skb, struct net_device *dev,
			skb->data = skb_head;
			skb->len = skb_len;
		}
		kfree_skb(skb);
		consume_skb(skb);
		skb = nskb;
	}