mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-19 02:47:06 +07:00
net: 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>
This commit is contained in:
parent
7604adc2ff
commit
85bb2a60fa
@ -1274,7 +1274,7 @@ int ___pskb_trim(struct sk_buff *skb, unsigned int len)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
nfrag->next = frag->next;
|
nfrag->next = frag->next;
|
||||||
kfree_skb(frag);
|
consume_skb(frag);
|
||||||
frag = nfrag;
|
frag = nfrag;
|
||||||
*fragp = frag;
|
*fragp = frag;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user