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 AF165A0C4D; Tue, 31 Aug 2021 18:20:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 73ABF4067E; Tue, 31 Aug 2021 18:20:58 +0200 (CEST) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by mails.dpdk.org (Postfix) with ESMTP id E802C40141; Tue, 31 Aug 2021 18:20:56 +0200 (CEST) Received: by mail-lf1-f43.google.com with SMTP id k13so5336383lfv.2; Tue, 31 Aug 2021 09:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uSwTX3QZHCosufqotmlLERrlgz5FBtcrZl+jRTSywA4=; b=Ylh7tCgyb0y9e9Lk44OX2fqetTXEZoRvXtWdmuHX9Q+qmwRvgRnFn+WAQsf4+CUkJS IhjInHFMrWTYL2vCLn3o4opnlig6k9NQJmKa4ZDwhf/ZKown+VSF8eRZXfMyA37Zu94a Z+Z9SVOTm/glq3iKkgTd1EqYEGUrfbbF2cak4REfHBfyNTm3bbL4A0Y7gyqpBPCfno4d w8Ow7ilUvyeJYM+0u9/rw0m1+EBbewxE3Vl6OkvVsthaz7SYMBGEHWHB0mePIHti9Yym Yjk6k9L8ZTAOsUerJr+l7V1/Jjt7pQnD5jOhaW8fdasgAOABxGocEOUscV7kr9dWEwbS TOFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uSwTX3QZHCosufqotmlLERrlgz5FBtcrZl+jRTSywA4=; b=GLqlvQlnzij8H7d6pY9w9Dz0WxhO956EWIVXRBwBlYrPOtSwxWm44IlrlUhZjChahp I7gpVu12r/Ccp/YoTdUakBxCDmUmCeFWlDxCD+cPxOtMFrvSpxlDhrOdRpLDCLaJzERy 1LrUu1uZtqrOlT7fUBeFXyWMrHyTb18QzGtdACZT4AiXH2fPjqiKSh4DIGMD2ltTfkyI wL2wVunc5zohu1B1cQXReWZT2jBvCa9F+teBOI0p0k/zUuXnMgej7c8Z8a4MGhhnS7Ms XUYaPZyb63cOqs/ffFIGCr7NRaIbtfYKfGrFByjIhnhxSJ7a1Eq6brTHH2pEtTpubz0S 26uw== X-Gm-Message-State: AOAM5336lpvlTiopR35koRR/aXzqJ5IeOHKhXm6Ftl1tyy+XfY2oAHAD dW/xJ+eMuAaAHuWI4QW9GCEixkciioBUTFRS3w8= X-Google-Smtp-Source: ABdhPJzoMXEfv3Mb/9xbN4rM9XSHsyO+jQTd+pjVtawNbHf9N+J5A0QrpKIwIWnY0VAyOfBP1cv/vrRA/BiuDI5Djtc= X-Received: by 2002:a19:7117:: with SMTP id m23mr22736087lfc.73.1630426854904; Tue, 31 Aug 2021 09:20:54 -0700 (PDT) MIME-Version: 1.0 References: <66ba0b52-83bf-f7a0-aa79-66a267af32c4@intel.com> <3485790.tFL5Z3R0ll@thomas> In-Reply-To: From: Kamaraj P Date: Tue, 31 Aug 2021 21:50:43 +0530 Message-ID: To: David Marchand Cc: 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)" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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" 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 On Tue, Aug 31, 2021 at 9:05 PM David Marchand wrote: > On Tue, Aug 31, 2021 at 5:27 PM Kamaraj P wrote: > > > > Hi Thomas, > > We are trying with the IGB_UIO driver in our DPDK application. > > Running with igb-uio as a non priviledged user is not possible (or, at > best, makes little sense). > > > > Is there any documentation where we need to start to run a DPDK > application with minimal system capability? > > Also please let us know if there is any known dependency with DPDK > versions (dpdk application with 18, 19.11 versions etc) when we run with > sys capabilit. > > > > Hi David, > > Can you please share with us the pointer for OVS integration(DPDK > running as non-privileged mode ?) > > I don't have a full list, here is what I have in mind. > > For non mellanox devices, you'll have to rely on vfio-pci bound > devices and setup access to those fds. > > https://github.com/openvswitch/ovs/blob/master/rhel/usr_lib_udev_rules.d_91-vfio.rules > > For mellanox devices and some parts of dpdk, you need (quite) some > capabilities: > https://github.com/openvswitch/ovs/blob/master/lib/daemon-unix.c#L812 > > There are also hugepages accesses to consider: > > https://github.com/openvswitch/ovs/blob/master/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in#L20 > > There are selinux considerations too. > > > -- > David Marchand > >