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 22752A0524; Wed, 2 Jun 2021 10:17:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 92B0A4069F; Wed, 2 Jun 2021 10:17:52 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 0873540689; Wed, 2 Jun 2021 10:17:49 +0200 (CEST) IronPort-SDR: a9Xr5TBwMqFG2/kVChpE+ZRpGswKi/MIcKePVa+5JHFshNyJjzbFeQIWlogWtPEcJDZNVfjY6e JfzfYzNgdM5A== X-IronPort-AV: E=McAfee;i="6200,9189,10002"; a="203730430" X-IronPort-AV: E=Sophos;i="5.83,241,1616482800"; d="scan'208";a="203730430" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2021 01:17:48 -0700 IronPort-SDR: eYGe3Rcp/nVfiZAzkMy0C7fnZ95+JsXB6O6pJ63UYVqZTyBLg3KaEdCFiZA7e4H48Y96j1qO2g n3WQBbNNMJUg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,241,1616482800"; d="scan'208";a="479619529" Received: from dpdk-xuting-second.sh.intel.com ([10.67.116.193]) by orsmga001.jf.intel.com with ESMTP; 02 Jun 2021 01:17:46 -0700 From: Ting Xu To: dev@dpdk.org Cc: qi.z.zhang@intel.com, qiming.yang@intel.com, Ting Xu , stable@dpdk.org Date: Wed, 2 Jun 2021 16:21:04 +0800 Message-Id: <20210602082104.33681-1-ting.xu@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1] net/ice: fix wrong FDIR flow type for IPv4 fragment 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" When creating FDIR rule and parsing the pattern, if IPv4 fragment type is detected, the flow type is not changed to ICE_FLTR_PTYPE_FRAG_IPV4 from ICE_FLTR_PTYPE_NONF_IPV4_OTHER. It will cause profile confilict with other FDIR rules for IPv4 other type. Fixes: b7e8781de768 ("net/ice: support flow director for IP fragment packet") Cc: stable@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_fdir_filter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index 092c704503..5cba56918a 100644 --- a/drivers/net/ice/ice_fdir_filter.c +++ b/drivers/net/ice/ice_fdir_filter.c @@ -1780,6 +1780,7 @@ ice_fdir_parse_pattern(__rte_unused struct ice_adapter *ad, * ethertype, if the spec is for all valid * packet id, set ethertype into input set. */ + flow_type = ICE_FLTR_PTYPE_FRAG_IPV4; *input_set |= ICE_INSET_ETHERTYPE; input_set_o |= ICE_INSET_ETHERTYPE; } else if (ipv4_mask->hdr.packet_id == UINT16_MAX) { -- 2.17.1