25/10/2023 17:37, Stephen Hemminger:
> On Wed, 25 Oct 2023 17:13:14 +0200
> Thomas Monjalon <tho...@monjalon.net> wrote:
> 
> >     case RTE_THREAD_PRIORITY_REALTIME_CRITICAL:
> > +           /*
> > +            * WARNING: Real-time busy loop takes priority on kernel 
> > threads,
> > +            *          making the system unstable.
> > +            *          There is also a known issue when using rte_ring.
> > +            */
> 
> I was thinking something like:
> 
>       static bool warned;
>       if (!warned) {
>               RTE_LOG(NOTICE, EAL, "Real time priority is unstable when 
> thread is polling without sleep\n");
>               warned = true;
>       }

I'm not sure about bothering users.
They can fear something is wrong even if the developer took care of it.
I think doc warnings for developers are more appropriate.
I've added notes in the API.


Reply via email to