From: Jack Wang <163wangjack@gmail.com>
To: netdev-bot+sinfo@kernel.org
Cc: vinicius.gomes@intel.com, jhs@mojatatu.com,
xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
horms@kernel.org, victor@mojatatu.com, mhm.dawod@gmail.com,
esalomatkina@ispras.ru, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net v4] net/sched: cbs: perform rate conversions in signed 64-bit arithmetic
Date: Wed, 2 Dec 2026 16:28:31 +0800 [thread overview]
Message-ID: <CC823E5F-D642-4C58-8476-1B4352A27B91@gmail.com> (raw)
In-Reply-To: <179611553124.3305.1063742348769175720@kernel.org>
Thanks for mention this, I forget to describe the problem in my new version. As the version 1-3 cover, “cbs_set_port_rate() and cbs_change() multiply link rates and slope values by BYTES_PER_KBIT, an unsigned long constant. On 32-bit architectures, the multiplications therefore take place in 32-bit unsigned arithmetic before the results are assigned to s64 fields.” This is the main problem this series aiming to solve.
During v1-v3 the Sashikomention other problem I missed with.”q->idleslope” and “q->sendslope” will be tearing by 32-bit machine, I change idleslope and sendslope to atomic64_t type to solve this.Here is the main change reason for my patch.
Jamal Hadi Salim mention cbs is still have a watchdog problem. I try to solve in v2 and v3 and it did not work well. Considering Mohamed is do a patch relevant to this patch, I believe separating this is a better way. For watchdog issue, I will send another patch to deal with.
prev parent reply other threads:[~2026-12-02 8:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 8:54 Jack Wang
2026-12-01 8:58 ` netdev-bot+sinfo
2026-12-02 8:28 ` Jack Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CC823E5F-D642-4C58-8476-1B4352A27B91@gmail.com \
--to=163wangjack@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=esalomatkina@ispras.ru \
--cc=horms@kernel.org \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhm.dawod@gmail.com \
--cc=netdev-bot+sinfo@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=victor@mojatatu.com \
--cc=vinicius.gomes@intel.com \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®