net/ice/base: support add HW profile for RSS raw flow
[dpdk.git] / drivers / event / cnxk / cn10k_worker.c
index 5dbae27..975a223 100644 (file)
@@ -62,55 +62,12 @@ cn10k_sso_hws_enq_fwd_burst(void *port, const struct rte_event ev[],
 }
 
 uint16_t __rte_hot
-cn10k_sso_hws_deq(void *port, struct rte_event *ev, uint64_t timeout_ticks)
+cn10k_sso_hws_ca_enq(void *port, struct rte_event ev[], uint16_t nb_events)
 {
        struct cn10k_sso_hws *ws = port;
 
-       RTE_SET_USED(timeout_ticks);
-
-       if (ws->swtag_req) {
-               ws->swtag_req = 0;
-               cnxk_sso_hws_swtag_wait(ws->base + SSOW_LF_GWS_WQE0);
-               return 1;
-       }
-
-       return cn10k_sso_hws_get_work(ws, ev);
-}
-
-uint16_t __rte_hot
-cn10k_sso_hws_deq_burst(void *port, struct rte_event ev[], uint16_t nb_events,
-                       uint64_t timeout_ticks)
-{
-       RTE_SET_USED(nb_events);
-
-       return cn10k_sso_hws_deq(port, ev, timeout_ticks);
-}
-
-uint16_t __rte_hot
-cn10k_sso_hws_tmo_deq(void *port, struct rte_event *ev, uint64_t timeout_ticks)
-{
-       struct cn10k_sso_hws *ws = port;
-       uint16_t ret = 1;
-       uint64_t iter;
-
-       if (ws->swtag_req) {
-               ws->swtag_req = 0;
-               cnxk_sso_hws_swtag_wait(ws->base + SSOW_LF_GWS_WQE0);
-               return ret;
-       }
-
-       ret = cn10k_sso_hws_get_work(ws, ev);
-       for (iter = 1; iter < timeout_ticks && (ret == 0); iter++)
-               ret = cn10k_sso_hws_get_work(ws, ev);
-
-       return ret;
-}
-
-uint16_t __rte_hot
-cn10k_sso_hws_tmo_deq_burst(void *port, struct rte_event ev[],
-                           uint16_t nb_events, uint64_t timeout_ticks)
-{
        RTE_SET_USED(nb_events);
 
-       return cn10k_sso_hws_tmo_deq(port, ev, timeout_ticks);
+       return cn10k_cpt_crypto_adapter_enqueue(ws->base + SSOW_LF_GWS_TAG,
+                                               ev->event_ptr);
 }