mtcp-stack / mtcp

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

using mTCP with 10G NIC or 40G NIC over DPDK #216

Open ppnaik1890 opened 5 years ago

ppnaik1890 commented 5 years ago

I am trying to do a mTCP DPDk setup over both 10G as well as 40G NIC. The setup script provided shows only igb_uio. Will it work for these NICs or we need different drivers for this NICs? If different driver is required, can you please let me know the steps required for mTCP to work with these NICs?

Thanks, Priyanka

eunyoung14 commented 5 years ago

Hi Priyanka, mTCP would work if your NICs are supported by DPDK. Please check DPDK's supported hardwares.

ajamshed commented 5 years ago

Adding on to what @eunyoung14 mentioned...

This is what you don't need to do if you have a non-Intel based DPDK-compatible interface (e.g. mlx4/mlx5 NIC):

1- You don't need to insert igb_uio.ko driver to the kernel. 2- Don't bind the NIC to igb_uio.ko driver. 3- The interface name will not be named dpdkx. So set the IP addresses to the interface name as detected by the kernel. 4- Rename the interface names appropriately in mtcp.conf or epserver.conf etc.

Let us know if you face any issues.

ppnaik1890 commented 5 years ago

Thanks for the response. I have Intel based DPDK compatible NIC. Buy my concern is will it effect performance if igb_uio driver is used instead of ixgbe for a 10G NIC.

ajamshed commented 5 years ago

If you want to use DPDK, you will want to use igb_uio.ko driver over ixgbe or i40e. ixgbe/i40e do not work with DPDK.

ppnaik1890 commented 5 years ago

Ok thanks for your response.