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 0DFFAA04DF; Fri, 30 Oct 2020 11:10:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A2F14C8DE; Fri, 30 Oct 2020 11:10:38 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 274B8C8D6 for ; Fri, 30 Oct 2020 11:10:33 +0100 (CET) IronPort-SDR: gq1AQR4a5y3V9peQoGxYruIpgbp08lvyxuvpGy6sUV4b3pRvP2w2/65Pb7fAPn/u0wX+wPVVdm W1SOP7OJEPzg== X-IronPort-AV: E=McAfee;i="6000,8403,9789"; a="165089741" X-IronPort-AV: E=Sophos;i="5.77,432,1596524400"; d="scan'208";a="165089741" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2020 03:10:32 -0700 IronPort-SDR: lH3TSP5A+f0yavj3DyB3UskevuSD1ZZTIk89s/2A0FVNv1OTPPd2+obRJlR0w3jOi4OvSCp2bP j+wBUF4qq4SQ== X-IronPort-AV: E=Sophos;i="5.77,432,1596524400"; d="scan'208";a="537016391" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.252.23.197]) ([10.252.23.197]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2020 03:10:30 -0700 To: Bing Zhao , viacheslavo@nvidia.com, matan@nvidia.com, orika@nvidia.com Cc: dev@dpdk.org, rasland@nvidia.com References: <1603887832-52852-1-git-send-email-bingz@nvidia.com> From: Ferruh Yigit Message-ID: Date: Fri, 30 Oct 2020 10:10:27 +0000 MIME-Version: 1.0 In-Reply-To: <1603887832-52852-1-git-send-email-bingz@nvidia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix the flow sync flags 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/28/2020 12:23 PM, Bing Zhao wrote: > In order to synchronize the flow steering cache with hardware in DR > mode, the new function is introduced. The function needs to use both > flags of "MLX5DV_DR_DOMAIN_SYNC_FLAGS_SW/HW", or else some actions > and rules may get stuck in the work queue. > > And in some old OS release with inbox driver, the enum used in the > function is not introduced yet. To resolve this, a local defined > macro is introduced. Then in Verbs mode, it will still do nothing. > In DV mode, the glue layer will return the unsupport error. > > Fixes: 2e303780c17f ("net/mlx5: add flow sync API") > > Signed-off-by: Bing Zhao > Acked-by: Ori Kam > Acked-by: Viacheslav Ovsiienko Squashed into relevant commit in next-net, thanks.