From patchwork Wed Mar 27 09:40:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 812 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2A20F43D66; Wed, 27 Mar 2024 10:40:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E2A30402B2; Wed, 27 Mar 2024 10:40:44 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 585D24029F for ; Wed, 27 Mar 2024 10:40:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711532442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZQ0Ga978YxajKbGWBGQ1VkkcXAKCVTcNs7wEWLJqdeg=; b=CK4qiXqVK7kqyk4Al6MOBOMf4CUL6nbN3wM07I/WcijptTHHEq5G295Va0KNrHfkpUbRm/ Tam8sxeRgGLKlZfDcRdzEXQlrik2EHWtfN/AqsPEKPpa+Nhwhqnge4I/JLvazLMIHPC1qm E2Nwwb2/9mbtg4YEQbgRUG1og+Stb1A= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-619-E5WESwbnOKKcZyxkE-glhQ-1; Wed, 27 Mar 2024 05:40:41 -0400 X-MC-Unique: E5WESwbnOKKcZyxkE-glhQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BB19181044B; Wed, 27 Mar 2024 09:40:40 +0000 (UTC) Received: from max-p1.redhat.com (unknown [10.39.208.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 48C0210E47; Wed, 27 Mar 2024 09:40:39 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, david.marchand@redhat.com, chenbox@nvidia.com Cc: Maxime Coquelin Subject: [PATCH 0/4] Virtio-user queues setup fixes Date: Wed, 27 Mar 2024 10:40:28 +0100 Message-ID: <20240327094032.2400951-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This series aims at fixing several issues found in Virtio-user PMD related to queues setup and cleanup. It has been tested with Vhost-vDPA backend using Nvidia Cx6-Dx vDPA VF. First patch in the series renames the queues iterator helper, so it is not a fix. But I would suggest to have it backported to ease backporting of the fixes. Maxime Coquelin (4): net/virtio: rename Virtio-user queue iterator net/virtio: use iterator to destroy Virtio-user queues net/virtio: fix shadow control queue notification init net/virtio: fix shadow control queue allocation .../net/virtio/virtio_user/virtio_user_dev.c | 132 +++++++++--------- 1 file changed, 67 insertions(+), 65 deletions(-) Acked-by: David Marchand