mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
6867b17b26
commit
c3582a2c4d
4 changed files with 10 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue