Re: [net PATCH 1/2] virtio_net: cap mtu when XDP programs are running

2017-01-05 Thread Jason Wang
On 2017年01月05日 11:18, Michael S. Tsirkin wrote: On Wed, Jan 04, 2017 at 07:11:18PM -0800, John Fastabend wrote: XDP programs can not consume multiple pages so we cap the MTU to avoid this case. Virtio-net however only checks the MTU at XDP program load and does not block MTU changes after the

Re: [net PATCH 1/2] virtio_net: cap mtu when XDP programs are running

2017-01-04 Thread Michael S. Tsirkin
On Wed, Jan 04, 2017 at 07:11:18PM -0800, John Fastabend wrote: > XDP programs can not consume multiple pages so we cap the MTU to > avoid this case. Virtio-net however only checks the MTU at XDP > program load and does not block MTU changes after the program > has loaded. Do drivers really have

Re: [net PATCH 1/2] virtio_net: cap mtu when XDP programs are running

2017-01-04 Thread John Fastabend
On 17-01-04 07:11 PM, John Fastabend wrote: > XDP programs can not consume multiple pages so we cap the MTU to > avoid this case. Virtio-net however only checks the MTU at XDP > program load and does not block MTU changes after the program > has loaded. > > This patch sets/clears the max_mtu

[net PATCH 1/2] virtio_net: cap mtu when XDP programs are running

2017-01-04 Thread John Fastabend
XDP programs can not consume multiple pages so we cap the MTU to avoid this case. Virtio-net however only checks the MTU at XDP program load and does not block MTU changes after the program has loaded. This patch sets/clears the max_mtu value at XDP load/unload time. Signed-off-by: John