aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-10-21 11:48:19 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-21 11:48:19 -0400
commit81f162035745b59d0defd210751d52c20d4b6746 (patch)
tree9ddea1e9b6f3de25cfca680872c1aa014b6ed81e
parent98873724aa3957f27f35a82f20c85262fae42f0d (diff)
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: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/hv/netvsc.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c
index 4fc0fd9efad6..4c29c31ad3a5 100644
--- a/drivers/staging/hv/netvsc.c
+++ b/drivers/staging/hv/netvsc.c
@@ -240,10 +240,9 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device)
240 * channel. Note: This call uses the vmbus connection rather 240 * channel. Note: This call uses the vmbus connection rather
241 * than the channel to establish the gpadl handle. 241 * than the channel to establish the gpadl handle.
242 */ 242 */
243 ret = Device->Driver->VmbusChannelInterface.EstablishGpadl(Device, 243 ret = vmbus_establish_gpadl(Device->context, netDevice->ReceiveBuffer,
244 netDevice->ReceiveBuffer, 244 netDevice->ReceiveBufferSize,
245 netDevice->ReceiveBufferSize, 245 &netDevice->ReceiveBufferGpadlHandle);
246 &netDevice->ReceiveBufferGpadlHandle);
247 if (ret != 0) { 246 if (ret != 0) {
248 DPRINT_ERR(NETVSC, 247 DPRINT_ERR(NETVSC,
249 "unable to establish receive buffer's gpadl"); 248 "unable to establish receive buffer's gpadl");
@@ -369,10 +368,9 @@ static int NetVscInitializeSendBufferWithNetVsp(struct hv_device *Device)
369 * channel. Note: This call uses the vmbus connection rather 368 * channel. Note: This call uses the vmbus connection rather
370 * than the channel to establish the gpadl handle. 369 * than the channel to establish the gpadl handle.
371 */ 370 */
372 ret = Device->Driver->VmbusChannelInterface.EstablishGpadl(Device, 371 ret = vmbus_establish_gpadl(Device->context, netDevice->SendBuffer,
373 netDevice->SendBuffer, 372 netDevice->SendBufferSize,
374 netDevice->SendBufferSize, 373 &netDevice->SendBufferGpadlHandle);
375 &netDevice->SendBufferGpadlHandle);
376 if (ret != 0) { 374 if (ret != 0) {
377 DPRINT_ERR(NETVSC, "unable to establish send buffer's gpadl"); 375 DPRINT_ERR(NETVSC, "unable to establish send buffer's gpadl");
378 goto Cleanup; 376 goto Cleanup;