]> git.droids-corp.org - dpdk.git/blobdiff - drivers/event/cnxk/cnxk_tim_evdev.c
event/cnxk: add timer cancel
[dpdk.git] / drivers / event / cnxk / cnxk_tim_evdev.c
index ecc952a6a7213809e58e5c06af12096890bbf0b3..62a15a4a1c0671d1988ba50e63ca24479e261407 100644 (file)
@@ -88,7 +88,15 @@ cnxk_tim_set_fp_ops(struct cnxk_tim_ring *tim_ring)
 #undef FP
        };
 
+       const rte_event_timer_arm_tmo_tick_burst_t arm_tmo_burst[2] = {
+#define FP(_name, _f1, flags) [_f1] = cnxk_tim_arm_tmo_tick_burst_##_name,
+               TIM_ARM_TMO_FASTPATH_MODES
+#undef FP
+       };
+
        cnxk_tim_ops.arm_burst = arm_burst[tim_ring->ena_dfb][prod_flag];
+       cnxk_tim_ops.arm_tmo_tick_burst = arm_tmo_burst[tim_ring->ena_dfb];
+       cnxk_tim_ops.cancel_burst = cnxk_tim_timer_cancel_burst;
 }
 
 static void