diff options
author | 2013-12-05 04:45:08 -0800 | |
---|---|---|
committer | 2013-12-06 15:24:02 -0500 | |
commit | e6247027e5173c00efb2084d688d06ff835bc3b0 (patch) | |
tree | 44c1fc4da5358f778fc82a1056ef9a2a6e7eea0e /net/unix/af_unix.c | |
parent | tun: remove unused parameter in tun_do_read() (diff) | |
download | wireguard-linux-e6247027e5173c00efb2084d688d06ff835bc3b0.tar.xz wireguard-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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions