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

2017-02-05 Thread Jason Wang
On 2017年02月03日 11:15, 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: Jason Wang --- drivers/net/virt

[net-next PATCH v2 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 | 86 +++--- 1 file chan