Skip to content

Commit

Permalink
hv_netvsc: remove vmbus_are_subchannels_present() in rndis_filter_dev…
Browse files Browse the repository at this point in the history
…ice_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.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Haiyang Zhang authored and David S. Miller committed Mar 29, 2015
1 parent cb6e0b3 commit 5ce58c2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/hyperv/rndis_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5ce58c2

Please sign in to comment.