Netdev List
 help / color / mirror / Atom feed
* __kfree_skb eventually calls kfree_skb violating dropwatch assumption
@ 2011-10-13  2:25 Suresh, Charles
  0 siblings, 0 replies; 3+ messages in thread
From: Suresh, Charles @ 2011-10-13  2:25 UTC (permalink / raw)
  To: netdev@vger.kernel.org; +Cc: nhorman@redhat.com

kfree_skb can be called from __kfree_skb through the following call chain :

kfree_skb  <- skb_drop_list <- skb_drop_fraglist <- skb_release_data <-  skb_release_all <- __kfree_skb (on the 2.38.4 kernel).

This violates the assumption in the dropwatch tool that discarded packets go through the kfree_skb path and all others must go through the consume_skb path (thus resulting in the over-counting of discarded packets in dropwatch).

Neil Horman the author of dropwatch suggested that this could be fixed by skb_drop_list calling consume_skb instead of kfree_skb.

Charles

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-10-14 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <27F465BDABE6954AABB2A4E3599BDAC702AD1DC3A7@sausexmbp02.amd.com>
2011-10-13 11:09 ` __kfree_skb eventually calls kfree_skb violating dropwatch assumption Neil Horman
2011-10-14 14:54 ` Neil Horman
2011-10-13  2:25 Suresh, Charles

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox