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>
This commit is contained in:
parent
98873724aa
commit
81f1620357
1 changed files with 6 additions and 8 deletions
|
@ -240,10 +240,9 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device)
|
||||||
* channel. Note: This call uses the vmbus connection rather
|
* channel. Note: This call uses the vmbus connection rather
|
||||||
* than the channel to establish the gpadl handle.
|
* than the channel to establish the gpadl handle.
|
||||||
*/
|
*/
|
||||||
ret = Device->Driver->VmbusChannelInterface.EstablishGpadl(Device,
|
ret = vmbus_establish_gpadl(Device->context, netDevice->ReceiveBuffer,
|
||||||
netDevice->ReceiveBuffer,
|
netDevice->ReceiveBufferSize,
|
||||||
netDevice->ReceiveBufferSize,
|
&netDevice->ReceiveBufferGpadlHandle);
|
||||||
&netDevice->ReceiveBufferGpadlHandle);
|
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
DPRINT_ERR(NETVSC,
|
DPRINT_ERR(NETVSC,
|
||||||
"unable to establish receive buffer's gpadl");
|
"unable to establish receive buffer's gpadl");
|
||||||
|
@ -369,10 +368,9 @@ static int NetVscInitializeSendBufferWithNetVsp(struct hv_device *Device)
|
||||||
* channel. Note: This call uses the vmbus connection rather
|
* channel. Note: This call uses the vmbus connection rather
|
||||||
* than the channel to establish the gpadl handle.
|
* than the channel to establish the gpadl handle.
|
||||||
*/
|
*/
|
||||||
ret = Device->Driver->VmbusChannelInterface.EstablishGpadl(Device,
|
ret = vmbus_establish_gpadl(Device->context, netDevice->SendBuffer,
|
||||||
netDevice->SendBuffer,
|
netDevice->SendBufferSize,
|
||||||
netDevice->SendBufferSize,
|
&netDevice->SendBufferGpadlHandle);
|
||||||
&netDevice->SendBufferGpadlHandle);
|
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
DPRINT_ERR(NETVSC, "unable to establish send buffer's gpadl");
|
DPRINT_ERR(NETVSC, "unable to establish send buffer's gpadl");
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
|
|
Loading…
Add table
Reference in a new issue