]> git.baikalelectronics.ru Git - kernel.git/commit
net: vhost: factor out busy polling logic to vhost_net_busy_poll()
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Tue, 25 Sep 2018 12:36:51 +0000 (05:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Sep 2018 03:25:55 +0000 (20:25 -0700)
commit501c39abbc49ab2fdc58403abf34f9da3114fbd0
tree010fc596904f11a5cf9caa4bcc16d9804248e2d2
parenta2246682aa9c764fb0eef4d51ea8d5eca0c9919e
net: vhost: factor out busy polling logic to vhost_net_busy_poll()

Factor out generic busy polling logic and will be
used for in tx path in the next patch. And with the patch,
qemu can set differently the busyloop_timeout for rx queue.

To avoid duplicate codes, introduce the helper functions:
* sock_has_rx_data(changed from sk_has_rx_data)
* vhost_net_busy_poll_try_queue

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c