On Thu, Apr 13, 2023 at 12:24 PM Mattias Rönnblom <mattias.ronnb...@ericsson.com> wrote: > > > void > rte_event_return_new_credits(...); > > Thoughts?
I see the following cons on this approach. # Adding multiple APIs in fast path to driver layer may not performance effective solution. # At least for cnxk HW, credits are for device, not per port. So cnxk HW implementation can not use this scheme. Alternative solution could be, adding new flag for rte_enqueue_new_burst(), where drivers waits until credit is available to reduce the application overhead and support in different HW implementations if this use case critical. #define RTE_EVENT_FLAG_WAIT_TILL_CREDIT_AVILABLE (UINT32_C(1) << 0) > > Best regards, > Mattias