From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E555C432BE for ; Tue, 31 Aug 2021 19:44:26 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id BE51160F6C for ; Tue, 31 Aug 2021 19:44:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BE51160F6C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dpdk.org 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