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 86DF3A0C4B for ; Mon, 13 Sep 2021 10:32:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 49A4D4014F; Mon, 13 Sep 2021 10:32:33 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 188274014F for ; Mon, 13 Sep 2021 10:32:31 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10105"; a="307160907" X-IronPort-AV: E=Sophos;i="5.85,288,1624345200"; d="scan'208";a="307160907" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 01:32:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,288,1624345200"; d="scan'208";a="543061354" Received: from dpdk-liulingy-1.sh.intel.com ([10.67.118.194]) by FMSMGA003.fm.intel.com with ESMTP; 13 Sep 2021 01:32:29 -0700 From: Lingyu Liu To: build_sh@intel.com Cc: Lingyu Liu , stable@dpdk.org, Junfeng Guo Date: Mon, 13 Sep 2021 14:59:14 +0000 Message-Id: <20210913145914.311657-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 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_fdir.c b/drivers/net/iavf/iavf_fdir.c index 32b06044f2..22207a7ba1 100644 --- a/drivers/net/iavf/iavf_fdir.c +++ b/drivers/net/iavf/iavf_fdir.c @@ -1171,7 +1171,15 @@ 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