Commit 81f16203 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Staging: hv: netvsc: call vmbus_establish_gpadl directly



Don't do the interface indirection, it's not needed at all.

Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 98873724
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -240,8 +240,7 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device)
	 * channel.  Note: This call uses the vmbus connection rather
	 * than the channel to establish the gpadl handle.
	 */
	ret = Device->Driver->VmbusChannelInterface.EstablishGpadl(Device,
					netDevice->ReceiveBuffer,
	ret = vmbus_establish_gpadl(Device->context, netDevice->ReceiveBuffer,
				    netDevice->ReceiveBufferSize,
				    &netDevice->ReceiveBufferGpadlHandle);
	if (ret != 0) {
@@ -369,8 +368,7 @@ static int NetVscInitializeSendBufferWithNetVsp(struct hv_device *Device)
	 * channel.  Note: This call uses the vmbus connection rather
	 * than the channel to establish the gpadl handle.
	 */
	ret = Device->Driver->VmbusChannelInterface.EstablishGpadl(Device,
					netDevice->SendBuffer,
	ret = vmbus_establish_gpadl(Device->context, netDevice->SendBuffer,
				    netDevice->SendBufferSize,
				    &netDevice->SendBufferGpadlHandle);
	if (ret != 0) {