X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=fhi_lib%2Flib%2Fapi%2Fxran_pkt_up.h;h=674b5841284bc6a8284486ea927e7588ffcb7264;hb=2de97529a4c5a1922214ba0e6f0fb84cacbd0bc7;hp=588d3e1d7fb0434b501e22112b43e72939def5d8;hpb=2fbf70096f64af622da983e88c5a64e90ad9bdbd;p=o-du%2Fphy.git diff --git a/fhi_lib/lib/api/xran_pkt_up.h b/fhi_lib/lib/api/xran_pkt_up.h index 588d3e1..674b584 100644 --- a/fhi_lib/lib/api/xran_pkt_up.h +++ b/fhi_lib/lib/api/xran_pkt_up.h @@ -1,6 +1,6 @@ /****************************************************************************** * -* Copyright (c) 2019 Intel. +* Copyright (c) 2020 Intel. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -153,6 +153,21 @@ struct xran_up_pkt_hdr struct data_section_hdr data_sec_hdr; } __rte_packed; +/** + ****************************************************************************** + * @ingroup xran_common_pkt + * + * @description + * Structure holds complete xran u-plane packet header with compression + * 3.1.1 Ethernet Encapsulation + *****************************************************************************/ +struct xran_up_pkt_hdr_comp +{ + struct xran_ecpri_hdr ecpri_hdr; /**< eCPRI Transport Header */ + struct radio_app_common_hdr app_hdr; /**< eCPRI Transport Header */ + struct data_section_hdr data_sec_hdr; /**< data section Header */ + struct data_section_compression_hdr data_comp_hdr; /** Compression Header */ +} __rte_packed; /** ****************************************************************************** @@ -164,10 +179,17 @@ struct xran_up_pkt_hdr *****************************************************************************/ struct eth_xran_up_pkt_hdr { - struct ether_hdr eth_hdr; + struct rte_ether_hdr eth_hdr; struct xran_up_pkt_hdr xran_hdr; }__rte_packed; +struct eth_xran_up_pkt_hdr_comp +{ + struct rte_ether_hdr eth_hdr; + struct xran_up_pkt_hdr_comp xran_hdr; +}__rte_packed; + + #ifdef __cplusplus } #endif