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 32C23A034E; Thu, 7 Nov 2019 08:53:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 097981DFE2; Thu, 7 Nov 2019 08:53:56 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 127511DF97 for ; Thu, 7 Nov 2019 08:53:54 +0100 (CET) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2019 23:53:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,277,1569308400"; d="scan'208";a="201336410" Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.117.17]) by fmsmga007.fm.intel.com with ESMTP; 06 Nov 2019 23:53:52 -0800 Date: Thu, 7 Nov 2019 15:49:49 +0800 From: Ye Xiaolong To: Yahui Cao Cc: Qiming Yang , Wenzhuo Lu , dev@dpdk.org, Qi Zhang , Beilei Xing Message-ID: <20191107074949.GD100445@intel.com> References: <20191105113655.71130-1-yahui.cao@intel.com> <20191105133721.18862-1-yahui.cao@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191105133721.18862-1-yahui.cao@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-dev] [PATCH v2] net/ice: fix FDIR tunnel profile existence check 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 11/05, Yahui Cao wrote: >If first rule is issued and then the second rule is issued with the same >input set as first rule's, FDIR driver can't find there is an identical >input set. > >Fixes: d5ea22e9f4a5 ("net/ice: configure HW FDIR rule") >Cc: beilei.xing@intel.com > >Signed-off-by: Yahui Cao >--- > drivers/net/ice/ice_fdir_filter.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c >index 736ccd54e..685383c1a 100644 >--- a/drivers/net/ice/ice_fdir_filter.c >+++ b/drivers/net/ice/ice_fdir_filter.c >@@ -646,7 +646,7 @@ ice_fdir_hw_tbl_conf(struct ice_pf *pf, struct ice_vsi *vsi, > if (!memcmp(ori_seg, seg, sizeof(*seg))) > return -EAGAIN; > } else { >- if (!memcmp(ori_seg, &seg[1], sizeof(*seg))) >+ if (!memcmp(&ori_seg[1], &seg[1], sizeof(*seg))) > return -EAGAIN; > } > >-- >2.17.1 > Applied to dpdk-next-net-intel. Thanks.