Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159311
b: refs/heads/master
c: db71789
h: refs/heads/master
i:
  159309: 9a09769
  159307: a968f26
  159303: 5ec1896
  159295: 3a34d69
v: v3
  • Loading branch information
David S. Miller committed Aug 5, 2009
1 parent 9ace738 commit 1a0ca14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: f816700aa9ef1b1e2f984f638cb211e79dcab495
refs/heads/master: db71789c01ae7b641f83c5aa64e7df25122f4b28
7 changes: 6 additions & 1 deletion trunk/net/ipv6/xfrm6_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ static void xfrm6_policy_fini(void)
xfrm_policy_unregister_afinfo(&xfrm6_policy_afinfo);
}

#ifdef CONFIG_SYSCTL
static struct ctl_table xfrm6_policy_table[] = {
{
.ctl_name = CTL_UNNUMBERED,
Expand All @@ -319,6 +320,7 @@ static struct ctl_table xfrm6_policy_table[] = {
};

static struct ctl_table_header *sysctl_hdr;
#endif

int __init xfrm6_init(void)
{
Expand All @@ -345,9 +347,10 @@ int __init xfrm6_init(void)
*/
gc_thresh = FIB6_TABLE_HASHSZ * 8;
xfrm6_dst_ops.gc_thresh = (gc_thresh < 1024) ? 1024 : gc_thresh;

#ifdef CONFIG_SYSCTL
sysctl_hdr = register_net_sysctl_table(&init_net, net_ipv6_ctl_path,
xfrm6_policy_table);
#endif
out:
return ret;
out_policy:
Expand All @@ -357,8 +360,10 @@ int __init xfrm6_init(void)

void xfrm6_fini(void)
{
#ifdef CONFIG_SYSCTL
if (sysctl_hdr)
unregister_net_sysctl_table(sysctl_hdr);
#endif
//xfrm6_input_fini();
xfrm6_policy_fini();
xfrm6_state_fini();
Expand Down

0 comments on commit 1a0ca14

Please sign in to comment.