aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/vhost/net.c
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2022-05-17 13:08:50 -0500
committerMichael S. Tsirkin <mst@redhat.com>2022-05-31 12:45:10 -0400
commitb2ffa407ed5dd931d6b0657cc8824aa0f4e73a7a (patch)
treeed0b8ebc6532fb495e097268459356caaefecf39 /drivers/vhost/net.c
parentvhost-test: drop flush after vhost_dev_cleanup (diff)
downloadwireguard-linux-b2ffa407ed5dd931d6b0657cc8824aa0f4e73a7a.tar.xz
wireguard-linux-b2ffa407ed5dd931d6b0657cc8824aa0f4e73a7a.zip
vhost: rename vhost_work_dev_flush
This patch renames vhost_work_dev_flush to just vhost_dev_flush to relfect that it flushes everything on the device and that drivers don't know/care that polls are based on vhost_works. Drivers just flush the entire device and polls, and works for vhost-scsi management TMFs and IO net virtqueues, etc all are flushed. Signed-off-by: Mike Christie <michael.christie@oracle.com> Acked-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Message-Id: <20220517180850.198915-9-michael.christie@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/net.c')
-rw-r--r--drivers/vhost/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 20eb076300bb..68e4ecd1cc0e 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -1376,7 +1376,7 @@ static void vhost_net_stop(struct vhost_net *n, struct socket **tx_sock,
static void vhost_net_flush(struct vhost_net *n)
{
- vhost_work_dev_flush(&n->dev);
+ vhost_dev_flush(&n->dev);
if (n->vqs[VHOST_NET_VQ_TX].ubufs) {
mutex_lock(&n->vqs[VHOST_NET_VQ_TX].vq.mutex);
n->tx_flush = true;
@@ -1565,7 +1565,7 @@ static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd)
}
if (oldsock) {
- vhost_work_dev_flush(&n->dev);
+ vhost_dev_flush(&n->dev);
sockfd_put(oldsock);
}