[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241122093120.61806727@kernel.org>
Date: Fri, 22 Nov 2024 09:31:20 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Eric Dumazet <edumazet@...gle.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, pabeni@...hat.com,
jhs@...atatu.com, xiyou.wangcong@...il.com, jiri@...nulli.us
Subject: Re: [PATCH net] net_sched: sch_fq: don't follow the fast path if Tx
is behind now
On Fri, 22 Nov 2024 17:44:33 +0100 Eric Dumazet wrote:
> Interesting... I guess we could also call fq_check_throttled() to
> refresh a better view of the qdisc state ?
>
> But perhaps your patch is simpler. I guess it could be reduced to
>
> if (q->time_next_delayed_flow <= now + q->offload_horizon)
> return false;
>
> (Note the + q->offload_horizon)
>
> I do not think testing q->throttled_flows is strictly needed :
> If 0, then q->time_next_delayed_flow is set to ~0ULL.
Makes sense, I'll respin using your check tomorrow.
--
pw-bot: cr
Powered by blists - more mailing lists