Explorar el Código

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: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Eric Dumazet hace 13 años
padre
commit
abc4e4fa29
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      net/packet/af_packet.c

+ 1 - 1
net/packet/af_packet.c

@@ -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;
 	}