o-du/phy
Intel O-RAN/X-RAN Generated Doxygen Documentation
|
This file provides the definitions for Transport layer (eCPRI) API. More...
Go to the source code of this file.
Data Structures | |
struct | xran_eaxc_info |
struct | xran_recv_packet_info |
Functions | |
int | xran_get_ecpri_hdr_size (void) |
return eCPRI header size without eCPRI common header More... | |
void | xran_update_ecpri_payload_size (struct rte_mbuf *mbuf, int size) |
modify the payload size of eCPRI header in xRAN packet More... | |
uint16_t | xran_compose_cid (uint8_t CU_Port_ID, uint8_t BandSector_ID, uint8_t CC_ID, uint8_t Ant_ID) |
Compose ecpriRtcid/ecpriPcid. More... | |
void | xran_decompose_cid (uint16_t cid, struct xran_eaxc_info *result) |
Decompose ecpriRtcid/ecpriPcid. More... | |
int | xran_build_ecpri_hdr (struct rte_mbuf *mbuf, uint8_t CC_ID, uint8_t Ant_ID, uint8_t seq_id, struct xran_ecpri_hdr **ecpri_hdr) |
Build ECPRI header and returns added length. More... | |
int | xran_parse_ecpri_hdr (struct rte_mbuf *mbuf, struct xran_ecpri_hdr **ecpri_hdr, struct xran_recv_packet_info *pkt_info) |
Parse ECPRI header. More... | |
This file provides the definitions for Transport layer (eCPRI) API.
Definition in file xran_transport.h.
int xran_build_ecpri_hdr | ( | struct rte_mbuf * | mbuf, |
uint8_t | CC_ID, | ||
uint8_t | Ant_ID, | ||
uint8_t | seq_id, | ||
struct xran_ecpri_hdr ** | ecpri_hdr | ||
) |
Build ECPRI header and returns added length.
mbuf | The pointer of the packet buffer to be parsed |
CC_ID | Component Carrier ID for this C-Plane message |
Ant_ID | Antenna ID(RU Port ID) for this C-Plane message |
seq_id | Sequence ID for this C-Plane message |
ecpri_hdr | The pointer to ECPRI header |
Definition at line 142 of file xran_transport.c.
uint16_t xran_compose_cid | ( | uint8_t | CU_Port_ID, |
uint8_t | BandSector_ID, | ||
uint8_t | CC_ID, | ||
uint8_t | Ant_ID | ||
) |
Compose ecpriRtcid/ecpriPcid.
CU_Port_ID | CU Port ID |
BanbSector_ID | Band Sector ID |
CC_ID | Component Carrier ID |
Ant_ID | RU Port ID (antenna ID) |
Definition at line 65 of file xran_transport.c.
void xran_decompose_cid | ( | uint16_t | cid, |
struct xran_eaxc_info * | result | ||
) |
Decompose ecpriRtcid/ecpriPcid.
cid | composed ecpriRtcid/ecpriPcid (network byte order) |
result | the pointer of the structure to store decomposed values |
Definition at line 89 of file xran_transport.c.
int xran_get_ecpri_hdr_size | ( | void | ) |
return eCPRI header size without eCPRI common header
Definition at line 49 of file xran_transport.c.
int xran_parse_ecpri_hdr | ( | struct rte_mbuf * | mbuf, |
struct xran_ecpri_hdr ** | ecpri_hdr, | ||
struct xran_recv_packet_info * | pkt_info | ||
) |
Parse ECPRI header.
mbuf | The pointer of the packet buffer to be parsed |
ecpri_hdr | The pointer to ECPRI header |
pkt_info | The pointer of sturcture to store the information from header |
Definition at line 192 of file xran_transport.c.
|
inline |
modify the payload size of eCPRI header in xRAN packet
mbuf | Initialized rte_mbuf packet which has eCPRI header already |
size | payload size to be updated |
Definition at line 113 of file xran_transport.c.