summaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorPeter Oskolkov <posk@google.com>2018-08-02 23:34:38 +0000
committerDavid S. Miller <davem@davemloft.net>2018-08-05 17:16:46 -0700
commit385114dec8a49b5e5945e77ba7de6356106713f4 (patch)
tree997d369a85c5277bd7bbaf55f6c0b55756bd7f47 /include/linux/skbuff.h
parent7969e5c40dfd04799d4341f1b7cd266b6e47f227 (diff)
downloadtalos-obmc-linux-385114dec8a49b5e5945e77ba7de6356106713f4.tar.gz
talos-obmc-linux-385114dec8a49b5e5945e77ba7de6356106713f4.zip
net: modify skb_rbtree_purge to return the truesize of all purged skbs.
Tested: see the next patch is the series. Suggested-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Peter Oskolkov <posk@google.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index fd3cb1b247df..47848367c816 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -2585,7 +2585,7 @@ static inline void __skb_queue_purge(struct sk_buff_head *list)
kfree_skb(skb);
}
-void skb_rbtree_purge(struct rb_root *root);
+unsigned int skb_rbtree_purge(struct rb_root *root);
void *netdev_alloc_frag(unsigned int fragsz);
OpenPOWER on IntegriCloud