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

From: Mohamed Dawod

Date: Mon Nov 23 2026 - 07:16:11 EST


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.