[dpdk-dev] [PATCH v2 0/6] update dpdk-setup.sh

David Marchand david.marchand at redhat.com
Thu Nov 26 17:30:46 CET 2020


On Thu, Nov 26, 2020 at 3:19 PM Ferruh Yigit <ferruh.yigit at intel.com> wrote:
>
> This is an effort to update the dpdk-setup.sh script and keep it one
> more year until whole functionality of it is replaced.
>
> Other option is to remove it completely, please comment.

I would simply remove this script.

Binding devices can be done with either driverctl (which is available
in most distributions) and dpdk-devbind.py (which a Howto already in
the doc).


As for permissions, what this script is doing is scary.
I would prefer users don't rely on this:
usertools/dpdk-setup.sh:        sudo chmod a+x /dev/vfio
usertools/dpdk-setup.sh:        sudo chmod 0666 /dev/vfio/*

OVS uses a udev rule for non root support:
https://github.com/openvswitch/ovs/blob/master/rhel/usr_lib_udev_rules.d_91-vfio.rules
We could describe this in the DPDK documentation.


-- 
David Marchand



More information about the dev mailing list