mtcp-stack / mtcp

mTCP: A Highly Scalable User-level TCP Stack for Multicore Systems
Other
1.96k stars 432 forks source link

Is mtcp over DPDK compatible with Linux Kernel 5.9? I got some errors at dpdk-iface.h #310

Open kleirama opened 3 years ago

kleirama commented 3 years ago

I am using DPDK latest stable version 19.11.5, and while I run last step (62) of ./setup_mtcp_dpdk_env.sh which is about Are you using Intel NIC? y I got the following error:

make -C /lib/modules/5.9.0-050900rc6-generic/build/ M=/home/kleir/Desktop/Lib_userkernel_code/mtcp/dpdk-iface-kmod modules
make[1]: Entering directory '/usr/src/linux-headers-5.9.0-050900rc6-generic'
  CC [M]  /home/kleir/Desktop/Lib_userkernel_code/mtcp/dpdk-iface-kmod/dpdk_iface.o
In file included from /home/kleir/Desktop/Lib_userkernel_code/mtcp/dpdk-iface-kmod/dpdk_iface.c:32:0:
/home/kleir/Desktop/Lib_userkernel_code/mtcp/dpdk-iface-kmod/dpdk_iface.h:149:35: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
         .ndo_tx_timeout         = netdev_no_ret,
                                   ^~~~~~~~~~~~~
/home/kleir/Desktop/Lib_userkernel_code/mtcp/dpdk-iface-kmod/dpdk_iface.h:149:35: note: (near initialization for ‘netdev_ops.ndo_tx_timeout’)
cc1: some warnings being treated as errors

As, it can be seen from my error, I am using Kernel version 5.9. I guess the problem is that maybe dpdk_iface is not patched for latest Linux Kernel, but I may be wrong. Can you provide me any workaround about such problem?

vitalif commented 3 years ago

See #305 and #306. In short, mTCP is shit.