[dpdk-dev] Running DPDK application with non-previlege mode

Kamaraj P pkamaraj at gmail.com
Tue Aug 31 18:20:43 CEST 2021


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 <david.marchand at redhat.com>
wrote:

> On Tue, Aug 31, 2021 at 5:27 PM Kamaraj P <pkamaraj at gmail.com> 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
>
>


More information about the dev mailing list