summaryrefslogtreecommitdiffstats
path: root/net/core/kmap_skb.h
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2012-04-05 11:35:15 +0200
committerDavid S. Miller <davem@davemloft.net>2012-04-05 05:36:43 -0400
commit51c56b004e2c9a46207bb8a116589c2f84b92e5d (patch)
treea11714f3749262d1ab084960ab441ff0a1379331 /net/core/kmap_skb.h
parent109d2446052a484c58f07f71f9457bf7b71017f8 (diff)
downloadlinux-stable-51c56b004e2c9a46207bb8a116589c2f84b92e5d.tar.gz
linux-stable-51c56b004e2c9a46207bb8a116589c2f84b92e5d.tar.bz2
linux-stable-51c56b004e2c9a46207bb8a116589c2f84b92e5d.zip
net: remove k{un}map_skb_frag()
Since commit 3e4d3af501 (mm: stack based kmap_atomic()) we dont have to disable BH anymore while mapping skb frags. We can remove kmap_skb_frag() / kunmap_skb_frag() helpers and use kmap_atomic() / kunmap_atomic() Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/kmap_skb.h')
-rw-r--r--net/core/kmap_skb.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/net/core/kmap_skb.h b/net/core/kmap_skb.h
deleted file mode 100644
index 52d0a4459041..000000000000
--- a/net/core/kmap_skb.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <linux/highmem.h>
-
-static inline void *kmap_skb_frag(const skb_frag_t *frag)
-{
-#ifdef CONFIG_HIGHMEM
- BUG_ON(in_irq());
-
- local_bh_disable();
-#endif
- return kmap_atomic(skb_frag_page(frag));
-}
-
-static inline void kunmap_skb_frag(void *vaddr)
-{
- kunmap_atomic(vaddr);
-#ifdef CONFIG_HIGHMEM
- local_bh_enable();
-#endif
-}