F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.87k stars 899 forks source link

f-stack tools add root user check #829

Open typochecker opened 4 months ago

typochecker commented 4 months ago

I am accustomed to using sudo instead of directly using the root user. When I forget to add the sudo prefix, the program only outputs an error message with a reason that is hard to guess.

aaa@aaaubuntu:~/speedtest$ /data/f-stack/tools/sbin/ifconfig EAL: Cannot open '/run/user/1000/dpdk/rte/config' for rte_mem_config EAL: FATAL: Cannot init config EAL: Cannot init config EAL: Error - exiting with code: 1 Cause: Error with EAL initialization