-->

Does DPDK require more than 1 NIC?

2019-04-15 23:01发布

问题:

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.



标签: nic dpdk