From: Junfeng Guo Date: Mon, 14 Dec 2020 06:49:09 +0000 (+0800) Subject: common/iavf: support eCPRI protocol header fields X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=37ab8bdcf099cdeb90a2f13517338bd2804f4616;p=dpdk.git common/iavf: support eCPRI protocol header fields 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 Acked-by: Qi Zhang --- 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 {