Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202962
b: refs/heads/master
c: a95d8c8
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 16, 2010
1 parent 00c160b commit 79e2fb9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d27f9b35827ec91d71d3561c127a0a8135fb470d
refs/heads/master: a95d8c88bea0c93505e1d143d075f112be2b25e3
9 changes: 3 additions & 6 deletions trunk/net/ipv4/ip_fragment.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,8 @@ static int ip4_frag_match(struct inet_frag_queue *q, void *a)
}

/* Memory Tracking Functions. */
static __inline__ void frag_kfree_skb(struct netns_frags *nf,
struct sk_buff *skb, int *work)
static void frag_kfree_skb(struct netns_frags *nf, struct sk_buff *skb)
{
if (work)
*work -= skb->truesize;
atomic_sub(skb->truesize, &nf->mem);
kfree_skb(skb);
}
Expand Down Expand Up @@ -309,7 +306,7 @@ static int ip_frag_reinit(struct ipq *qp)
fp = qp->q.fragments;
do {
struct sk_buff *xp = fp->next;
frag_kfree_skb(qp->q.net, fp, NULL);
frag_kfree_skb(qp->q.net, fp);
fp = xp;
} while (fp);

Expand Down Expand Up @@ -446,7 +443,7 @@ static int ip_frag_queue(struct ipq *qp, struct sk_buff *skb)
qp->q.fragments = next;

qp->q.meat -= free_it->len;
frag_kfree_skb(qp->q.net, free_it, NULL);
frag_kfree_skb(qp->q.net, free_it);
}
}

Expand Down
7 changes: 2 additions & 5 deletions trunk/net/ipv6/reassembly.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,8 @@ int ip6_frag_match(struct inet_frag_queue *q, void *a)
EXPORT_SYMBOL(ip6_frag_match);

/* Memory Tracking Functions. */
static inline void frag_kfree_skb(struct netns_frags *nf,
struct sk_buff *skb, int *work)
static void frag_kfree_skb(struct netns_frags *nf, struct sk_buff *skb)
{
if (work)
*work -= skb->truesize;
atomic_sub(skb->truesize, &nf->mem);
kfree_skb(skb);
}
Expand Down Expand Up @@ -392,7 +389,7 @@ static int ip6_frag_queue(struct frag_queue *fq, struct sk_buff *skb,
fq->q.fragments = next;

fq->q.meat -= free_it->len;
frag_kfree_skb(fq->q.net, free_it, NULL);
frag_kfree_skb(fq->q.net, free_it);
}
}

Expand Down

0 comments on commit 79e2fb9

Please sign in to comment.