DPDK usage discussions
 help / color / mirror / Atom feed
From: Isaac Boukris <iboukris@gmail.com>
To: users@dpdk.org
Subject: Running testpmd as non-root user with uio_pci_generic
Date: Sun, 15 Jan 2023 00:17:10 +0200	[thread overview]
Message-ID: <CAC-fF8ShK_n1dhPK2KwV7nRx7535simb=fN77yrZR1+fV2j28A@mail.gmail.com> (raw)

Hi,

I tried to run testpmd as a non-root user with uio_pci_generic (i.e.
not vfio-pci) on a vmxnet3 interface by setting the
'cap_ipc_lock,cap_sys_admin' capabilities as according to the doc at:
https://doc.dpdk.org/guides-21.11/linux_gsg/enable_func.html

But that didn't work and I was still getting the documented error:
EAL: rte_mem_virt2phy(): cannot open /proc/self/pagemap: Permission denied

I dug a little and found that I had to add the 'cap_dac_override' as
well and then it worked, the hint was at (which also includes a small
demo program): https://bugs.centos.org/view.php?id=17176

I thought it was worth sharing as I have seen it being asked a couple of times.

Cheers,
Isaac

             reply	other threads:[~2023-01-14 22:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-14 22:17 Isaac Boukris [this message]
2023-03-28 19:25 ` Thomas Monjalon

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='CAC-fF8ShK_n1dhPK2KwV7nRx7535simb=fN77yrZR1+fV2j28A@mail.gmail.com' \
    --to=iboukris@gmail.com \
    --cc=users@dpdk.org \
    /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).