Skip to content

Commit 09c3248

Browse files
jasowangdavem330
authored andcommitted
vhost_net: rename vhost_rx_signal_used() to vhost_net_signal_used()
Rename for reusing this for TX. Signed-off-by: Jason Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0d20bdf commit 09c3248

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/vhost/net.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ static int sk_has_rx_data(struct sock *sk)
741741
return skb_queue_empty(&sk->sk_receive_queue);
742742
}
743743

744-
static void vhost_rx_signal_used(struct vhost_net_virtqueue *nvq)
744+
static void vhost_net_signal_used(struct vhost_net_virtqueue *nvq)
745745
{
746746
struct vhost_virtqueue *vq = &nvq->vq;
747747
struct vhost_dev *dev = vq->dev;
@@ -765,7 +765,7 @@ static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk,
765765

766766
if (!len && tvq->busyloop_timeout) {
767767
/* Flush batched heads first */
768-
vhost_rx_signal_used(rnvq);
768+
vhost_net_signal_used(rnvq);
769769
/* Both tx vq and rx socket were polled here */
770770
mutex_lock_nested(&tvq->mutex, 1);
771771
vhost_disable_notify(&net->dev, tvq);
@@ -1008,7 +1008,7 @@ static void handle_rx(struct vhost_net *net)
10081008
}
10091009
nvq->done_idx += headcount;
10101010
if (nvq->done_idx > VHOST_RX_BATCH)
1011-
vhost_rx_signal_used(nvq);
1011+
vhost_net_signal_used(nvq);
10121012
if (unlikely(vq_log))
10131013
vhost_log_write(vq, vq_log, log, vhost_len);
10141014
total_len += vhost_len;
@@ -1022,7 +1022,7 @@ static void handle_rx(struct vhost_net *net)
10221022
else
10231023
vhost_net_enable_vq(net, vq);
10241024
out:
1025-
vhost_rx_signal_used(nvq);
1025+
vhost_net_signal_used(nvq);
10261026
mutex_unlock(&vq->mutex);
10271027
}
10281028

0 commit comments

Comments
 (0)