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 EE577A09E9; Mon, 14 Dec 2020 07:52:08 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D312D72E8; Mon, 14 Dec 2020 07:51:52 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 929CB37B7 for ; Mon, 14 Dec 2020 07:51:49 +0100 (CET) IronPort-SDR: /ajZQhlOHyrjDfweL9wddy4yHSCJRFh0FstRDprKVZhb+v+XmqLE2Goph9m4idzc8ZgjG3/Oh9 F8GQ9pJGIu/w== X-IronPort-AV: E=McAfee;i="6000,8403,9834"; a="236251084" X-IronPort-AV: E=Sophos;i="5.78,417,1599548400"; d="scan'208";a="236251084" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2020 22:51:48 -0800 IronPort-SDR: 25KZCC61ky0REXSKGlAShpRhUnZuWrUeOus5+aLyEHXuU84iwmTcjJXrDhm40rFE8jD0y7h/X2 3M/jaQAatG1Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,417,1599548400"; d="scan'208";a="367140914" Received: from dpdk-junfengguo-v3.sh.intel.com ([10.67.119.146]) by orsmga008.jf.intel.com with ESMTP; 13 Dec 2020 22:51:46 -0800 From: Junfeng Guo To: qi.z.zhang@intel.com, jingjing.wu@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, junfeng.guo@intel.com, simei.su@intel.com, yahui.cao@intel.com Date: Mon, 14 Dec 2020 14:49:09 +0800 Message-Id: <20201214064913.2306802-2-junfeng.guo@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201214064913.2306802-1-junfeng.guo@intel.com> References: <20201214064913.2306802-1-junfeng.guo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/5] common/iavf: add proto hdr flds support for eCPRI 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" Add eCPRI header and its field selectors, including MSG_TYPE, PCID and RTCID. Since the offset of PCID is same as RTCID, we just add one MACRO for these two fields. For MSG Type 0, ecpriRtcid/ecpriPcid field within the eCPRI header will be extracted to Field Vector for FDIR and RSS. SPEC for eCPRI: http://www.cpri.info/downloads/eCPRI_v_2.0_2019_05_10c.pdf Signed-off-by: Junfeng Guo --- drivers/common/iavf/virtchnl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index b931da61e5..fcbaa31fa8 100644 --- a/drivers/common/iavf/virtchnl.h +++ b/drivers/common/iavf/virtchnl.h @@ -890,6 +890,7 @@ enum virtchnl_proto_hdr_type { VIRTCHNL_PROTO_HDR_AH, VIRTCHNL_PROTO_HDR_PFCP, VIRTCHNL_PROTO_HDR_GTPC, + VIRTCHNL_PROTO_HDR_ECPRI, }; /* Protocol header field within a protocol header. */ @@ -970,6 +971,10 @@ enum virtchnl_proto_hdr_field { /* GTPC */ VIRTCHNL_PROTO_HDR_GTPC_TEID = PROTO_HDR_FIELD_START(VIRTCHNL_PROTO_HDR_GTPC), + /* ECPRI */ + VIRTCHNL_PROTO_HDR_ECPRI_MSG_TYPE = + PROTO_HDR_FIELD_START(VIRTCHNL_PROTO_HDR_ECPRI), + VIRTCHNL_PROTO_HDR_ECPRI_PC_RTC_ID, }; struct virtchnl_proto_hdr { -- 2.25.1