Drivers: hv: vmbus: move init_vp_index() call to vmbus_process_offer()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 7 May 2015 00:47:45 +0000 (17:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 19:19:00 +0000 (12:19 -0700)
commitf38e7dd72337d83cced910cfbf6016475ef85bf7
treed443e9ca39402951e1454389866dba30f36c8a2a
parent357e836a609812ab28fb56df28555295191bd330
Drivers: hv: vmbus: move init_vp_index() call to vmbus_process_offer()

We need to call init_vp_index() after we added the channel to the appropriate
list (global or subchannel) to be able to use this information when assigning
the channel to the particular vcpu. To do so we need to move a couple of
functions around. The only real change is the init_vp_index() call. This is a
small refactoring without a functional change.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel_mgmt.c