提交 85bb2a60 编写于 作者: E Eric Dumazet 提交者: David S. Miller

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: NEric Dumazet <edumazet@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7604adc2
...@@ -1274,7 +1274,7 @@ int ___pskb_trim(struct sk_buff *skb, unsigned int len) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册