Re: [RFC net-next 15/18] virtio_net: implement XDP prog offload functionality

2019-11-27 Thread Prashant Bhole
On 11/28/19 5:42 AM, Michael S. Tsirkin wrote: On Tue, Nov 26, 2019 at 07:07:41PM +0900, Prashant Bhole wrote: From: Jason Wang This patch implements bpf_prog_offload_ops callbacks and adds handling for XDP_SETUP_PROG_HW. Handling of XDP_SETUP_PROG_HW involves setting up struct virtio_net_c

Re: [RFC net-next 15/18] virtio_net: implement XDP prog offload functionality

2019-11-27 Thread Michael S. Tsirkin
On Tue, Nov 26, 2019 at 07:07:41PM +0900, Prashant Bhole wrote: > From: Jason Wang > > This patch implements bpf_prog_offload_ops callbacks and adds handling > for XDP_SETUP_PROG_HW. Handling of XDP_SETUP_PROG_HW involves setting > up struct virtio_net_ctrl_ebpf_prog and appending program instruc

[RFC net-next 15/18] virtio_net: implement XDP prog offload functionality

2019-11-26 Thread Prashant Bhole
From: Jason Wang This patch implements bpf_prog_offload_ops callbacks and adds handling for XDP_SETUP_PROG_HW. Handling of XDP_SETUP_PROG_HW involves setting up struct virtio_net_ctrl_ebpf_prog and appending program instructions to it. This control buffer is sent to Qemu with class VIRTIO_NET_CTR