From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753518AbdKFO1F (ORCPT ); Mon, 6 Nov 2017 09:27:05 -0500 Received: from mail.us.es ([193.147.175.20]:50732 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752632AbdKFO07 (ORCPT ); Mon, 6 Nov 2017 09:26:59 -0500 Date: Mon, 6 Nov 2017 15:26:47 +0100 X-SMTPAUTHUS: auth mail.us.es From: Pablo Neira Ayuso To: Julian Anastasov Cc: KUWAZAWA Takuya , Wensong Zhang , Simon Horman , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ipvs: Fix inappropriate output of procfs Message-ID: <20171106142647.GA8571@salvia> References: <20171015115406.GA11429@nuc02.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 15, 2017 at 05:11:28PM +0300, Julian Anastasov wrote: > On Sun, 15 Oct 2017, KUWAZAWA Takuya wrote: > > > Information about ipvs in different network namespace can be seen via procfs. > > > > How to reproduce: > > > > # ip netns add ns01 > > # ip netns add ns02 > > # ip netns exec ns01 ip a add dev lo 127.0.0.1/8 > > # ip netns exec ns02 ip a add dev lo 127.0.0.1/8 > > # ip netns exec ns01 ipvsadm -A -t 10.1.1.1:80 > > # ip netns exec ns02 ipvsadm -A -t 10.1.1.2:80 > > > > The ipvsadm displays information about its own network namespace only. > > > > # ip netns exec ns01 ipvsadm -Ln > > IP Virtual Server version 1.2.1 (size=4096) > > Prot LocalAddress:Port Scheduler Flags > > -> RemoteAddress:Port Forward Weight ActiveConn InActConn > > TCP 10.1.1.1:80 wlc > > > > # ip netns exec ns02 ipvsadm -Ln > > IP Virtual Server version 1.2.1 (size=4096) > > Prot LocalAddress:Port Scheduler Flags > > -> RemoteAddress:Port Forward Weight ActiveConn InActConn > > TCP 10.1.1.2:80 wlc > > > > But I can see information about other network namespace via procfs. > > > > # ip netns exec ns01 cat /proc/net/ip_vs > > IP Virtual Server version 1.2.1 (size=4096) > > Prot LocalAddress:Port Scheduler Flags > > -> RemoteAddress:Port Forward Weight ActiveConn InActConn > > TCP 0A010101:0050 wlc > > TCP 0A010102:0050 wlc > > > > # ip netns exec ns02 cat /proc/net/ip_vs > > IP Virtual Server version 1.2.1 (size=4096) > > Prot LocalAddress:Port Scheduler Flags > > -> RemoteAddress:Port Forward Weight ActiveConn InActConn > > TCP 0A010102:0050 wlc > > > > Signed-off-by: KUWAZAWA Takuya > > Looks good to me > > Acked-by: Julian Anastasov Applied, thanks.