summaryrefslogtreecommitdiffstats
path: root/include/net/if_inet6.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2013-12-05 04:45:08 -0800
committerDavid S. Miller <davem@davemloft.net>2013-12-06 15:24:02 -0500
commite6247027e5173c00efb2084d688d06ff835bc3b0 (patch)
tree44c1fc4da5358f778fc82a1056ef9a2a6e7eea0e /include/net/if_inet6.h
parentf96eb74c84ebb09a03031f7f1e51789a928f9de0 (diff)
downloadlinux-e6247027e5173c00efb2084d688d06ff835bc3b0.tar.gz
linux-e6247027e5173c00efb2084d688d06ff835bc3b0.tar.bz2
linux-e6247027e5173c00efb2084d688d06ff835bc3b0.zip
net: introduce dev_consume_skb_any()
Some network drivers use dev_kfree_skb_any() and dev_kfree_skb_irq() helpers to free skbs, both for dropped packets and TX completed ones. We need to separate the two causes to get better diagnostics given by dropwatch or "perf record -e skb:kfree_skb" This patch provides two new helpers, dev_consume_skb_any() and dev_consume_skb_irq() to be used for consumed skbs. __dev_kfree_skb_irq() is slightly optimized to remove one atomic_dec_and_test() in fast path, and use this_cpu_{r|w} accessors. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/if_inet6.h')
0 files changed, 0 insertions, 0 deletions