From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.176 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796200133; b=nqlI85/MkA/rj6gLW5SUxujL9S2tIoUV9PF6NqHPh/6yGtyR3HyKbsdEnxaBHYN3djLk vMOwoqb+NpnothHQQIzcJV0lFrMJA/4iHjhtHT27gt/AeIMQkhdzHJvrI4y5q69Q3htFM 3DQDZY76LzWvUeZFVMExykfEKuVyI8N9AC6Nw6cXNifhCJlD2jWYTHLMTVp7o+pmV8wxW ua4jYpiBlS+3PzXpbMmM8+lMR/DMV+i6lUeyj2g9/2sWg1aRZ7gpE8BzIfDpsM9C8vL1w TAC/wu/1jx5D4lVWS/qlzX5kyAHTId1sf4jMFzjG5ixF4810A7UiZD0m8XHljGctY7A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796200133; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; bh=poEPzwL/i93O3nU8S0usT6ZrP3Z2r7ggZAQkYleXpv4=; b=a9W49+NbffFTS2XMAhn7yPkmy+iw8u+Q2Xyd5yZQb9FgugA+c0cnt2mrNxvtBuTqNITw 9uvEYdItIL64+RMd6Jt5tVEsqVpgCXn+KbJF9ZZ3kx55UtzeHRBsVFH/FQyp9rY7T4Vko iqp68Zt/juKjfNRSW/L4A2JqWeV4kZ5Yh3gxKdu3qptJ/vAAltJCn4eIumEccdQygEY7g jw2RQN0CZvPJ/xztQCD859MqqTN0P1bmFC+XeDKvDYAHVq11tpj9kg/KI79/n8L9WFweF bjU0YhTv3qb9giB6PQuZHDIiXi6MvBRct9wHjyRqpJEuoB5tx3N6cdELfcpR8JzTfZg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=z7ZfHXyM; arc=none smtp.remote-ip=209.85.222.176 Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18890606A31A for ; Wed, 2 Dec 2026 08:28:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 18890606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=z7ZfHXyM Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-94961ed97bcso1243325885a.1 for ; Wed, 02 Dec 2026 00:28:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796200132; x=1796804932; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=poEPzwL/i93O3nU8S0usT6ZrP3Z2r7ggZAQkYleXpv4=; b=z7ZfHXyMeRaJ0LdO4VpVv4kjRE5swV28xxszhRjFvRdqPWaMe73kBp57GkGGXpykkW yX/PrupB0ruIRelYUhEhzUzzflrgNZcg1FOT2lhfMIQ2CPPZg+nofP04KxmcaHVXfKDm hCXLNpTYucQvEmpHNe0WvWwea9enkbRp7V+/JvJbORln6Zz1+v6qw/PyTHSq2RGJL2Wd X4h8vDjxBbboX0S7zeJkAvnAdtbYCfeqNCGhdA19QZSszj4vqIrV0qiY/XvbrHdWnUbG 4/IH9ua1sklI0vh/bNg0WuzvQIlOHjE7KwwQTe9BFi1nrW1ZPsyljbnJPCHTEAc+uPUq B1sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796200132; x=1796804932; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=poEPzwL/i93O3nU8S0usT6ZrP3Z2r7ggZAQkYleXpv4=; b=Cba5A0S32qdbou1rPquAnS+lKc9itte3n5gjtSHTvYlcEHs/IimVtXc/Dwv4sUyxjG 14yYEkN4mGa5Q8I8vIPC7ixiaB35XvH+xSOpex33VmQ43MS8tEZiYvTkXce11ttkb8Ef v3xO7WCybVKzBr4L07B63TZHRqaaCKAmKzWd5YWtzlvqgpxOqQV3udQ4YfY0fDYI8k2C ck6FGm6gFNKK4uv5Gw32By1dRqKkd04j3ooNEpQgQ9+u7KFdjY7qVt91f19cnsBI10FU LUrGK68nUcaVBG0z5YGCFanbGXEyZtf5vvhLkNomzvFC4Zzg+9PQtFbxgm1uh/RmztfD q9GA== X-Forwarded-Encrypted: i=1; AL+hErF/DFtkBsOkkzld8wY4HeTfyspHa5uYU6sVcCDg/m15g+nYYUrrzb3dqbsZq46iDOfCUwvpQ8V+U82jbuM=@vger.kernel.org X-Gm-Message-State: APuU4Z9IqMc8EC58nSNSd+1y5wV/qf99X84WQZDcm6WvSVnUFLgTTTkT CLxUSw1J+Fu7qeUNPrTMSVxmi3POb5+ofAK7NWyobG78PyJcI8OXC8bF X-Gm-Gg: AZFdTZeNuNgVgTT68fWcaOHAQLblvA44ZJqnh04Iw1VucWNN8w+YjziSLzrtzcyaTax aSU1Lwv5kkNJLqYaJ8KtRLHdhEtmYLqe5epaWS6JPfNaV86hQpaoHALiQrPgzvVdxxGFs/gCLbY NsQtqaHU0ALvjPPIcVljlu2NhNnN510WZLtTnusWiT6/DH7r9qydz/ZzstdPKP0hq7e0t4JXrBJ I6dECkReq5qbIerjpOA48VWT6c8HxxS3EnVKi0wg5/iXRwuAKTAXfqOEuUqkeTB6fJV3ddgpqpd KPGNZW0qMTnI2jsZ/p36mQmZJjZyDFF6WDwgQcOVOQrep6yqvoHwnGIgqK111ZXqCDGw3LvGKpv cevr6tUvlreQqFKvLQIxbFey0Cye6vg4jCs5xDk2tOgafAg3qhwtLOy99Vg9uKxA49wPrnxyg0y 7XEWFfGN6Aylxc6QAlOlqZNaiePpaX97fnqjCg73tCzEMNjWGcSO/M931FIYxd1nEW+Td5y/Hog LwwuSvClB3frWeUDDcxV3AotnTC2ZrTwF36xcLj1JAJQVyNhPnFcWx/aTEYf0V4SE7CVqPdKGpQ NMiYUIm/pak75r40912Q/4h+Retb9hMASw== X-Received: by 2002:a05:620a:649a:b0:949:a690:e658 with SMTP id af79cd13be357-949bac81583mr6510062685a.77.1796200132196; Wed, 02 Dec 2026 00:28:52 -0800 (PST) Received: from smtpclient.apple ([45.11.230.80]) by smtp.gmail.com with ESMTPSA id af79cd13be357-949bb031601sm3022954685a.6.2026.12.02.00.28.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Dec 2026 00:28:51 -0800 (PST) Content-Type: text/plain; charset=utf-8 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: [PATCH net v4] net/sched: cbs: perform rate conversions in signed 64-bit arithmetic From: Jack Wang <163wangjack@gmail.com> In-Reply-To: <179611553124.3305.1063742348769175720@kernel.org> Date: Wed, 2 Dec 2026 16:28:31 +0800 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 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20261201085406.228-1-163wangjack@gmail.com> <179611553124.3305.1063742348769175720@kernel.org> To: netdev-bot+sinfo@kernel.org X-Mailer: Apple Mail (2.3864.600.51.1.1) Thanks for mention this, I forget to describe the problem in my new = version. As the version 1-3 cover, =E2=80=9Ccbs_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.=E2=80=9D This is the main problem this = series aiming to solve. During v1-v3 the Sashikomention other problem I missed = with.=E2=80=9Dq->idleslope=E2=80=9D and =E2=80=9Cq->sendslope=E2=80=9D = 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.