Re: [PATCH net v2] net/sched: cbs: fix 32-bit overflow in transmission time estimate

From: willemb

Date: Mon Nov 30 2026 - 10:03:07 EST


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@xxxxxxxxxx/

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?