qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC net-next 07/18] tun: set offloaded xdp program


From: David Ahern
Subject: Re: [RFC net-next 07/18] tun: set offloaded xdp program
Date: Sun, 1 Dec 2019 09:45:46 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

On 11/26/19 4:07 AM, Prashant Bhole wrote:
> From: Jason Wang <address@hidden>
> 
> This patch introduces an ioctl way to set an offloaded XDP program
> to tun driver. This ioctl will be used by qemu to offload XDP program
> from virtio_net in the guest.
> 

Seems like you need to set / reset the SOCK_XDP flag on tfile->sk since
this is an XDP program.

Also, why not add this program using netlink instead of ioctl? e.g., as
part of a generic XDP in the egress path like I am looking into for the
host side.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]