[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAM0EoM=6353sFS5dc81Gh6-86YK3rWQq5OUUV3Sumw1-BXKwnw@mail.gmail.com>
Date: Mon, 11 Aug 2025 00:44:36 -0400
From: Jamal Hadi Salim <jhs@...atatu.com>
To: lkml-xx-15438@...werbittewas.de
Cc: netdev@...r.kernel.org, Cong Wang <xiyou.wangcong@...il.com>,
Jiri Pirko <jiri@...nulli.us>, Victor Nogueira <victor@...atatu.com>,
Pedro Tammela <pctammela@...atatu.com>
Subject: Re: problems with hfsc since 5.10.238-patches in sched_hfsc.c
Hi,
On Sat, Aug 9, 2025 at 4:13 PM <lkml-xx-15438@...werbittewas.de> wrote:
>
> hi.
>
> hopefully the right list for this problem, else please tell me the right
> one.
>
> Problem:
> after updating to 5.10.238 (manually compiled) hfsc is malfunctioning here.
> after a long time with noch changes and no problems, most packages are
> dropped without notice.
>
> after some tries we've identified the patches
>
> - https://lore.kernel.org/all/20250425220710.3964791-3-victor@mojatatu.com/
>
> and
>
> -
> https://lore.kernel.org/all/20250522181448.1439717-2-pctammela@mojatatu.com/
>
> which seems to lead to misbehaviour.
>
>
> by changing the line in hfsc_enqueue()
>
> "if (first && !cl_in_el_or_vttree(cl)) {"
>
> back to
>
> "if (first) {"
>
> all went well again.
>
>
> if it matters: we're using a simple net-ns-container for
> forwarding/scheduling the local dsl-line
>
>
> maybe we're using a config of hfsc, which is not ok (but we're doing
> this over several years)
>
> our hfsc-init is like:
>
>
> /sbin/tc qdisc add dev eth0 root handle 1: hfsc default 14
>
> /sbin/tc class add dev eth0 parent 1: classid 1:10 hfsc ls m2 36000kbit
> ul m2 36000kbit
>
> /sbin/tc class add dev eth0 parent 1:10 classid 1:14 hfsc ls m1
> 36000kbit d 10000ms m2 30000kbit ul m1 30000kbit d 10000ms m2 25000kbit
>
> (normally there are further lines, but above calls are sufficant to
> either forward the packets before .238 or let them drop with .238 or
> later. we're using an old tc (iproute2-5.11.0) on this system.
>
>
> so, it would be nice, if someone can tell us, why the above
> hfsc-init-calls are bad, or if they're ok and the changes in 5.10.238
> have side-effects, which lead to this behaviour.
>
>
Please retry with the latest 5.10.xx since it seems some patches were
left out in the backport. And if that still exhibits this problem try
the latest 6.17 net tree because it will help isolate if the issue is
only with 5.10.x.
If the problem persists please share your script/netns setup. And in
the future please Cc the stakeholders. It makes it easier to help.
For the record, trying what you just described with kernel 5.10.238
and iproute2 5.11.0 didnt recreate the issue. Basically:
Creating a netns, running your commands, pings from the netns and
netcat.. It all worked fine, no drops.
cheers,
jamal
> thanks a lot.
>
> regards
>
> x.
>
Powered by blists - more mailing lists