DPDK patches and discussions
 help / color / mirror / Atom feed
From: Kamaraj P <pkamaraj@gmail.com>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: David Marchand <david.marchand@redhat.com>,
	Thomas Monjalon <thomas@monjalon.net>, dev <dev@dpdk.org>,
	 Anatoly Burakov <anatoly.burakov@intel.com>,
	Ferruh Yigit <ferruh.yigit@intel.com>,
	ksimha@cisco.com,  kalas@cisco.com, seveluch@cisco.com,
	 "techboard@dpdk.org" <techboard@dpdk.org>,
	hpai@cisco.com, ppitchai@cisco.com,
	 Aaron Conole <aconole@redhat.com>,
	"Kamaraj P (kamp)" <kamp@cisco.com>
Subject: Re: [dpdk-dev] Running DPDK application with non-previlege mode
Date: Wed, 1 Sep 2021 21:39:51 +0530	[thread overview]
Message-ID: <CAG8PAapB0GWwwwY5_oihK9YBRFHB9dRQkAXkzyLYALfDjBCvDA@mail.gmail.com> (raw)
In-Reply-To: <YS6Gjo75srOUXt40@bricha3-MOBL.ger.corp.intel.com>

Thanks Bruce.

BTW we are trying to run our application as docker container.
We may need to pass the parameters(system capability) along with docker
command line to mount the hugepages ?
Like this : https://github.com/usnistgov/ndn-dpdk/blob/main/docs/Docker.md

Please share your thoughts.

Thanks,
Kamaraj

On Wed, Sep 1, 2021 at 1:14 AM Bruce Richardson <bruce.richardson@intel.com>
wrote:

> 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
>

  reply	other threads:[~2021-09-01 16:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-30  7:37 [dpdk-dev] Running DPDK application without " Kamaraj P
2021-08-30  7:52 ` [dpdk-dev] Running DPDK application with " Kamaraj P
2021-08-30  8:37   ` Kamaraj P
2021-08-30 11:26   ` Ferruh Yigit
2021-08-30 11:45     ` Kamaraj P
2021-08-30 12:05       ` Thomas Monjalon
2021-08-30 11:59     ` Thomas Monjalon
2021-08-30 12:06       ` David Marchand
2021-08-31 15:27         ` Kamaraj P
2021-08-31 15:34           ` David Marchand
2021-08-31 16:20             ` Kamaraj P
2021-08-31 19:44               ` Bruce Richardson
2021-09-01 16:09                 ` Kamaraj P [this message]
2021-09-01 17:52                   ` Thomas Monjalon
2021-09-05 16:54                     ` Kamaraj P
2021-09-06 14:02                       ` Kamaraj P
2021-08-31 17:49             ` Aaron Conole

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAG8PAapB0GWwwwY5_oihK9YBRFHB9dRQkAXkzyLYALfDjBCvDA@mail.gmail.com \
    --to=pkamaraj@gmail.com \
    --cc=aconole@redhat.com \
    --cc=anatoly.burakov@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=hpai@cisco.com \
    --cc=kalas@cisco.com \
    --cc=kamp@cisco.com \
    --cc=ksimha@cisco.com \
    --cc=ppitchai@cisco.com \
    --cc=seveluch@cisco.com \
    --cc=techboard@dpdk.org \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).