From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=Rt92CiqIUeq9Mj8UFyvYi2GktGV8V4eoMl00B0ddp9I=; b=Zc8Kd9GY7WD7z9LSJjqvDHXqhzwEBHmlCvGYvL0bYkJvk75FnYTHAwEB+LDYIqE4qV kROuSmQkrlKMiJIzxRJ5zZ8EelsvB4AXfRcwvaTnDLq48DelaVbS4LMNwckBH5yw9+yo 8IMpoT8YQJKn0nmE+7cYXK+w0CoLQeaPtnT7lXc1NYHyHGCnpCyCQKQp15QPfhoWAegQ ioJyR7dq9zTXMr46J0uf0QWMaz1xv99dpotvk6wJ7yrU8F+s+KsVeaKHIuc0aire4pAc bUNbapLAyLQxEkOjG5g/Lanj2D0Z7XoNbtY2pPqv+LHHw4REMa4mUzhkAHyKX/KBBpoA e17Q== X-Gm-Message-State: ALoCoQmZR6MB6wIdedYNaxTv8ZRIceEhL4hTVAKg7FI2AQFTHvHCfYxWuKvRYxQCnGggsjnq5sh9 X-Received: by 10.194.201.71 with SMTP id jy7mr5684269wjc.93.1434546559232; Wed, 17 Jun 2015 06:09:19 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id j7sm6749604wjz.11.2015.06.17.06.09.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jun 2015 06:09:18 -0700 (PDT) From: Thomas Monjalon To: Wenfeng Liu Date: Wed, 17 Jun 2015 15:08:18 +0200 Message-ID: <2538827.H6fIiqqeFU@xps13> Organization: 6WIND User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; ) In-Reply-To: References: <1434341253-3227-1-git-send-email-liuwf@arraynetworks.com.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create() X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2015 13:09:19 -0000 > > 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