]> git.droids-corp.org - dpdk.git/blobdiff - drivers/event/octeontx/timvf_worker.c
event/octeontx: add option to use fpavf as chunk pool
[dpdk.git] / drivers / event / octeontx / timvf_worker.c
index 02e17b6f5bc07e5a34afddf8f802cbefca8f0879..e681bc6b8cce756c240400815804a6e5f2213031 100644 (file)
@@ -191,7 +191,10 @@ timvf_timer_arm_tmo_brst_stats(const struct rte_event_timer_adapter *adptr,
 }
 
 void
-timvf_set_chunk_refill(struct timvf_ring * const timr)
+timvf_set_chunk_refill(struct timvf_ring * const timr, uint8_t use_fpa)
 {
-       timr->refill_chunk = timvf_refill_chunk_generic;
+       if (use_fpa)
+               timr->refill_chunk = timvf_refill_chunk_fpa;
+       else
+               timr->refill_chunk = timvf_refill_chunk_generic;
 }