Reputation: 6464
I have DPDK-20.11.3 installed.
Given that a Dpdk
application is a process from the Linux
point of view, I would assume that there should be ways (possibly with constraints) of communication between the Dpdk
application and Linux native application (capable of using Linux sockets interface).
What are the possible options, that I could explore? Pipes, shared memory? I don't have any tcp/ip
stack ported on dpdk, so I likely can't use sockets at all?
I'd appreciate links and documents that could shed some light on this. Thanks!
Upvotes: 0
Views: 977
Reputation: 4798
As clarified over comments the real intention is to send and receive full or partial packets into the Kernel network subsystem. The easiest way is to make use of DPDK PCAP PMD or TAP PMD.
How to use:
Tap:
--vdev=net_tap0
.dtap0
sudo ip link set dtap0 up
PCAP:
veth interface pair
in Linux using ip link add dev v1 type veth peer name v2
v1
in linux network subsystemv2
in dpdk application by --vdev=net_pcap0,iface=v2
Note:
environment
Upvotes: 1
Reputation: 59
You can use KNI interface. Here is the Sample app for the same. https://doc.dpdk.org/guides-20.11/sample_app_ug/kernel_nic_interface.html
Upvotes: 1