提交 07924709 编写于 作者: H Hans Schillstrom 提交者: Simon Horman

IPVS netns BUG, register sysctl for root ns

The newly created table was not used when register sysctl for a new namespace.
I.e. sysctl doesn't work for other than root namespace (init_net)
Signed-off-by: NHans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: NSimon Horman <horms@verge.net.au>
上级 4b3fd571
...@@ -3556,7 +3556,7 @@ int __net_init __ip_vs_control_init(struct net *net) ...@@ -3556,7 +3556,7 @@ int __net_init __ip_vs_control_init(struct net *net)
ipvs->sysctl_hdr = register_net_sysctl_table(net, net_vs_ctl_path, ipvs->sysctl_hdr = register_net_sysctl_table(net, net_vs_ctl_path,
vs_vars); tbl);
if (ipvs->sysctl_hdr == NULL) if (ipvs->sysctl_hdr == NULL)
goto err_reg; goto err_reg;
ip_vs_new_estimator(net, ipvs->tot_stats); ip_vs_new_estimator(net, ipvs->tot_stats);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册