46 test_eth_mbuf_pool = rte_pktmbuf_pool_create(
"mempool",
NUM_MBUFS,
50 const int buffer_size = 9600;
51 test_buffer = (
struct rte_mbuf*)rte_pktmbuf_alloc(test_eth_mbuf_pool);
53 iq_offset = rte_pktmbuf_mtod(test_buffer,
char * );
54 iq_offset = iq_offset +
sizeof(
struct ether_hdr) +
55 sizeof (struct xran_ecpri_hdr) +
56 sizeof (struct radio_app_common_hdr) +
57 sizeof(struct data_section_hdr);
63 rte_pktmbuf_free(test_buffer);
69 uint16_t section_id = 0;
72 uint8_t subframe_id = 0;
74 uint8_t symbol_no = 0;
78 uint8_t RU_Port_ID = 0;
87 (
struct rb_map *)iq_offset,
void fucntional_dl(F function, int32_t *request, int32_t *response)
#define MBUF_POOL_ELEMENT
struct rte_mbuf * test_buffer
static unsigned get_number_of_cases(const std::string &type)
void performance(const std::string &isa, const std::string &module_name, F function, Args ... args)
Run performance test case for a given function.
int32_t prepare_symbol_ex(enum xran_pkt_dir direction, uint16_t section_id, struct rte_mbuf *mb, struct rb_map *data, uint8_t compMeth, uint8_t iqWidth, const enum xran_input_byte_order iq_buf_byte_order, uint8_t frame_id, uint8_t subframe_id, uint8_t slot_id, uint8_t symbol_no, int prb_start, int prb_num, uint8_t CC_ID, uint8_t RU_Port_ID, uint8_t seq_id, uint32_t do_copy)
This file has all definitions for the Ethernet Data Interface Layer.
void init_test(const std::string &type)
Defines section in the conf.json that is used to load parameters from.
XRAN layer common functionality for both lls-CU and RU as well as C-plane and U-plane.
This file provides public interface to xRAN Front Haul layer implementation as defined in the ORAN-WG...
std::vector< unsigned > get_sequence(const unsigned number)
For a given number return sequence of number from 0 to number - 1.
struct rte_mempool * test_eth_mbuf_pool