Skip to contentSkip to conversation

hv_netvsc: remove vmbus_are_subchannels_present() in rndis_filter_device_add()

PATCH Applied Haiyang Zhang 2 participants 2 messages Mar 26, 2015 – Mar 29, 2015

Subsystems (3)
lore
Share & tools
lore

Haiyang Zhang

author maintainer
#0 lore raw

PATCH 1/1 hv_netvsc: remove vmbus_are_subchannels_present() in rndis_filter_device_add()

The vmbus_are_subchannels_present() also involves opening the channels, which may be too early at this point. Checking for subchannels is not necessary here. So this patch removes it. Subchannels will be opened when offer messages arrive.

---
 drivers/net/hyperv/rndis_filter.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/net/hyperv/rndis_filter.c +0 -2
index a2b185a..fdfab1f 100644
@@ -1141,8 +1141,6 @@ int rndis_filter_device_add(struct hv_device *dev,
 	net_device->num_chn = 1 +
 		init_packet->msg.v5_msg.subchn_comp.num_subchannels;
 
-	vmbus_are_subchannels_present(dev->channel);
-
 	ret = rndis_filter_set_rss_param(rndis_device, net_device->num_chn);
 
 out:
Signature · 1 line
1.7.4.1
maintainer Applied
#1 lore raw

From: Haiyang Zhang <[email protected]>
Date: Thu, 26 Mar 2015 16:20:58 -0700

Quoted 5 lines

The vmbus_are_subchannels_present() also involves opening the channels, which may be too early at this point. Checking for subchannels is not necessary here. So this patch removes it. Subchannels will be opened when offer messages arrive.

Applied.