Re: [PATCH v5 1/3] lib: introduce dispatcher library

2023-10-11 Thread Mattias Rönnblom
On 2023-10-11 16:57, David Marchand wrote: On Mon, Oct 9, 2023 at 6:50 PM Mattias Rönnblom wrote: [snip] +static int +evd_set_service_runstate(struct rte_dispatcher *dispatcher, int state) +{ + int rc; + + rc = rte_service_component_runstate_set(dispatcher->service_id, +

Re: [PATCH v5 1/3] lib: introduce dispatcher library

2023-10-11 Thread David Marchand
On Mon, Oct 9, 2023 at 6:50 PM Mattias Rönnblom wrote: [snip] > +static int > +evd_set_service_runstate(struct rte_dispatcher *dispatcher, int state) > +{ > + int rc; > + > + rc = rte_service_component_runstate_set(dispatcher->service_id, > +

Re: [PATCH v5 1/3] lib: introduce dispatcher library

2023-10-09 Thread Mattias Rönnblom
On 2023-10-06 11:03, Thomas Monjalon wrote: 06/10/2023 10:46, David Marchand: On Thu, Oct 5, 2023 at 12:09 PM Mattias Rönnblom wrote: +static int +evd_lookup_handler_idx(struct rte_dispatcher_lcore *lcore, + const struct rte_event *event) Wrt DPDK coding tyle, indent is

Re: [PATCH v5 1/3] lib: introduce dispatcher library

2023-10-09 Thread Mattias Rönnblom
On 2023-10-06 10:46, David Marchand wrote: Hello Mattias, On Thu, Oct 5, 2023 at 12:09 PM Mattias Rönnblom wrote: + +deps += ['eventdev'] diff --git a/lib/dispatcher/rte_dispatcher.c b/lib/dispatcher/rte_dispatcher.c new file mode 100644 index 00..0e69db2b9b --- /dev/null +++ b/lib/dis

Re: [PATCH v5 1/3] lib: introduce dispatcher library

2023-10-06 Thread Thomas Monjalon
06/10/2023 10:46, David Marchand: > On Thu, Oct 5, 2023 at 12:09 PM Mattias Rönnblom > wrote: > > >> +static int > > >> +evd_lookup_handler_idx(struct rte_dispatcher_lcore *lcore, > > >> + const struct rte_event *event) > > > > > > Wrt DPDK coding tyle, indent is a single tab

Re: [PATCH v5 1/3] lib: introduce dispatcher library

2023-10-06 Thread David Marchand
Hello Mattias, On Thu, Oct 5, 2023 at 12:09 PM Mattias Rönnblom wrote: > >> + > >> +deps += ['eventdev'] > >> diff --git a/lib/dispatcher/rte_dispatcher.c > >> b/lib/dispatcher/rte_dispatcher.c > >> new file mode 100644 > >> index 00..0e69db2b9b > >> --- /dev/null > >> +++ b/lib/dispatch

Re: [PATCH v5 1/3] lib: introduce dispatcher library

2023-10-05 Thread Mattias Rönnblom
On 2023-10-05 10:36, David Marchand wrote: Hello Mattias, On Thu, Sep 28, 2023 at 9:36 AM Mattias Rönnblom wrote: The purpose of the dispatcher library is to help reduce coupling in an Eventdev-based DPDK application. In addition, the dispatcher also provides a convenient and flexible way fo

Re: [PATCH v5 1/3] lib: introduce dispatcher library

2023-10-05 Thread David Marchand
Hello Mattias, On Thu, Sep 28, 2023 at 9:36 AM Mattias Rönnblom wrote: > > The purpose of the dispatcher library is to help reduce coupling in an > Eventdev-based DPDK application. > > In addition, the dispatcher also provides a convenient and flexible > way for the application to use service cor

[PATCH v5 1/3] lib: introduce dispatcher library

2023-09-28 Thread Mattias Rönnblom
The purpose of the dispatcher library is to help reduce coupling in an Eventdev-based DPDK application. In addition, the dispatcher also provides a convenient and flexible way for the application to use service cores for application-level processing. Signed-off-by: Mattias Rönnblom Tested-by: Pe