From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48A4CA0C55; Tue, 31 Aug 2021 21:44:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F128440696; Tue, 31 Aug 2021 21:44:24 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id EC60340141; Tue, 31 Aug 2021 21:44:22 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10093"; a="218275482" X-IronPort-AV: E=Sophos;i="5.84,367,1620716400"; d="scan'208";a="218275482" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 12:44:22 -0700 X-IronPort-AV: E=Sophos;i="5.84,367,1620716400"; d="scan'208";a="531286367" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.24.96]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 31 Aug 2021 12:44:17 -0700 Date: Tue, 31 Aug 2021 20:44:14 +0100 From: Bruce Richardson To: Kamaraj P Cc: David Marchand , Thomas Monjalon , dev , Anatoly Burakov , Ferruh Yigit , ksimha@cisco.com, kalas@cisco.com, seveluch@cisco.com, "techboard@dpdk.org" , hpai@cisco.com, ppitchai@cisco.com, Aaron Conole , "Kamaraj P (kamp)" Message-ID: References: <66ba0b52-83bf-f7a0-aa79-66a267af32c4@intel.com> <3485790.tFL5Z3R0ll@thomas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dpdk-dev] Running DPDK application with non-previlege mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Aug 31, 2021 at 09:50:43PM +0530, Kamaraj P wrote: > Thanks David. Will check it out. > > BTW are there any steps where DPDK testpmd can run as a non privileged user > mode ( with any driver )? > Please share if you have any pointers. > > Thanks, > Kamaraj > Not sure if this is generally applicable but I ran a test using testpmd as a non-root user on my Ubuntu 21.04 system. I bound a couple of ports using the i40e driver to DPDK using vfio-pci kernel driver, and then did a chmod on the /dev/vfio/ nodes for them to give the user access. I also gave the user rw access to the hugepage mount point I had created. Thereafter testpmd ran fine as a non-root user and I was able to put traffic through it. Regards, /Bruce