From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5C81AA04DD for ; Thu, 22 Oct 2020 10:54:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 20E5BA939; Thu, 22 Oct 2020 10:54:14 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 50D6572EA; Thu, 22 Oct 2020 10:54:10 +0200 (CEST) IronPort-SDR: 9eFUIptYObUE+trjcKocGa6sHt11O7/ZhW7H0AiNK9i+ELZGa8+Epe0fRHVN8BTO8rBtjQgC1B oaIFPUDXVQAg== X-IronPort-AV: E=McAfee;i="6000,8403,9781"; a="231690333" X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="231690333" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 01:54:07 -0700 IronPort-SDR: 6n1fhWysjZyqoDPb5gPDXi5XIGitgtELiGVDFgGCFyYREEMdW8utSvNHKl5zyJKoUer5JB2Az/ XC9HBR155DMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="302286327" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmga008.fm.intel.com with ESMTP; 22 Oct 2020 01:54:07 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 22 Oct 2020 01:54:07 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) 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.1713.5; Thu, 22 Oct 2020 16:54:05 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.1713.004; Thu, 22 Oct 2020 16:54:05 +0800 From: "Zhang, Qi Z" To: "Zhang, Yuying" , "dev@dpdk.org" , "Xing, Beilei" CC: "stable@dpdk.org" Thread-Topic: [PATCH v2] net/i40e: fix virtual channel confiliction issue Thread-Index: AQHWpb8fSROq0Wp3LkeKMgYdPiwipqmjViPg Date: Thu, 22 Oct 2020 08:54:05 +0000 Message-ID: References: <20200920152813.674261-1-yuying.zhang@intel.com> <20201019022025.1748497-1-yuying.zhang@intel.com> In-Reply-To: <20201019022025.1748497-1-yuying.zhang@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-stable] [PATCH v2] net/i40e: fix virtual channel confiliction issue X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" > -----Original Message----- > From: Zhang, Yuying > Sent: Monday, October 19, 2020 10:20 AM > To: dev@dpdk.org; Zhang, Qi Z ; Xing, Beilei > > Cc: Zhang, Yuying ; stable@dpdk.org > Subject: [PATCH v2] net/i40e: fix virtual channel confiliction issue >=20 > i40evf_execute_vf_cmd() uses _atomic_set_cmd() to execute virtual channel > commands safely in multi-process mode and multi-thread mode. > However, it returns -1 when one process or thread is pending. Add > rte_spinlock_trylock() to handle this issue in concurrent scenarios. >=20 > Fixes: 4861cde46116 ("i40e: new poll mode driver") > Cc: stable@dpdk.org >=20 > Signed-off-by: Yuying Zhang Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi