mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-30 11:04:25 +00:00
inet: kill unused skb_free op
The only user was removed in commit
029f7f3b87
("netfilter: ipv6: nf_defrag: avoid/free clone operations").
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2fbf575867
commit
a72a5e2d34
5 changed files with 1 additions and 13 deletions
|
@ -99,7 +99,6 @@ struct inet_frags {
|
||||||
void (*constructor)(struct inet_frag_queue *q,
|
void (*constructor)(struct inet_frag_queue *q,
|
||||||
const void *arg);
|
const void *arg);
|
||||||
void (*destructor)(struct inet_frag_queue *);
|
void (*destructor)(struct inet_frag_queue *);
|
||||||
void (*skb_free)(struct sk_buff *);
|
|
||||||
void (*frag_expire)(unsigned long data);
|
void (*frag_expire)(unsigned long data);
|
||||||
struct kmem_cache *frags_cachep;
|
struct kmem_cache *frags_cachep;
|
||||||
const char *frags_cache_name;
|
const char *frags_cache_name;
|
||||||
|
|
|
@ -624,7 +624,6 @@ int __init lowpan_net_frag_init(void)
|
||||||
lowpan_frags.hashfn = lowpan_hashfn;
|
lowpan_frags.hashfn = lowpan_hashfn;
|
||||||
lowpan_frags.constructor = lowpan_frag_init;
|
lowpan_frags.constructor = lowpan_frag_init;
|
||||||
lowpan_frags.destructor = NULL;
|
lowpan_frags.destructor = NULL;
|
||||||
lowpan_frags.skb_free = NULL;
|
|
||||||
lowpan_frags.qsize = sizeof(struct frag_queue);
|
lowpan_frags.qsize = sizeof(struct frag_queue);
|
||||||
lowpan_frags.match = lowpan_frag_match;
|
lowpan_frags.match = lowpan_frag_match;
|
||||||
lowpan_frags.frag_expire = lowpan_frag_expire;
|
lowpan_frags.frag_expire = lowpan_frag_expire;
|
||||||
|
|
|
@ -285,14 +285,6 @@ void inet_frag_kill(struct inet_frag_queue *fq, struct inet_frags *f)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(inet_frag_kill);
|
EXPORT_SYMBOL(inet_frag_kill);
|
||||||
|
|
||||||
static inline void frag_kfree_skb(struct netns_frags *nf, struct inet_frags *f,
|
|
||||||
struct sk_buff *skb)
|
|
||||||
{
|
|
||||||
if (f->skb_free)
|
|
||||||
f->skb_free(skb);
|
|
||||||
kfree_skb(skb);
|
|
||||||
}
|
|
||||||
|
|
||||||
void inet_frag_destroy(struct inet_frag_queue *q, struct inet_frags *f)
|
void inet_frag_destroy(struct inet_frag_queue *q, struct inet_frags *f)
|
||||||
{
|
{
|
||||||
struct sk_buff *fp;
|
struct sk_buff *fp;
|
||||||
|
@ -309,7 +301,7 @@ void inet_frag_destroy(struct inet_frag_queue *q, struct inet_frags *f)
|
||||||
struct sk_buff *xp = fp->next;
|
struct sk_buff *xp = fp->next;
|
||||||
|
|
||||||
sum_truesize += fp->truesize;
|
sum_truesize += fp->truesize;
|
||||||
frag_kfree_skb(nf, f, fp);
|
kfree_skb(fp);
|
||||||
fp = xp;
|
fp = xp;
|
||||||
}
|
}
|
||||||
sum = sum_truesize + f->qsize;
|
sum = sum_truesize + f->qsize;
|
||||||
|
|
|
@ -891,7 +891,6 @@ void __init ipfrag_init(void)
|
||||||
ip4_frags.hashfn = ip4_hashfn;
|
ip4_frags.hashfn = ip4_hashfn;
|
||||||
ip4_frags.constructor = ip4_frag_init;
|
ip4_frags.constructor = ip4_frag_init;
|
||||||
ip4_frags.destructor = ip4_frag_free;
|
ip4_frags.destructor = ip4_frag_free;
|
||||||
ip4_frags.skb_free = NULL;
|
|
||||||
ip4_frags.qsize = sizeof(struct ipq);
|
ip4_frags.qsize = sizeof(struct ipq);
|
||||||
ip4_frags.match = ip4_frag_match;
|
ip4_frags.match = ip4_frag_match;
|
||||||
ip4_frags.frag_expire = ip_expire;
|
ip4_frags.frag_expire = ip_expire;
|
||||||
|
|
|
@ -755,7 +755,6 @@ int __init ipv6_frag_init(void)
|
||||||
ip6_frags.hashfn = ip6_hashfn;
|
ip6_frags.hashfn = ip6_hashfn;
|
||||||
ip6_frags.constructor = ip6_frag_init;
|
ip6_frags.constructor = ip6_frag_init;
|
||||||
ip6_frags.destructor = NULL;
|
ip6_frags.destructor = NULL;
|
||||||
ip6_frags.skb_free = NULL;
|
|
||||||
ip6_frags.qsize = sizeof(struct frag_queue);
|
ip6_frags.qsize = sizeof(struct frag_queue);
|
||||||
ip6_frags.match = ip6_frag_match;
|
ip6_frags.match = ip6_frag_match;
|
||||||
ip6_frags.frag_expire = ip6_frag_expire;
|
ip6_frags.frag_expire = ip6_frag_expire;
|
||||||
|
|
Loading…
Add table
Reference in a new issue