On Thu, Nov 26, 2020 at 3:19 PM Ferruh Yigit <ferruh.yi...@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