Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328004
b: refs/heads/master
c: d4915c0
h: refs/heads/master
v: v3
  • Loading branch information
Amerigo Wang authored and David S. Miller committed Sep 19, 2012
1 parent dfa718a commit ee9bd8a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 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: b836c99fd6c9dfe52a69fa0ba36ec918f80ce02a
refs/heads/master: d4915c087f7c2457c580efc16fe0bfa1a576274d
13 changes: 11 additions & 2 deletions trunk/include/net/ipv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,17 @@ struct ipv6_txoptions *ipv6_fixup_options(struct ipv6_txoptions *opt_space,

extern bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb);

int ip6_frag_nqueues(struct net *net);
int ip6_frag_mem(struct net *net);
#if IS_ENABLED(CONFIG_IPV6)
static inline int ip6_frag_nqueues(struct net *net)
{
return net->ipv6.frags.nqueues;
}

static inline int ip6_frag_mem(struct net *net)
{
return atomic_read(&net->ipv6.frags.mem);
}
#endif

#define IPV6_FRAG_HIGH_THRESH (256 * 1024) /* 262144 */
#define IPV6_FRAG_LOW_THRESH (192 * 1024) /* 196608 */
Expand Down
10 changes: 0 additions & 10 deletions trunk/net/ipv6/reassembly.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,6 @@ struct ip6frag_skb_cb

static struct inet_frags ip6_frags;

int ip6_frag_nqueues(struct net *net)
{
return net->ipv6.frags.nqueues;
}

int ip6_frag_mem(struct net *net)
{
return atomic_read(&net->ipv6.frags.mem);
}

static int ip6_frag_reasm(struct frag_queue *fq, struct sk_buff *prev,
struct net_device *dev);

Expand Down

0 comments on commit ee9bd8a

Please sign in to comment.