From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create() Date: Wed, 17 Jun 2015 15:08:18 +0200 Message-ID: <2538827.H6fIiqqeFU@xps13> References: <1434341253-3227-1-git-send-email-liuwf@arraynetworks.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Wenfeng Liu Return-path: Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by dpdk.org (Postfix) with ESMTP id 5AFDDC422 for ; Wed, 17 Jun 2015 15:09:19 +0200 (CEST) Received: by wibdq8 with SMTP id dq8so52969714wib.1 for ; Wed, 17 Jun 2015 06:09:19 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > In containers like docker, current->pid returns current process's global PID > > instead of its own PID under containers's PID namespace, and > > get_net_ns_by_pid() suppose to accept a virtual PID under its own namespace, > > so we should use task_pid_vnr(current) to get current process's virtual PID > > instead of current->pid. > > > > Signed-off-by: Wenfeng Liu > Acked-by: Helin Zhang Applied, thanks