From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Dichtel Subject: Re: [PATCH v3] kni: create KNI interface in current network namespace Date: Wed, 03 Dec 2014 11:51:29 +0100 Message-ID: <547EEB31.4070900@6wind.com> References: <547D809E.8020607@6wind.com> <1417570646-7724-1-git-send-email-takayuki@midokura.com> Reply-To: nicolas.dichtel-pdR9zngts4EAvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable To: Takayuki Usui , dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1417570646-7724-1-git-send-email-takayuki-SN072n759w5Wk0Htik3J/w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Le 03/12/2014 02:37, Takayuki Usui a =C3=A9crit : > With this patch, KNI interface (e.g. vEth0) is created in the > network namespace where the DPDK application is running. > Otherwise, all interfaces are created in the default namespace > in the host. > > put_net() is required, since get_net_ns_by_pid() increments > the reference counter of the network namespace with get_net(). > > Signed-off-by: Takayuki Usui Signed-off-by: Nicolas Dichtel