From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.200 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796050980; b=NdNLV/dmOCBTsfYL5QUIOl1rgHq+2tSBszCONjRGhTB8lf+XK/NBZrQHC1iNUf06KyEn IHSKdxlFz7h7sAeAoVQCMGu0JhXZMWTsL1CBrZEH0Jp906vGXMjh0K2LtduARTuinvI5L PczMKLNhL4TVmy3pL4WCuXehVK5QTCjwPY2lu/mRVGxwOP9kcf3HJpDtumuu7dpcHsbbj EPFaw7gXWCaSetzqCFpeaJH1iWWqCmxkPG1Ro7yERi0CXqCrnbMGXnX8YEFD4qHcQRwJv Tv4RbVRt47mLRLg2Ih+IBC1Q+5JjIfZOEgW2nes52Zzhq9H+VGqFkToBER37eEvmOig== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796050980; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Received:Date:In-Reply-To:Mime-Version: References:Message-ID:Subject:From:To:Cc:Content-Type; bh=nmqp9LjyMDN8GSrlISVHP0LA4kMdLXM8zVEeMHBIocc=; b=mnhFAwuRo0WxBVsW9lRmGO79MOdjuJdzkqUPc+iG8tRf/o6UsGsz2cZ2xNElqt7u+L0/ UnO8d7Mn3aug5/zZbGoQkEFbmskRmP75DRP0IGnnYlwzcND6/ELnlFjlsBfoHC9aod5qv rtTw4Cz6aWszbc69sniNjKakyGKtvWsFB+8GBfYLP18imBn/9bHF8RreOp4VTz5s1hCkI LHk5lFcHngMJI+BMCEe5lKWPZr3SpskTc3wU+IJW9o4Scp+u+4X6/MgNIijozvwJw7tXq Slj4AzYOE75zkGuBQgD3cWHlasYiMq3uaWp0aUF6kAdjSWsGh7k35oRJ2KgpKzVZk6A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=JHich13j; arc=none smtp.remote-ip=209.85.128.200 Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) (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 71977606A31C for ; Mon, 30 Nov 2026 15:03:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 71977606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=JHich13j Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-8b50256700cso149029087b3.3 for ; Mon, 30 Nov 2026 07:03:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796050979; x=1796655779; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=nmqp9LjyMDN8GSrlISVHP0LA4kMdLXM8zVEeMHBIocc=; b=JHich13jtdf2hMCb5bXI5o/V3MKCG80X1D08knps271WkUeMTsihlinyYL7FPrQebC GOD2L/wRYqihkooxwcB+ibXd4kDFDKcixOLXYiEfQcKMc3hTQ7fnneoBqY/PQEwa84ww 47AYXyX7/e9vltNxliArJtxgnEPDgObmVFj136nYJIYknCWyUrmZznfGO31ZALgq/Mki QLdC0MndoTlvrwrUmnKuOC+mYnXF9mYiXN10tD8JkYT3OQpaHV1uSZvi+S839E0p6o+R yJ0VEA8cCbXn1++HJH5Gz1sPuEeiDiwpYpIbCaFm0Mc9HOtt6e773JaIPqXW8mt5luCY ZR3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796050979; x=1796655779; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nmqp9LjyMDN8GSrlISVHP0LA4kMdLXM8zVEeMHBIocc=; b=rLFRAFnLFhk8CjMjYcU0AjW650jL1q/PBZQZ+aVhaCGFFQDJqfVO1F6lfrIfCMXonz L3WLQxKyzfW/naMD8bJma152SteXLr0W5bTG0O5LnCZoIchy0f+I3iLTUC3b2yR+t5g7 cluTkrhq754oFi98pPHy2y4iD4GyIA6BESj7lfGiEUof7O01iv0hp+62FnbXd0At4Lez TqU39QJKExqx/lzBH25buJmnZsSmggiQpJCQKB6ykGqQPBAQLS5YDNBWVmniI/AJhL5Z ES+KyCDliPcXROBzKP1Zj268e8HlGsnumvypBjtikK/maG9EMcKKesK3NUfnODkzpjbe Mw6w== X-Gm-Message-State: APuU4Z9jwb17d5TfcLAOl+rO7htNI0Xc5kRj7b+xkTWkYE2vQbrfhu2q x/7vlOMrUEHUwxtsTrBam583tFeT/24faCjQjofFZpGeTQ5koceG+4TFAVE0QEhWoc3Frfrleyi C0UwVVc0DgQ== X-Received: from qvblf6.prod.google.com ([2002:a05:6214:2cc6:b0:91e:eeb4:c2da]) (user=willemb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:690e:12cc:b0:67e:796c:b2ce with SMTP id 956f58d0204a3-67e796cb387mr2730030d50.162.1796050978749; Mon, 30 Nov 2026 07:02:58 -0800 (PST) Date: Mon, 30 Nov 2026 10:02:57 -0500 In-Reply-To: <20261123121513.2112743-1-mhm.dawod@gmail.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261122064155.2094434-1-mhm.dawod@gmail.com> <20261123121513.2112743-1-mhm.dawod@gmail.com> Message-ID: Subject: Re: [PATCH net v2] net/sched: cbs: fix 32-bit overflow in transmission time estimate From: willemb@google.com To: Mohamed Dawod , netdev-bot+sashiko@kernel.org Cc: netdev@vger.kernel.org, vinicius.gomes@intel.com, jhs@mojatatu.com, jiri@resnulli.us, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, ye.zh-yuan@socionext.com, linux-kernel@vger.kernel.org, 163wangjack@gmail.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Mohamed Dawod wrote: > Thank you for the review. > I agree with the concern that my patch alone does not guarantee > idleslope-limited throughput on 32-bit kernels affected by the > signed/unsigned rate-conversion issue. > However, this is a separate issue that is already addressed by Jack > Wang's patch series: > [PATCH net v3] net/sched: cbs: perform rate conversions in signed 64-bit > arithmetic > https://lkml.iu.edu/2608.1/09680.html > My patch fixes the overflow in the transmission-time calculation in > cbs_dequeue_soft(), while Jack's patch fixes the rate conversions in > cbs_change() and cbs_set_port_rate(). > Both fixes are needed for correct software CBS operation on affected > 32-bit kernels. > I believe these changes should be integrated in the appropriate order, > with the rate-conversion fix applied before my patch, so that the > complete CBS functionality is restored. That patch was sent in August and evidently not applied. The most recent version still had feedback to address: https://lore.kernel.org/netdev/83a768c4-1200-4baa-bdc2-9d20960dc6d1@redhat.com/ If your patch must be applied after that, can you send a series that combines all the work. Or can the original author (Cc:ed) resubmit?