Re: [PATCH v2] net/ice: fix ice dcf control thread crash

2023-03-01 Thread Kevin Traynor
On 13/02/2023 07:16, Ke Zhang wrote: The control thread accesses the hardware resources after the resources were released, resulting in a segment error. This commit fixes the bug by exiting thread before resource released. Please add the "Fixes: xyz" tag for the commit that introduced this bu

RE: [PATCH v2] net/ice: fix ice dcf control thread crash

2023-02-28 Thread Zhang, Ke1X
> -Original Message- > From: Thomas Monjalon > Sent: Monday, February 20, 2023 8:30 AM > To: Tyler Retzlaff ; Zhang, Ke1X > > Cc: dev@dpdk.org; Zhang, Qi Z ; Yang, Qiming > ; dev@dpdk.org; david.march...@redhat.com > Subject: Re: [PATCH v2] net/ice: fix ice

Re: [PATCH v2] net/ice: fix ice dcf control thread crash

2023-02-19 Thread Thomas Monjalon
16/02/2023 08:53, Zhang, Ke1X: > From: Thomas Monjalon > > 13/02/2023 08:16, Ke Zhang: > > > --- a/lib/eal/windows/include/pthread.h > > > +++ b/lib/eal/windows/include/pthread.h > > > +static inline void > > > +pthread_exit(__rte_unused void *__retval) { } > > > > Please don't add more shim laye

RE: [PATCH v2] net/ice: fix ice dcf control thread crash

2023-02-15 Thread Zhang, Ke1X
> -Original Message- > From: Thomas Monjalon > Sent: Tuesday, February 14, 2023 7:03 PM > To: Zhang, Ke1X > Cc: Zhang, Qi Z ; Yang, Qiming > ; dev@dpdk.org; Tyler Retzlaff > > Subject: Re: [PATCH v2] net/ice: fix ice dcf control thread crash > > 13/02/2

Re: [PATCH v2] net/ice: fix ice dcf control thread crash

2023-02-14 Thread Thomas Monjalon
13/02/2023 08:16, Ke Zhang: > --- a/lib/eal/windows/include/pthread.h > +++ b/lib/eal/windows/include/pthread.h > +static inline void > +pthread_exit(__rte_unused void *__retval) > +{ > +} Please don't add more shim layer. There is a new layer rte_thread_* in lib/eal/include/rte_thread.h

[PATCH v2] net/ice: fix ice dcf control thread crash

2023-02-12 Thread Ke Zhang
The control thread accesses the hardware resources after the resources were released, resulting in a segment error. This commit fixes the bug by exiting thread before resource released. Signed-off-by: Ke Zhang --- v2: add pthread_exit() for windows --- drivers/net/ice/ice_dcf.c | 4