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 7C8F2A0C4D for ; Wed, 1 Sep 2021 12:15:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D4C34013F; Wed, 1 Sep 2021 12:15:27 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 552134013F for ; Wed, 1 Sep 2021 12:15:25 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10093"; a="279714440" X-IronPort-AV: E=Sophos;i="5.84,369,1620716400"; d="scan'208";a="279714440" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2021 03:15:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,369,1620716400"; d="scan'208";a="510322601" Received: from dpdk-liulingy-1.sh.intel.com ([10.67.118.194]) by orsmga001.jf.intel.com with ESMTP; 01 Sep 2021 03:15:23 -0700 From: Lingyu Liu To: build_sh@intel.com Cc: Lingyu Liu , stable@dpdk.org, Junfeng Guo Date: Wed, 1 Sep 2021 16:43:08 +0000 Message-Id: <20210901164308.257948-1-lingyu.liu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [DPDK] net/iavf: fix QFI fields of GTPU UL and DL for FDIR X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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" Fix QFI fields matching of GTPU UL/DL for FDIR. Fixes: 78e8a87f6324 ("net/iavf: fix GTPU UL and DL support for flow director") Cc: stable@dpdk.org Signed-off-by: Junfeng Guo Signed-off-by: Lingyu Liu --- drivers/net/iavf/iavf_fdir.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_fdir.c b/drivers/net/iavf/iavf_fdir.c index 32b06044f2..134f887965 100644 --- a/drivers/net/iavf/iavf_fdir.c +++ b/drivers/net/iavf/iavf_fdir.c @@ -1171,7 +1171,12 @@ iavf_fdir_parse_pattern(__rte_unused struct iavf_adapter *ad, if (gtp_psc_spec && gtp_psc_mask) { if (gtp_psc_mask->qfi == UINT8_MAX) { input_set |= IAVF_INSET_GTPU_QFI; - VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, GTPU_EH, QFI); + if (gtp_psc_spec->pdu_type == IAVF_GTPU_EH_UPLINK) + VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, GTPU_UP, QFI); + else if (gtp_psc_spec->pdu_type == IAVF_GTPU_EH_DWLINK) + VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, GTPU_DWN, QFI); + else + VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, GTPU_EH, QFI); } rte_memcpy(hdr->buffer, gtp_psc_spec, -- 2.25.1