[PATCH] eal: introduce division round up macro

Stephen Hemminger stephen at networkplumber.org
Thu Aug 13 03:29:46 CEST 2026


On Wed, 12 Aug 2026 15:30:17 -0700
Joshua Washington <joshwash at google.com> wrote:

> A number of drivers define the DIV_ROUND_UP macro -- add it to
> RTE_COMMON so that other code looking to use that functionality doesn't
> have to re-define it.
> 
> Replace usage of DIV_ROUND_UP in existing places with RTE_DIV_ROUND_UP.
> 
> Signed-off-by: Joshua Washington <joshwash at google.com>
> ---

Makes sense, but this is the kind of change that is best done as a patch series
so that each driver vendor looks at their code; and if something is broken
only one change needs to be reverted. Make blast radius smaller


More information about the dev mailing list