Re: [RFC 2/2] ethdev: add API to set process to primary or secondary

2022-12-05 Thread Stephen Hemminger
; > ; Ori Kam ; NBU-Contact- > > Thomas Monjalon (EXTERNAL) ; Ferruh Yigit > > ; Andrew Rybchenko > > ; dev@dpdk.org; Raslan Darawsheh > > > > Subject: Re: [RFC 2/2] ethdev: add API to set process to primary or > > secondary > > > > External email: Use c

RE: [RFC 2/2] ethdev: add API to set process to primary or secondary

2022-12-05 Thread Rongwei Liu
@dpdk.org; Raslan Darawsheh > > Subject: Re: [RFC 2/2] ethdev: add API to set process to primary or secondary > > External email: Use caution opening links or attachments > > > On Fri, 2 Dec 2022 03:27:38 + > Rongwei Liu wrote: > > > > > > > The st

Re: [RFC 2/2] ethdev: add API to set process to primary or secondary

2022-12-05 Thread Stephen Hemminger
On Fri, 2 Dec 2022 03:27:38 + Rongwei Liu wrote: > > > > The state of the devices and the system is really unstable if this fails. > > There is > > no rollback here. > > > Assume application is calling rte_eth_process_set_primary(false); > Once failed, call all preceding successful ports

RE: [RFC 2/2] ethdev: add API to set process to primary or secondary

2022-12-01 Thread Rongwei Liu
@dpdk.org; Raslan Darawsheh > > Subject: Re: [RFC 2/2] ethdev: add API to set process to primary or secondary > > External email: Use caution opening links or attachments > > > On Thu, 1 Dec 2022 10:20:05 +0200 > Rongwei Liu wrote: > > > +/** > > + * @warning

Re: [RFC 2/2] ethdev: add API to set process to primary or secondary

2022-12-01 Thread Stephen Hemminger
On Thu, 1 Dec 2022 10:20:05 +0200 Rongwei Liu wrote: > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice > + * > + * Set the rte_eth process to the primary or secondary role which affects > + * the flow rules offloading. It doesn't allow multiple processes to be

[RFC 2/2] ethdev: add API to set process to primary or secondary

2022-12-01 Thread Rongwei Liu
Users may want to change the DPDK process to different versions such as hot upgrade. There is a strong requirement to simplify the logic and shorten the traffic downtime as much as possible. This update introduces new rte_eth process role definitions: primary or secondary. The primary role means