From patchwork Mon Jan 24 14:14:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Schillstrom X-Patchwork-Id: 80165 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id CDBC9B710D for ; Tue, 25 Jan 2011 01:14:54 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752252Ab1AXOOp (ORCPT ); Mon, 24 Jan 2011 09:14:45 -0500 Received: from mailgw10.se.ericsson.net ([193.180.251.61]:42934 "EHLO mailgw10.se.ericsson.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751346Ab1AXOOo (ORCPT ); Mon, 24 Jan 2011 09:14:44 -0500 X-AuditID: c1b4fb3d-b7b89ae0000036a3-fb-4d3d895274ba Received: from esessmw0184.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw10.se.ericsson.net (Symantec Mail Security) with SMTP id 86.48.13987.2598D3D4; Mon, 24 Jan 2011 15:14:42 +0100 (CET) Received: from seassled11.rnd.as.sw.ericsson.se (153.88.115.8) by esessmw0184.eemea.ericsson.se (153.88.115.82) with Microsoft SMTP Server id 8.2.234.1; Mon, 24 Jan 2011 15:14:41 +0100 Received: by seassled11.rnd.as.sw.ericsson.se (Postfix, from userid 88893) id 96ADB406397; Mon, 24 Jan 2011 15:14:41 +0100 (CET) From: Hans Schillstrom To: , , , , , CC: , Hans Schillstrom Subject: [PATCH 1/1] IPVS netns BUG, register sysctl for root ns Date: Mon, 24 Jan 2011 15:14:41 +0100 Message-ID: <1295878481-13623-1-git-send-email-hans.schillstrom@ericsson.com> X-Mailer: git-send-email 1.6.0.2 MIME-Version: 1.0 X-Brightmail-Tracker: AAAAAA== Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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: Hans Schillstrom --- net/netfilter/ipvs/ip_vs_ctl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index 68b8033..98df59a 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c @@ -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, - vs_vars); + tbl); if (ipvs->sysctl_hdr == NULL) goto err_reg; ip_vs_new_estimator(net, ipvs->tot_stats);