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 program
has loaded.
Do drivers really have to tweak max mtu all the time?
Seems strange, I would say drivers just report device caps
and net core enforces rules.
Can't net core do these checks?

I think this needs host co-operation, at least this patch prevents user from misconfiguring mtu in guest.

Reply via email to