public/io/netif: specify MTU override node
authorPaul Durrant <pdurrant@amazon.com>
Tue, 11 Aug 2020 08:01:55 +0000 (09:01 +0100)
committerWei Liu <wl@xen.org>
Thu, 27 Aug 2020 10:03:54 +0000 (10:03 +0000)
commitf9d25fa3faf66bcd4265fe01f23c5fd724e27601
treeb7213494dc8cabacb3eff4939b995b0f7fc27e68
parentfff1b7f50e75ad9535c86f3fcf425b4945c50a1c
public/io/netif: specify MTU override node

There is currently no documentation to state what MTU a frontend should
adertise to its network stack. It has however long been assumed that the
default value of 1500 is correct.

This patch specifies a mechanism to allow the tools to set the MTU via a
xenstore node in the frontend area and states that the absence of that node
means the frontend should assume an MTU of 1500 octets.

NOTE: The Windows PV frontend has used an MTU sampled from the xenstore
      node specified in this patch.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wl@xen.org>
docs/misc/xenstore-paths.pandoc
xen/include/public/io/netif.h