From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BB882A050A; Wed, 13 Apr 2022 12:37:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A830942804; Wed, 13 Apr 2022 12:37:01 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id C02F4410E1 for ; Wed, 13 Apr 2022 12:36:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649846219; x=1681382219; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KQx7Amk1D6tp+az+1cUgv2Qnehq+ZfuHPb4KNRmYyP4=; b=Mze/AoCWANI4nxmkj1IyCAMBrIx6dRK6sdt0TTtDjLd/WXWXblh33/o7 +SL3nlYt4t0sibGL63tgdpzJX7b3dMBOD/WeAYgV6m3t4bQmPjFUB32Es Yxq/AnnD+YgF+wTmhgTlwb0DtONZhBPPgknbBiCcfqIiOp08osAYM2EmH mIJ+SR4TRFDsSQuxkXSd+vvkdQOT53nbFij3EfIxaj73odoazTL/qWqja IMAu7nMDu7vnSfWGJkkqwcPvzAW4kIX5z0c7736zU9Llsjfe4iJBpKiRy hM9IPrsZlhI3LqvFJLs2iQKPPyRAVrlt+NQB1t1KyQwCq1JgTlVfho+x3 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10315"; a="323077208" X-IronPort-AV: E=Sophos;i="5.90,256,1643702400"; d="scan'208";a="323077208" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 03:36:58 -0700 X-IronPort-AV: E=Sophos;i="5.90,256,1643702400"; d="scan'208";a="573214019" Received: from unknown (HELO localhost.localdomain) ([10.239.251.55]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 03:36:51 -0700 From: Yuan Wang To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, xuan.ding@intel.com, xingguang.he@intel.com, yvonnex.yang@intel.com, sunil.pai.g@intel.com, yuanx.wang@intel.com Subject: [PATCH 2/2] example/vhost: support to clear in-flight packets for async dequeue Date: Thu, 14 Apr 2022 02:27:42 +0800 Message-Id: <20220413182742.860659-3-yuanx.wang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220413182742.860659-1-yuanx.wang@intel.com> References: <20220413182742.860659-1-yuanx.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 patch allows vring_state_changed() to clear in-flight dequeue packets. Signed-off-by: Yuan Wang --- examples/vhost/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index d26e40ab73..04e7821322 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -1767,9 +1767,6 @@ vring_state_changed(int vid, uint16_t queue_id, int enable) if (!vdev) return -1; - if (queue_id != VIRTIO_RXQ) - return 0; - if (dma_bind[vid2socketid[vid]].dmas[queue_id].async_enabled) { if (!enable) vhost_clear_queue_thread_unsafe(vdev, queue_id); -- 2.25.1