mtcp-stack / mtcp

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

fail to run dpdk_iface_main and dpdk0 don't appear #254

Open kwjjyn opened 5 years ago

kwjjyn commented 5 years ago

hi, mtcp team. I'm using virtio driver to run the mtcp . However, it seems that it would compile dpdk-iface-kmod only using intel drivers. I tried to compile the dpdk-iface-kmod but it failed. So I can't get the dpdk0 interface and can't assign ip on it . Could you give me some advices ? Thank you very much.

ajamshed commented 5 years ago

@kwjjyn,

As of this moment, we don't provide support for virtio driver. Can you switch to igb_uio driver?

kwjjyn commented 5 years ago

yes , I can use dpdk to switch to igb_uio driver. Actually the error is : error: unknown field ‘ndo_setup_tc’ specified in initializer .ndo_setup_tc = NULL it seems the kernel header problem. The kernel version I used is 3.10.0 . And I found the function ndo_setuo_tc was changed to nod_setup_tc_rh72 in netdevice.h. After changing the function name in dpdk_iface.h , the dpdk0 shows up

ajamshed commented 5 years ago

Thanks for reporting the problem. We started providing support for mTCP-DPDK from linux-3.13. But I think you have patched up the code well.