mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
ipv4: dont drop packet in defrag but consume it
When defragmentation is finalized, we clone a packet and kfree_skb() it. Call consume_skb() to not confuse dropwatch, since its not a drop. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
daa8654828
commit
cbf8f7bb20
@ -569,7 +569,7 @@ static int ip_frag_reasm(struct ipq *qp, struct sk_buff *prev,
|
|||||||
skb_morph(head, qp->q.fragments);
|
skb_morph(head, qp->q.fragments);
|
||||||
head->next = qp->q.fragments->next;
|
head->next = qp->q.fragments->next;
|
||||||
|
|
||||||
kfree_skb(qp->q.fragments);
|
consume_skb(qp->q.fragments);
|
||||||
qp->q.fragments = head;
|
qp->q.fragments = head;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user