From: Phil Yang Date: Tue, 7 Jul 2020 15:54:52 +0000 (+0800) Subject: eventdev: remove redundant reset on timer cancel X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e84d9c62c671a502022a3a81358cac702d6f3a15;p=dpdk.git eventdev: remove redundant reset on timer cancel There is no thread will access these impl_opaque data after timer canceled. When new timer armed, it got refilled. So the cleanup process is unnecessary. Cc: stable@dpdk.org Signed-off-by: Phil Yang Reviewed-by: Dharmik Thakkar --- diff --git a/lib/librte_eventdev/rte_event_timer_adapter.c b/lib/librte_eventdev/rte_event_timer_adapter.c index 4ed3013821..aa01b4d9fc 100644 --- a/lib/librte_eventdev/rte_event_timer_adapter.c +++ b/lib/librte_eventdev/rte_event_timer_adapter.c @@ -1167,8 +1167,6 @@ swtim_cancel_burst(const struct rte_event_timer_adapter *adapter, rte_mempool_put(sw->tim_pool, (void **)timp); evtims[i]->state = RTE_EVENT_TIMER_CANCELED; - evtims[i]->impl_opaque[0] = 0; - evtims[i]->impl_opaque[1] = 0; rte_smp_wmb(); }