Re: [net PATCH v5 3/6] virtio_net: factor out xdp handler for readability

2017-01-18 Thread Michael S. Tsirkin
On Tue, Jan 17, 2017 at 02:21:07PM -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 Acked-by: Michael S.

[net PATCH v5 3/6] virtio_net: factor out xdp handler for readability

2017-01-17 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 | 75 +- 1 file chan