diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2014-12-01 13:28:39 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-08 20:24:11 -0500 |
commit | c3582a2c4d0baf1fa3955c8b3d3d61308df474c7 (patch) | |
tree | bcff2477cb791564cd2189026c088ec69b1ee217 /include/linux/hyperv.h | |
parent | 6867b17b26d80cfd419e491141feb75082915979 (diff) | |
download | lwn-c3582a2c4d0baf1fa3955c8b3d3d61308df474c7.tar.gz lwn-c3582a2c4d0baf1fa3955c8b3d3d61308df474c7.zip |
hyperv: Add support for vNIC hot removal
This patch adds proper handling of the vNIC hot removal event, which includes
a rescind-channel-offer message from the host side that triggers vNIC close and
removal. In this case, the notices to the host during close and removal is not
necessary because the channel is rescinded. This patch blocks these unnecessary
messages, and lets vNIC removal process complete normally.
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>
Diffstat (limited to 'include/linux/hyperv.h')
-rw-r--r-- | include/linux/hyperv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 08cfaff8a072..476c685ca6f9 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -650,6 +650,8 @@ struct vmbus_channel { u8 monitor_grp; u8 monitor_bit; + bool rescind; /* got rescind msg */ + u32 ringbuffer_gpadlhandle; /* Allocated memory for ring buffer */ |