From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by dpdk.org (Postfix) with ESMTP id A4AA57F58 for ; Wed, 3 Dec 2014 11:51:31 +0100 (CET) Received: by mail-wi0-f171.google.com with SMTP id bs8so30900336wib.10 for ; Wed, 03 Dec 2014 02:51:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:reply-to:organization :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=JsJCgBiW0M6g4psmeTGgOjOHn3V9SZz/52PG5CM89vA=; b=RL5N05UsUTYuQIfz1zDiBt1Iak7nLtVg2o7de5gQhVEASUmNniLy+qxcHmtLLJG7Tt k/fUseVOcP2eg3Pn2r81hGWxJdCpWsKYI4vaLfs4sDuOPT2GGhLxlobfGnRhcp1S5den gVVi9v2WPR08AY3c/IDKNEubz1HpxcfY7cgVMj2XSzs0OvmvDOu43LbERmB5Q8Jlwnwu Co7/H8dcgUx6Q6SMwi0n8I3SJMAx0A6O41ywJHD01qZS2J90a+YiTgyvxZXo/TkRQXyr NhDKFfx2FdTOFhsO4giVZ6lxMdBSdT6KWPRICuRv6umLVTTOek7E7EXIt7F9lrekgvwT ix2A== X-Gm-Message-State: ALoCoQmuJZsClpkAT4c3EU/LqhYNVOG/+5Lr3MEM2KYl6By+eaTCY9nOt0lclTqzmgEnW8h3e7wv X-Received: by 10.194.57.43 with SMTP id f11mr6397845wjq.6.1417603891494; Wed, 03 Dec 2014 02:51:31 -0800 (PST) Received: from ?IPv6:2a01:e35:8b63:dc30:a488:8a1:f966:12ad? ([2a01:e35:8b63:dc30:a488:8a1:f966:12ad]) by mx.google.com with ESMTPSA id dm10sm50218774wib.18.2014.12.03.02.51.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Dec 2014 02:51:30 -0800 (PST) Message-ID: <547EEB31.4070900@6wind.com> Date: Wed, 03 Dec 2014 11:51:29 +0100 From: Nicolas Dichtel Organization: 6WIND User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Takayuki Usui , dev@dpdk.org References: <547D809E.8020607@6wind.com> <1417570646-7724-1-git-send-email-takayuki@midokura.com> In-Reply-To: <1417570646-7724-1-git-send-email-takayuki@midokura.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v3] kni: create KNI interface in current network namespace X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: nicolas.dichtel@6wind.com List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 10:51:31 -0000 Le 03/12/2014 02:37, Takayuki Usui a écrit : > 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