mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 03:06:42 +07:00
Staging: hv: netvsc: call vmbus_sendpacket_pagebuffer 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
713efeb4db
commit
ff3f8eece2
@ -912,12 +912,12 @@ static int NetVscOnSend(struct hv_device *Device,
|
||||
sendMessage.Messages.Version1Messages.SendRNDISPacket.SendBufferSectionSize = 0;
|
||||
|
||||
if (Packet->PageBufferCount) {
|
||||
ret = Device->Driver->VmbusChannelInterface.SendPacketPageBuffer(
|
||||
Device, Packet->PageBuffers,
|
||||
Packet->PageBufferCount,
|
||||
&sendMessage,
|
||||
sizeof(struct nvsp_message),
|
||||
(unsigned long)Packet);
|
||||
ret = vmbus_sendpacket_pagebuffer(Device->channel,
|
||||
Packet->PageBuffers,
|
||||
Packet->PageBufferCount,
|
||||
&sendMessage,
|
||||
sizeof(struct nvsp_message),
|
||||
(unsigned long)Packet);
|
||||
} else {
|
||||
ret = Device->Driver->VmbusChannelInterface.SendPacket(Device,
|
||||
&sendMessage,
|
||||
|
Loading…
Reference in New Issue
Block a user