You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
I am trying to understand how the AF_XDP plugin for K8s works, correct me if I am wrong.
In Primary mode
Packets Flow:
packets -> primary device(physical NIC) -> NIC Driver(applies the XDP program at the hook) -> AF_XDP socket(outside the pod) -> pod
Components Role:
AF_XDP plugin is responsible to create af_xdp sockets for each pod
AF_XDP CNI is responsible for configuring the network interfaces of the pods
In CDQ mode
Packets Flow:
packets -> primary device(physical NIC) -> NIC Driver(applies the XDP program at the hook) -> subfunction(resides outside the pod but in the userspace) -> AF_XDP socket(outside the pod) -> pod
Components Role:
NIC Driver creates the subfunction and assigns it to AF_XDP CNI to manage.
AF_XDP plugin creates the AF_XDP socket at the userspace, outside the pod. it commands the driver to create a new subfunction(outside the pod) based on requirements.
AF_XDP CNI is responsible for assigning subfunctions to the respective pods.
Note: I had seen the image of AF_XDP high-level Arch, but not sure about the implementation of the subfunction and AF_XDP socket inside the pod. Correct me if it is implemented the same as what was there.
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Working of AF_XDP Plugin
I am trying to understand how the AF_XDP plugin for K8s works, correct me if I am wrong.
In Primary mode
Packets Flow:
packets -> primary device(physical NIC) -> NIC Driver(applies the XDP program at the hook) -> AF_XDP socket(outside the pod) -> pod
Components Role:
In CDQ mode
Packets Flow:
packets -> primary device(physical NIC) -> NIC Driver(applies the XDP program at the hook) -> subfunction(resides outside the pod but in the userspace) -> AF_XDP socket(outside the pod) -> pod
Components Role:
Note: I had seen the image of AF_XDP high-level Arch, but not sure about the implementation of the subfunction and AF_XDP socket inside the pod. Correct me if it is implemented the same as what was there.
Thank you in advance!
The text was updated successfully, but these errors were encountered: