From: Tiwei Bie Date: Wed, 5 Feb 2020 02:11:08 +0000 (+0800) Subject: net/virtio-user: do not reset virtqueues for split ring X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=92771257316f04157a863885979397731e755096;p=dpdk.git net/virtio-user: do not reset virtqueues for split ring Add missing braces to avoid resetting virtqueues unconditionally during reconnection. Fixes: 6ebbf4109f35 ("net/virtio-user: fix packed ring server mode") Cc: stable@dpdk.org Signed-off-by: Tiwei Bie Reviewed-by: Maxime Coquelin --- diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c index f3b35d1bdd..e61af40683 100644 --- a/drivers/net/virtio/virtio_user_ethdev.c +++ b/drivers/net/virtio/virtio_user_ethdev.c @@ -89,10 +89,11 @@ virtio_user_server_reconnect(struct virtio_user_dev *dev) dev->features &= dev->device_features; /* For packed ring, resetting queues is required in reconnection. */ - if (vtpci_packed_queue(hw)) + if (vtpci_packed_queue(hw)) { PMD_INIT_LOG(NOTICE, "Packets on the fly will be dropped" " when packed ring reconnecting."); virtio_user_reset_queues_packed(eth_dev); + } ret = virtio_user_start_device(dev); if (ret < 0)