Score:1

Is it possible to use DPDK in a server with single NIC?

cn flag

I have a a server with single NIC which has 4 pci ports. I already tried DPDK binding so before binding "dpdk-devbind.py -s" returns this :

Network devices using kernel driver
0000:01:00.0 'OneConnect NIC (Skyhawk) 0720' if=eth0 drv=be2net unused=vfio-pci *Active*
0000:01:00.1 'OneConnect NIC (Skyhawk) 0720' if=eth1 drv=be2net unused=vfio-pci
0000:01:00.2 'OneConnect NIC (Skyhawk) 0720' if=eth2 drv=be2net unused=vfio-pci
0000:01:00.3 'OneConnect NIC (Skyhawk) 0720' if=eth3 drv=be2net unused=vfio-pci

Though I couldn't find the NIC model in DPDK officcially supported hardware list, the provider said it is DPDk compatible. my "ifconfig" returns :

eth0: **some stuffs*** <IP>
lo: **some stuff**

Now, as I have only 1 IP exposed how can I use DPDK? as to bind DPDK I have to down the PCI port from ifconfig and I will lose SSH. As I can see other unused 3 pci ports, how to use them? I bound DPDK with 01:00.1 PCI port which was seen listed in DPDK compatible driver list but then what? as that was not accessible through kernel/ifconfig (no IP/interface assigned) how to even use it now from outside the server or is it even possible with single NIC? if so then how.

Score:0
cn flag

DPDK is a user-space process which allows to access the NIC ports in userspace with UIO driver and not a kernel net link device to be accessed by Kernel or normal socket application. hence the expectation of accessing DPDK ports that are bound with UIO driver in kernel space via sockets or kernel net link devices are unrealistic and incorrect.

how to even use it now from outside the server or is it even possible with single NIC?

Please make use of sample applications such as testpmd, l2fwd, l3fwd to start exploring DPDK with NIC.

Please refer

  1. testpmd
  2. l2fwd
  3. l3fwd
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.