Re: [net PATCH v3 3/5] virtio_net: factor out xdp handler for readability

2017-01-13 Thread John Fastabend
On 17-01-12 11:40 PM, Jason Wang wrote: > > > On 2017年01月13日 10:51, 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

Re: [net PATCH v3 3/5] virtio_net: factor out xdp handler for readability

2017-01-12 Thread Jason Wang
On 2017年01月13日 10:51, 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 ---

[net PATCH v3 3/5] virtio_net: factor out xdp handler for readability

2017-01-12 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 | 76