Network Drop Monitor: Fix skb_kill_datagram
Subsystems (2)
PATCH 1/1 Network Drop Monitor: Fix skb_kill_datagram
Commit ead2ceb0ec9f85cff19c43b5cdb2f8a054484431 ("Network Drop Monitor:
Adding kfree_skb_clean for non-drops and modifying end-of-line points for skbs") established new conventions for identifying dropped packets.
Align skb_kill_datagram() with these conventions so that packets that get dropped just before the copy to userspace are properly tracked.
--- net/core/datagram.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
net/core/datagram.c +3 -1
@@ -260,7 +260,9 @@ int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags)spin_unlock_bh (&sk->sk_receive_queue.lock); } -skb_free_datagram (sk, skb); +kfree_skb (skb); +sk_mem_reclaim_partial (sk); +return err; }
Signature · 1 line
1.5.4.3
David Miller
maintainerFrom: John Dykstra <[email protected]>
Date: Thu, 07 May 2009 21:25:54 +0000
Quoted 8 lines
Commit
ead2ceb0ec9f85cff19c43b5cdb2f8a054484431("Network Drop Monitor:
Addingkfree_skb_cleanfor non-drops and modifying end-of-line points for skbs") established new conventions for identifying dropped packets.Align
skb_kill_datagram()with these conventions so that packets that get dropped just before the copy to userspace are properly tracked.Signed-off-by John Dykstra <[email protected]>
Neil, ACK?
Neil Horman
Acked-byQuoted 7 lines · David Miller
From: John Dykstra <[email protected]>
Date: Thu, 07 May 2009 21:25:54 +0000Quoted 4 lines
Commit
ead2ceb0ec9f85cff19c43b5cdb2f8a054484431("Network Drop Monitor:
Addingkfree_skb_cleanfor non-drops and modifying end-of-line points for skbs") established new conventions for identifying dropped packets.
Quoted 7 lines
Quoted 4 lines
Align
skb_kill_datagram()with these conventions so that packets that get dropped just before the copy to userspace are properly tracked.Signed-off-by John Dykstra <[email protected]>Neil, ACK?
Yes, I think it looks good, thank you Jonh, Dave!
From: Neil Horman <[email protected]>
Date: Thu, 7 May 2009 20:42:00 -0400
Quoted 11 lines · David Miller
Quoted 10 lines
From: John Dykstra <[email protected]>
Date: Thu, 07 May 2009 21:25:54 +0000Quoted 7 lines
Commit
ead2ceb0ec9f85cff19c43b5cdb2f8a054484431("Network Drop Monitor:
Addingkfree_skb_cleanfor non-drops and modifying end-of-line points for skbs") established new conventions for identifying dropped packets.Align
skb_kill_datagram()with these conventions so that packets that get dropped just before the copy to userspace are properly tracked.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by John Dykstra <[email protected]>Neil, ACK?
Yes, I think it looks good, thank you Jonh, Dave!
Acked-by Neil Horman <[email protected]>
Applied, thanks everyone.