nfnetlink: remove nfnetlink_alloc_skb
authorFlorian Westphal <fw@strlen.de>
Thu, 18 Feb 2016 14:03:27 +0000 (15:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 16:42:19 +0000 (11:42 -0500)
Following mmapped netlink removal this code can be simplified by
removing the alloc wrapper.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter/nfnetlink.h
net/netfilter/nfnetlink.c
net/netfilter/nfnetlink_log.c

index ba0d9789eb6e95684528ed6e388a13ccd6ee1e53..1d82dd5e9a08ada113978fc9752585d62dfcba98 100644 (file)
@@ -34,8 +34,6 @@ int nfnetlink_subsys_register(const struct nfnetlink_subsystem *n);
 int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n);
 
 int nfnetlink_has_listeners(struct net *net, unsigned int group);
-struct sk_buff *nfnetlink_alloc_skb(struct net *net, unsigned int size,
-                                   u32 dst_portid, gfp_t gfp_mask);
 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
                   unsigned int group, int echo, gfp_t flags);
 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error);
index a7ba23353dab938b4048095e50da9eb463dfc477..9a99f686d06f278d3b1e8cadb925ef60a50f25be 100644 (file)
@@ -127,13 +127,6 @@ int nfnetlink_has_listeners(struct net *net, unsigned int group)
 }
 EXPORT_SYMBOL_GPL(nfnetlink_has_listeners);
 
-struct sk_buff *nfnetlink_alloc_skb(struct net *net, unsigned int size,
-                                   u32 dst_portid, gfp_t gfp_mask)
-{
-       return netlink_alloc_skb(net->nfnl, size, dst_portid, gfp_mask);
-}
-EXPORT_SYMBOL_GPL(nfnetlink_alloc_skb);
-
 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
                   unsigned int group, int echo, gfp_t flags)
 {
index 8ca932057c13b32e39161de128edc81d21219ff6..11f81c8385fcf80daac88b5899bc4e2964f5b796 100644 (file)
@@ -330,14 +330,13 @@ nfulnl_alloc_skb(struct net *net, u32 peer_portid, unsigned int inst_size,
         * message.  WARNING: has to be <= 128k due to slab restrictions */
 
        n = max(inst_size, pkt_size);
-       skb = nfnetlink_alloc_skb(net, n, peer_portid, GFP_ATOMIC);
+       skb = alloc_skb(n, GFP_ATOMIC);
        if (!skb) {
                if (n > pkt_size) {
                        /* try to allocate only as much as we need for current
                         * packet */
 
-                       skb = nfnetlink_alloc_skb(net, pkt_size,
-                                                 peer_portid, GFP_ATOMIC);
+                       skb = alloc_skb(pkt_size, GFP_ATOMIC);
                }
        }
 
This page took 0.027371 seconds and 5 git commands to generate.