[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250407121514.GE395307@horms.kernel.org>
Date: Mon, 7 Apr 2025 13:15:14 +0100
From: Simon Horman <horms@...nel.org>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: netdev@...r.kernel.org, jhs@...atatu.com, jiri@...nulli.us,
victor@...atatu.com, Gerrard Tai <gerrard.tai@...rlabs.sg>
Subject: Re: [Patch net v2 02/11] sch_drr: make drr_qlen_notify() idempotent
On Thu, Apr 03, 2025 at 02:10:24PM -0700, Cong Wang wrote:
> drr_qlen_notify() always deletes the DRR class from its active list
> with list_del(), therefore, it is not idempotent and not friendly
> to its callers, like fq_codel_dequeue().
>
> Let's make it idempotent to ease qdisc_tree_reduce_backlog() callers'
> life. Also change other list_del()'s to list_del_init() just to be
> extra safe.
>
> Reported-by: Gerrard Tai <gerrard.tai@...rlabs.sg>
> Signed-off-by: Cong Wang <xiyou.wangcong@...il.com>
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists