From: Steven Luong Date: Tue, 1 Aug 2017 16:17:36 +0000 (-0700) Subject: net/virtio-user: send kick notify backend on init X-Git-Tag: spdx-start~1668 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=924da8f1c4f50ac2c45a2335cb2d5ff9616fc8e9;p=dpdk.git net/virtio-user: send kick notify backend on init Acccording to the vhost-user spec [0], client must start ring upon receiving a kick (that is, detecting that file descriptor is reachable) on the descriptor specified by VHOST_USER_SET_VRING_KICK. The code sends a kick to the rx queue. It is missing sending a kick for the tx queue. This patch is to add the missing code to comply with the spec. [0]: https://fossies.org/linux/qemu/docs/specs/vhost-user.txt Signed-off-by: Steven Luong Acked-by: Yuanhan Liu --- diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index e320811ede..c1b16408f6 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1754,6 +1754,11 @@ virtio_dev_start(struct rte_eth_dev *dev) virtqueue_notify(rxvq->vq); } + for (i = 0; i < dev->data->nb_tx_queues; i++) { + txvq = dev->data->tx_queues[i]; + virtqueue_notify(txvq->vq); + } + PMD_INIT_LOG(DEBUG, "Notified backend at initialization"); for (i = 0; i < dev->data->nb_rx_queues; i++) {