/* 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);
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();
{
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);
{
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);
/* 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);
/* 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);