]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hv_netvsc: Add support to set MTU reservation from guest side
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 6 Jul 2015 21:11:37 +0000 (14:11 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:28:53 +0000 (18:28 -0800)
commit0e303cbb9bded35a20df2c8ebaf42986d44714a3
tree9019fb3d812187867c004c1a6a27f5170fbf84c8
parent2f4279ba5e85e1223b0d6ce62de05e18a840a746
hv_netvsc: Add support to set MTU reservation from guest side

When packet encapsulation is in use, the MTU needs to be reduced for
headroom reservation.
The existing code takes the updated MTU value only from the host side.
But vSwitch extensions, such as Open vSwitch, require the flexibility
to change the MTU to different values from within a guest during the
lifecycle of a vNIC, when the encapsulation protocol is changed. The
patch supports this kind of MTU changes.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit f9cbce34c34bcc05ea0dd78c8999bfe88b5b6b86)

Orabug: 21886720
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c