X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fhi_lib%2Flib%2Fsrc%2Fxran_common.h;fp=fhi_lib%2Flib%2Fsrc%2Fxran_common.h;h=694e711a969aca07a82548f4edd73c52eb7ed86e;hp=d5d58bf68a61c2d1052a09c97752b245e047f63c;hb=70d9d920dd4e575f085f1f1a9050fefd1c10e127;hpb=331df2273a6667941167c9bcc141a517369bdf43 diff --git a/fhi_lib/lib/src/xran_common.h b/fhi_lib/lib/src/xran_common.h index d5d58bf..694e711 100644 --- a/fhi_lib/lib/src/xran_common.h +++ b/fhi_lib/lib/src/xran_common.h @@ -166,7 +166,7 @@ struct cb_elem_entry{ }; /* Callback function to send mbuf to the ring */ -typedef int (*xran_ethdi_mbuf_send_fn)(struct rte_mbuf *mb, uint16_t ethertype); +typedef int (*xran_ethdi_mbuf_send_fn)(struct rte_mbuf *mb, uint16_t ethertype, uint16_t vf_id); /* * manage one cell's all Ethernet frames for one DL or UL LTE subframe @@ -275,16 +275,9 @@ struct xran_device_ctx xran_ethdi_mbuf_send_fn send_cpmbuf2ring; /**< callback to send mbufs of C-Plane packets to the ring */ xran_ethdi_mbuf_send_fn send_upmbuf2ring; /**< callback to send mbufs of U-Plane packets to the ring */ + uint32_t pkt_proc_core_id; /**< core used for processing DPDK timer cb */ }; -extern long rx_counter; -extern long tx_counter; -extern long tx_bytes_counter; -extern long rx_bytes_counter; -extern long tx_bytes_per_sec; -extern long rx_bytes_per_sec; - - extern const xRANPrachConfigTableStruct gxranPrachDataTable_sub6_fdd[XRAN_PRACH_CONFIG_TABLE_SIZE]; extern const xRANPrachConfigTableStruct gxranPrachDataTable_sub6_tdd[XRAN_PRACH_CONFIG_TABLE_SIZE]; extern const xRANPrachConfigTableStruct gxranPrachDataTable_mmw[XRAN_PRACH_CONFIG_TABLE_SIZE]; @@ -363,10 +356,13 @@ uint8_t xran_get_seqid(void *pHandle, uint8_t dir, uint8_t cc_id, uint8_t ant_id int32_t ring_processing_func(void); int xran_init_prach(struct xran_fh_config* pConf, struct xran_device_ctx * p_xran_dev_ctx); void xran_updateSfnSecStart(void); - +uint32_t xran_slotid_convert(uint16_t slot_id, uint16_t dir); struct cb_elem_entry *xran_create_cb(XranSymCallbackFn cb_fn, void *cb_data); int xran_destroy_cb(struct cb_elem_entry * cb_elm); +uint16_t xran_map_ecpriRtcid_to_vf(int32_t dir, int32_t cc_id, int32_t ru_port_id); +uint16_t xran_map_ecpriPcid_to_vf(int32_t dir, int32_t cc_id, int32_t ru_port_id); + #ifdef __cplusplus } #endif