[ovs-dev] [PATCH RFCv4 0/4] AF_XDP netdev support for OVS
Eelco Chaudron
echaudro at redhat.com
Thu Apr 18 09:08:01 UTC 2019
On 2 Apr 2019, at 0:46, William Tu wrote:
> The patch series introduces AF_XDP support for OVS netdev.
> AF_XDP is a new address family working together with eBPF.
> In short, a socket with AF_XDP family can receive and send
> packets from an eBPF/XDP program attached to the netdev.
> For more details about AF_XDP, please see linux kernel's
> Documentation/networking/af_xdp.rst
>
> OVS has a couple of netdev types, i.e., system, tap, or
> internal. The patch first adds a new netdev types called
> "afxdp", and implement its configuration, packet reception,
> and transmit functions. Since the AF_XDP socket, xsk,
> operates in userspace, once ovs-vswitchd receives packets
> from xsk, the proposed architecture re-uses the existing
> userspace dpif-netdev datapath. As a result, most of
> the packet processing happens at the userspace instead of
> linux kernel.
One other issue I found it that if a XDP program is already attached,
due to crash or previous loaded one, adding the port will hang.
<SNIP>
More information about the dev
mailing list