提交 ff3f8eec 编写于 作者: G Greg Kroah-Hartman

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: NGreg Kroah-Hartman <gregkh@suse.de>
上级 713efeb4
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册