Re: [net-next PATCH 2/5] virtio_net: factor out xdp handler for readability

2017-02-02 Thread Michael S. Tsirkin
On Thu, Feb 02, 2017 at 03:20:52PM -0800, John Fastabend wrote: > At this point the do_xdp_prog is mostly if/else branches handling > the different modes of virtio_net. So remove it and handle running > the program in the per mode handlers. > > Signed-off-by: John Fastabend This can go in except

Re: [net-next PATCH 2/5] virtio_net: factor out xdp handler for readability

2017-02-02 Thread John Fastabend
On 17-02-02 05:05 PM, Jakub Kicinski wrote: > On Thu, 02 Feb 2017 15:20:52 -0800, John Fastabend wrote: >> At this point the do_xdp_prog is mostly if/else branches handling >> the different modes of virtio_net. So remove it and handle running >> the program in the per mode handlers. >> >> Signed-of

Re: [net-next PATCH 2/5] virtio_net: factor out xdp handler for readability

2017-02-02 Thread Jakub Kicinski
On Thu, 02 Feb 2017 15:20:52 -0800, John Fastabend wrote: > At this point the do_xdp_prog is mostly if/else branches handling > the different modes of virtio_net. So remove it and handle running > the program in the per mode handlers. > > Signed-off-by: John Fastabend I think you rebased away Da

[net-next PATCH 2/5] virtio_net: factor out xdp handler for readability

2017-02-02 Thread John Fastabend
At this point the do_xdp_prog is mostly if/else branches handling the different modes of virtio_net. So remove it and handle running the program in the per mode handlers. Signed-off-by: John Fastabend --- drivers/net/virtio_net.c | 80 +- 1 file chan