问题
I'm totally new to DPDK and have some weird questions that I cannot figure out by myself.
- 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.
- 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.
- 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:
- 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.
- You won't be able to surf the web if you bind NIC to DPDK.
- 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