]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 23:00:56 +0000 (16:00 -0700)
commit4146d9ad71e080481064bdfaac77565d479f9afc
tree415b7324a0311b278c86d1c2bc75e316ebe84d78
parent26bc079cbbb52b097dfaf3e85dba3ed6519a4fb6
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>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c