-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help about af_xdp, i have some confusion(eg, i should process arp protocol?) #342
Comments
The default bpf program for AF_XDP from libxdp will transfer all packet received on a queue to an AF_XDP socket if a socket is attached to that queue.
There's a useful project called CNDP [1] that you might find useful - particularly the cnet stack. It uses a hybrid network stack (kernel space is the control plane and userspace, via af_xdp, provides the accelerated dataplane). There's also a quick overview of it here [2]. [1] https://github.com/CloudNativeDataPlane/cndp |
@maryamtahhan use xdp prog and af_xdp, we can capture packet from network to user space . when i process the packet in user space , i want forward packet to other network, or other pc, how to deal with it. Of couse, we can't use socket communication。we can get the packet addr from af_xdp api , but how to forward it ? thanks. Thanks again |
Hi @xjj210130 I've replied in xdp-project/bpf-examples#94 I hope it helps |
Hi all:
When I was using af_xdp, I found that af_xdp transferred all the messages to umem. Is there any way to continue to hand over the three-way handshake protocol of arp and tcp to the kernel for processing.
eg : the project bpf-examples/AF_XDP-forwarding. i should process all protocol.
Thanks
The text was updated successfully, but these errors were encountered: