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 A6BB7A00C2; Wed, 17 Mar 2021 07:59:04 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6DE16242B12; Wed, 17 Mar 2021 07:59:04 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 12B8C4014D; Wed, 17 Mar 2021 07:59:01 +0100 (CET) IronPort-SDR: XODS49JWcN4ilU7DGJkQUiNg3baO2eHyTF563N9/t6CXFX7XPgTaJNW+yI3rI+FLVl3gBZ32xz 3SrathMFtOXg== X-IronPort-AV: E=McAfee;i="6000,8403,9925"; a="186045899" X-IronPort-AV: E=Sophos;i="5.81,255,1610438400"; d="scan'208";a="186045899" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2021 23:58:59 -0700 IronPort-SDR: TtfjZG91yRuT2vh2CTOblfShKWCZ79cTQF1+W4AEBrYHBKEzNXhvn2JbyRYr/+OCvNqAEjzGfj vPYKb0lCth/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,255,1610438400"; d="scan'208";a="522762276" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga004.jf.intel.com with ESMTP; 16 Mar 2021 23:58:58 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 16 Mar 2021 23:58:58 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 17 Mar 2021 14:58:55 +0800 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.2106.013; Wed, 17 Mar 2021 14:58:55 +0800 From: "Hu, Jiayu" To: "Jiang, Cheng1" , "maxime.coquelin@redhat.com" , "Xia, Chenbo" CC: "dev@dpdk.org" , "Yang, YvonneX" , "Wang, Yinan" , "stable@dpdk.org" Thread-Topic: [PATCH] examples/vhost: fix ioat ring space in callbacks Thread-Index: AQHXGvJ4V5/PaeXUPUORBrS8A84WqqqHv/0Q Date: Wed, 17 Mar 2021 06:58:55 +0000 Message-ID: References: <20210317054054.34616-1-Cheng1.jiang@intel.com> In-Reply-To: <20210317054054.34616-1-Cheng1.jiang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/vhost: fix ioat ring space in callbacks 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 Sender: "dev" Reviewed-by: Jiayu Hu > -----Original Message----- > From: Jiang, Cheng1 > Sent: Wednesday, March 17, 2021 1:41 PM > To: maxime.coquelin@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; Yang, YvonneX > ; Wang, Yinan ; Jiang, > Cheng1 ; stable@dpdk.org > Subject: [PATCH] examples/vhost: fix ioat ring space in callbacks >=20 > We use ioat ring space for determining if ioat callbacks can enqueue a > packet to ioat device. But there is one slot can't be used in ioat > ring due to the ioat driver design, so we need to reduce one slot in > ioat ring to prevent ring size mismatch in ioat callbacks. >=20 > Fixes: 2aa47e94bfb2 ("examples/vhost: add ioat ring space count and check= ") > Cc: stable@dpdk.org >=20 > Signed-off-by: Cheng Jiang > --- > examples/vhost/ioat.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/examples/vhost/ioat.c b/examples/vhost/ioat.c > index 60b73be93..9cb5e0d50 100644 > --- a/examples/vhost/ioat.c > +++ b/examples/vhost/ioat.c > @@ -113,7 +113,7 @@ open_ioat(const char *value) > goto out; > } > rte_rawdev_start(dev_id); > - cb_tracker[dev_id].ioat_space =3D IOAT_RING_SIZE; > + cb_tracker[dev_id].ioat_space =3D IOAT_RING_SIZE - 1; > dma_info->nr++; > i++; > } > -- > 2.29.2