提交 ac6f7859 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

Staging: hv: netvsc_drv: Directly invoke the function rndis_filter_receive()

Directly invoke the function rndis_filter_receive().
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: NHank Janssen <hjanssen@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 a25e1dbe
...@@ -820,8 +820,6 @@ static void netvsc_receive(struct hv_device *device, ...@@ -820,8 +820,6 @@ static void netvsc_receive(struct hv_device *device,
int i, j; int i, j;
int count = 0, bytes_remain = 0; int count = 0, bytes_remain = 0;
unsigned long flags; unsigned long flags;
struct netvsc_driver *netvsc_drv =
drv_to_netvscdrv(device->device.driver);
LIST_HEAD(listHead); LIST_HEAD(listHead);
...@@ -983,7 +981,7 @@ static void netvsc_receive(struct hv_device *device, ...@@ -983,7 +981,7 @@ static void netvsc_receive(struct hv_device *device,
} }
/* Pass it to the upper layer */ /* Pass it to the upper layer */
netvsc_drv->recv_cb(device, netvsc_packet); rndis_filter_receive(device, netvsc_packet);
netvsc_receive_completion(netvsc_packet-> netvsc_receive_completion(netvsc_packet->
completion.recv.recv_completion_ctx); completion.recv.recv_completion_ctx);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册