From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 761651B938 for ; Thu, 10 Jan 2019 22:47:35 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 302B7C00C0F8; Thu, 10 Jan 2019 21:47:34 +0000 (UTC) Received: from localhost (unknown [10.36.118.36]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D8BD55C730; Thu, 10 Jan 2019 21:47:28 +0000 (UTC) From: Jens Freimann To: dev@dpdk.org Cc: tiwei.bie@intel.com, maxime.coquelin@redhat.com Date: Thu, 10 Jan 2019 22:47:25 +0100 Message-Id: <20190110214727.1142-1-jfreimann@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 10 Jan 2019 21:47:34 +0000 (UTC) Subject: [dpdk-dev] [PATCH v3 0/2] net/virtio-user: add packed vq support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2019 21:47:35 -0000 Revert patch to error out when cq is used with packed vq and in second patch add support for packed virtqueues in control virtqueue code. Patch 1 fixes a bug in virtio_pq_send_command(). When we wait for a descriptor to be marked as used we need to consider that the ring might have wrapped and use the previous wrap counter. v2->v3: * squash revert patch into patch 2 * add new patch 1 to fix a bug in driver code * fix wrap handling code in virtio_user_handle_cq_packed * in v2 I was using wrap counters and indexes from shared virtqueue, fixed this and added wrap counters and used index to virtio_user code * tested wrap around of ring v1->v2: * split into two patches * handle ring wrap correctly * add to unsupported_features when packed_vq is 0 Jens Freimann (2): net/virtio: check head desc with correct wrap counter net/virtio-user: ctrl vq support for packed drivers/net/virtio/virtio_ethdev.c | 11 +- .../net/virtio/virtio_user/virtio_user_dev.c | 104 ++++++++++++++++-- .../net/virtio/virtio_user/virtio_user_dev.h | 15 ++- drivers/net/virtio/virtio_user_ethdev.c | 56 +++++++++- drivers/net/virtio/virtqueue.h | 10 +- 5 files changed, 173 insertions(+), 23 deletions(-) -- 2.17.2