> -----Original Message----- > From: Stephen Hemminger <step...@networkplumber.org> > Sent: Wednesday, March 29, 2023 11:35 PM > To: Yan, Zhirun <zhirun....@intel.com> > Cc: dev@dpdk.org; jer...@marvell.com; kirankum...@marvell.com; > ndabilpu...@marvell.com; Liang, Cunming <cunming.li...@intel.com>; Wang, > Haiyue <haiyue.w...@intel.com> > Subject: Re: [PATCH v3 04/15] graph: add get/set graph worker model APIs > > On Wed, 29 Mar 2023 15:43:29 +0900 > Zhirun Yan <zhirun....@intel.com> wrote: > > > + > > +/** > > + * @warning > > + * @b EXPERIMENTAL: this API may change, or be removed, without prior > > +notice > > + * Set the graph worker model > > + * > > + * @note This function does not perform any locking, and is only safe to > > call > > + * before graph running. > > + * > > + * @param name > > + * Name of the graph worker model. > > + * > > + * @return > > + * 0 on success, -1 otherwise. > > + */ > > +inline int > > +rte_graph_worker_model_set(enum rte_graph_worker_model model) { > > + if (model >= RTE_GRAPH_MODEL_LIST_END) > > + goto fail; > > + > > + RTE_PER_LCORE(worker_model) = model; > > + return 0; > > + > > +fail: > > + RTE_PER_LCORE(worker_model) = RTE_GRAPH_MODEL_DEFAULT; > > + return -1; > > +} > > + > > Once again, this doesn't have to be inline, could be a real API. Thanks, I will remove inline in next version.
- [PATCH v2 13/15] graph: add stats for corss-core dispatc... Zhirun Yan
- [PATCH v2 14/15] examples/l3fwd-graph: introduce multico... Zhirun Yan
- [PATCH v2 15/15] doc: update multicore dispatch model in... Zhirun Yan
- [PATCH v3 00/15] graph enhancement for multi-core dispat... Zhirun Yan
- [PATCH v3 01/15] graph: rename rte_graph_work as co... Zhirun Yan
- [PATCH v3 02/15] graph: split graph worker into com... Zhirun Yan
- [PATCH v3 03/15] graph: move node process into inli... Zhirun Yan
- Re: [PATCH v3 03/15] graph: move node process i... Stephen Hemminger
- Re: [PATCH v3 03/15] graph: move node proce... Jerin Jacob
- [PATCH v3 04/15] graph: add get/set graph worker mo... Zhirun Yan
- RE: [PATCH v3 04/15] graph: add get/set graph w... Yan, Zhirun
- [PATCH v3 05/15] graph: introduce graph node core a... Zhirun Yan
- [PATCH v3 06/15] graph: introduce graph bind unbind... Zhirun Yan
- [PATCH v3 07/15] graph: introduce graph clone API f... Zhirun Yan
- [PATCH v3 08/15] graph: add struct for stream movin... Zhirun Yan
- [PATCH v3 09/15] graph: introduce stream moving cro... Zhirun Yan
- [PATCH v3 10/15] graph: enable create and destroy g... Zhirun Yan
- [PATCH v3 11/15] graph: introduce graph walk by cro... Zhirun Yan
- [PATCH v3 12/15] graph: enable graph multicore disp... Zhirun Yan
- [PATCH v3 13/15] graph: add stats for cross-core di... Zhirun Yan
- [PATCH v3 14/15] examples/l3fwd-graph: introduce mu... Zhirun Yan