Does DPDK require more than 1 NIC?

别等时光非礼了梦想. 提交于 2019-12-09 23:43:18

问题


I'm totally new to DPDK and have some weird questions that I cannot figure out by myself.

  1. Does DPDK require more than 1 NIC on my physical device? I saw some examples (l2fwd, l3fwd) that require 2 NICs, one is used for receiving packets and another one is used for transmitting packets.
  2. Since DPDK takes control of NICs, could I still normally access the Internet if I bind my only NIC to DPDK? I mean doing some normal stuff like surfing the web with Firefox.
  3. After binding the NICs, only DPDK applications can access those NICs, or is there any way that normal applications can access them?

I have been confused with these questions for days. Please purify my mind.

Thanks in advance :)


回答1:


  1. It depends on the application. In case of l2fwd, yes you need more than 1 NIC. Though, they don't have to be physical. You could create virtual NICs with VmWare or VirtualBox.
  2. You won't be able to surf the web if you bind NIC to DPDK.
  3. I think there is no other way.

For development, you could setup a virtual machine, with 2 virtual NICs for use by DPDK, and one to surf the web.



来源:https://stackoverflow.com/questions/37893431/does-dpdk-require-more-than-1-nic

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!