X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fhi_lib%2Ftest%2Ftest_xran%2Fchain_tests.cc;fp=fhi_lib%2Ftest%2Ftest_xran%2Fchain_tests.cc;h=14d062dfabd2007a038106745ee31d186e96b196;hp=8631bdd5b97e8abb9be05b35500c1c52bdb718ac;hb=70d9d920dd4e575f085f1f1a9050fefd1c10e127;hpb=331df2273a6667941167c9bcc141a517369bdf43 diff --git a/fhi_lib/test/test_xran/chain_tests.cc b/fhi_lib/test/test_xran/chain_tests.cc index 8631bdd..14d062d 100644 --- a/fhi_lib/test/test_xran/chain_tests.cc +++ b/fhi_lib/test/test_xran/chain_tests.cc @@ -83,13 +83,13 @@ void xran_ut_rx_up_ul() /* call back functions */ -int send_mbuf_up(struct rte_mbuf *mbuf, uint16_t type) +int send_mbuf_up(struct rte_mbuf *mbuf, uint16_t type, uint16_t vf_id) { rte_pktmbuf_free(mbuf); return (1); } -int send_mbuf_cp_perf(struct rte_mbuf *mbuf, uint16_t type) +int send_mbuf_cp_perf(struct rte_mbuf *mbuf, uint16_t type, uint16_t vf_id) { rte_pktmbuf_free(mbuf); return (1); @@ -115,6 +115,11 @@ void utcp_fh_rx_callback(void *pCallbackTag, xran_status_t status) return; } +void utcp_fh_srs_callback(void *pCallbackTag, xran_status_t status) +{ + return; +} + void utcp_fh_rx_prach_callback(void *pCallbackTag, xran_status_t status) { rte_pause(); @@ -227,7 +232,7 @@ TEST_P(TestChain, CPlaneDLPerf) { xranlib->Init(&m_xranConf); xranlib->Open(send_mbuf_cp_perf, send_mbuf_up, - (void *)utcp_fh_rx_callback, (void *)utcp_fh_rx_prach_callback); + (void *)utcp_fh_rx_callback, (void *)utcp_fh_rx_prach_callback, (void *)utcp_fh_srs_callback); performance("C", module_name, xran_ut_tx_cp_dl); @@ -240,7 +245,7 @@ TEST_P(TestChain, CPlaneULPerf) { xranlib->Init(&m_xranConf); xranlib->Open(send_mbuf_cp_perf, send_mbuf_up, - (void *)utcp_fh_rx_callback, (void *)utcp_fh_rx_prach_callback); + (void *)utcp_fh_rx_callback, (void *)utcp_fh_rx_prach_callback, (void *)utcp_fh_srs_callback); performance("C", module_name, xran_ut_tx_cp_ul); @@ -261,7 +266,7 @@ TEST_P(TestChain, UPlaneDLPerf) /* need to disable CP to make U-Plane work without CP */ xranlib->apply_cpenable(false); xranlib->Open(send_mbuf_cp_perf, send_mbuf_up, - (void *)utcp_fh_rx_callback, (void *)utcp_fh_rx_prach_callback); + (void *)utcp_fh_rx_callback, (void *)utcp_fh_rx_prach_callback, (void *)utcp_fh_srs_callback); performance("C", module_name, xran_ut_tx_up_dl); @@ -285,7 +290,7 @@ TEST_P(TestChain, APlaneDLPerf) /* Enable CP by force to make UP work by CP's section information */ xranlib->apply_cpenable(true); xranlib->Open(send_mbuf_cp_perf, send_mbuf_up, - (void *)utcp_fh_rx_callback, (void *)utcp_fh_rx_prach_callback); + (void *)utcp_fh_rx_callback, (void *)utcp_fh_rx_prach_callback, (void *)utcp_fh_srs_callback); performance("C", module_name, xran_ut_tx_cpup_dl);