Received: by 10.223.164.202 with SMTP id h10csp312637wrb; Mon, 6 Nov 2017 07:03:57 -0800 (PST) X-Google-Smtp-Source: ABhQp+RpVbonLE+NFwKvQRDNpgU382KXiVNSvxb4BcVSNBzS/OM2WnBVBj4blQsNr8Iqdyl7py56 X-Received: by 10.101.86.201 with SMTP id w9mr15510816pgs.191.1509980637419; Mon, 06 Nov 2017 07:03:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509980637; cv=none; d=google.com; s=arc-20160816; b=TgLpIDwYKMWEU2rNrkw+XGaTn8ibZqL1x0qulxtGUTzCoU6/K2oJ6mnaOwjAhyFs7X Q+5UVBU8GXfujRFNM3Mpd+lJGUyhD/V4I0t5BHCQZCWrL3xikUqxR7eemYbEUlBEZ+KP /6jj67Q0ukZHWyCwuzxglMvDLl4q5sCe0vlZJiq6pqInRU57+LX2atRDk9UAvjFHYBSJ J1JQLrBrc6tPbeb0DynZl2Y/zV7jzmUOx4hUzMcQpoI5zmVjk2Ve4f0WpiphOWfRAAlS JtQy4UkH3kWFAHigDICbfLn/7bziNso4e3yNOiRrIET6D79GZeps64Tf/MTMK0JKu42K d5Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=vONqZhBSt95k2x2dN7ahdB9ctobsOJWdNMDBFoY0gvg=; b=QNxkB/sdIv0jDlqk3obdF15RBFoskJr+Kuz8a3tn+Q2FMhylsBohzuYdW5HjnTsWEF 9zYIgEkEz/tE5WzNXvYypOdkS7efyve0zgf9Q4A5ALXBEU6XfEbnoIiYfgFCPTQdX6qZ 8OZx4Hb0uD9XJ0Peb8XGaWtv/cE/FqPb5cFne34Ca8crIixYg31yqC8UgYIFzgvLx0JH OFUthBoerI+8Ta4jfP4di2XlU2YnP+nd4i/pihmjL+4hzkf2OorS3KGC7ZmrlxH98PHW eKsS44vg2XhWvm8K/LMCwipAtuRonWyHgy/Dwrn/hKhkaINMKK9gmkLCFw6c8tuVUv/i xl8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b91si10080581plb.819.2017.11.06.07.03.43; Mon, 06 Nov 2017 07:03:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753509AbdKFO1F (ORCPT + 97 others); 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 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id E75641B8411 for ; Mon, 6 Nov 2017 15:26:57 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id D1EE0DA39C for ; Mon, 6 Nov 2017 15:26:57 +0100 (CET) Received: by antivirus1-rhel7.int (Postfix, from userid 99) id C57E5DA396; Mon, 6 Nov 2017 15:26:57 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on antivirus1-rhel7.int X-Spam-Level: X-Spam-Status: No, score=-108.2 required=7.5 tests=ALL_TRUSTED,BAYES_50, HEADER_FROM_DIFFERENT_DOMAINS,SMTPAUTH_US2,USER_IN_WHITELIST autolearn=disabled version=3.4.1 Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 8734BDA391; Mon, 6 Nov 2017 15:26:55 +0100 (CET) Received: from 192.168.1.97 (192.168.1.97) by antivirus1-rhel7.int (F-Secure/fsigk_smtp/550/antivirus1-rhel7.int); Mon, 06 Nov 2017 15:26:55 +0100 (CET) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/antivirus1-rhel7.int) Received: from us.es (unknown [27.1.3.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 1984lsi) by entrada.int (Postfix) with ESMTPSA id 16E72403DF98; Mon, 6 Nov 2017 15:26:53 +0100 (CET) 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) X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk 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. From 1581333496726177037@xxx Sun Oct 15 14:19:01 +0000 2017 X-GM-THRID: 1581324432858368820 X-Gmail-Labels: Inbox,Category Forums