Commit a95d8c88 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

ipfrag : frag_kfree_skb() cleanup

Third param (work) is unused, remove it.

Remove __inline__ and inline qualifiers.
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d27f9b35
...@@ -124,11 +124,8 @@ static int ip4_frag_match(struct inet_frag_queue *q, void *a) ...@@ -124,11 +124,8 @@ static int ip4_frag_match(struct inet_frag_queue *q, void *a)
} }
/* Memory Tracking Functions. */ /* Memory Tracking Functions. */
static __inline__ void frag_kfree_skb(struct netns_frags *nf, static void frag_kfree_skb(struct netns_frags *nf, struct sk_buff *skb)
struct sk_buff *skb, int *work)
{ {
if (work)
*work -= skb->truesize;
atomic_sub(skb->truesize, &nf->mem); atomic_sub(skb->truesize, &nf->mem);
kfree_skb(skb); kfree_skb(skb);
} }
...@@ -309,7 +306,7 @@ static int ip_frag_reinit(struct ipq *qp) ...@@ -309,7 +306,7 @@ static int ip_frag_reinit(struct ipq *qp)
fp = qp->q.fragments; fp = qp->q.fragments;
do { do {
struct sk_buff *xp = fp->next; struct sk_buff *xp = fp->next;
frag_kfree_skb(qp->q.net, fp, NULL); frag_kfree_skb(qp->q.net, fp);
fp = xp; fp = xp;
} while (fp); } while (fp);
...@@ -446,7 +443,7 @@ static int ip_frag_queue(struct ipq *qp, struct sk_buff *skb) ...@@ -446,7 +443,7 @@ static int ip_frag_queue(struct ipq *qp, struct sk_buff *skb)
qp->q.fragments = next; qp->q.fragments = next;
qp->q.meat -= free_it->len; qp->q.meat -= free_it->len;
frag_kfree_skb(qp->q.net, free_it, NULL); frag_kfree_skb(qp->q.net, free_it);
} }
} }
......
...@@ -150,11 +150,8 @@ int ip6_frag_match(struct inet_frag_queue *q, void *a) ...@@ -150,11 +150,8 @@ int ip6_frag_match(struct inet_frag_queue *q, void *a)
EXPORT_SYMBOL(ip6_frag_match); EXPORT_SYMBOL(ip6_frag_match);
/* Memory Tracking Functions. */ /* Memory Tracking Functions. */
static inline void frag_kfree_skb(struct netns_frags *nf, static void frag_kfree_skb(struct netns_frags *nf, struct sk_buff *skb)
struct sk_buff *skb, int *work)
{ {
if (work)
*work -= skb->truesize;
atomic_sub(skb->truesize, &nf->mem); atomic_sub(skb->truesize, &nf->mem);
kfree_skb(skb); kfree_skb(skb);
} }
...@@ -392,7 +389,7 @@ static int ip6_frag_queue(struct frag_queue *fq, struct sk_buff *skb, ...@@ -392,7 +389,7 @@ static int ip6_frag_queue(struct frag_queue *fq, struct sk_buff *skb,
fq->q.fragments = next; fq->q.fragments = next;
fq->q.meat -= free_it->len; fq->q.meat -= free_it->len;
frag_kfree_skb(fq->q.net, free_it, NULL); frag_kfree_skb(fq->q.net, free_it);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment