On Tue, Sep 22, 2026 at 06:07:27PM -0700, Joshua Washington wrote: > The RTE_DIV_ROUND_UP in rte_common.h makes DIV_ROUND_UP redundant. > > Signed-off-by: Joshua Washington <[email protected]> > Reviewed-by: Stephen Hemminger <[email protected]> > --- Acked-by: Bruce Richardson <[email protected]> > drivers/net/intel/ice/base/ice_osdep.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/net/intel/ice/base/ice_osdep.h > b/drivers/net/intel/ice/base/ice_osdep.h > index 5d92cf5aa4..3ef52eae6d 100644 > --- a/drivers/net/intel/ice/base/ice_osdep.h > +++ b/drivers/net/intel/ice/base/ice_osdep.h > @@ -311,13 +311,12 @@ ice_hweight32(u32 num) > return bits; > } > > -#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) > #define DELAY(x) rte_delay_us(x) > #define ice_usec_delay(x, y) rte_delay_us(x) > #define ice_msec_delay(x, y) rte_delay_us(1000 * (x)) > #define udelay(x) DELAY(x) > #define msleep(x) DELAY(1000 * (x)) > -#define usleep_range(min, max) msleep(DIV_ROUND_UP(min, 1000)) > +#define usleep_range(min, max) msleep(RTE_DIV_ROUND_UP(min, 1000)) > > struct ice_list_entry { > LIST_ENTRY(ice_list_entry) next; > -- > 2.55.0.1082.g2b9226bbc0-goog >
- Re: [PATCH v3 02/16] net/i40e: use common division ... Bruce Richardson
- Re: [PATCH v3 02/16] net/i40e: use common divis... Bruce Richardson
- [PATCH v3 03/16] net/idpf: use common division round up ... Joshua Washington
- [PATCH v3 01/16] eal: introduce division round up macro Joshua Washington
- Re: [PATCH v3 01/16] eal: introduce division round ... Bruce Richardson
- [PATCH v3 05/16] net/qede: use common division round up ... Joshua Washington
- [PATCH v3 06/16] net/rnp: use common division round up m... Joshua Washington
- [PATCH v3 08/16] net/hinic: use common division round up... Joshua Washington
- [PATCH v3 07/16] net/hns3: use common division round up ... Joshua Washington
- [PATCH v3 04/16] net/ice: use common division round up m... Joshua Washington
- Re: [PATCH v3 04/16] net/ice: use common division r... Bruce Richardson
- [PATCH v3 09/16] net/bnx2x: use common division round up... Joshua Washington
- [PATCH v3 11/16] net/ena: use common division round up m... Joshua Washington
- [PATCH v3 10/16] net/cxgbe: use common division round up... Joshua Washington
- [PATCH v3 12/16] raw/ifpga/base: use common division rou... Joshua Washington
- [PATCH v3 14/16] app/procinfo: use common division round... Joshua Washington
- [PATCH v3 13/16] net/nfp: use common division round up m... Joshua Washington
- [PATCH v3 15/16] app/test: use common division round up ... Joshua Washington
- Re: [PATCH v3 15/16] app/test: use common division ... Bruce Richardson
- [PATCH v3 16/16] app/test-compress-perf: use common divi... Joshua Washington
- Re: [PATCH v3 16/16] app/test-compress-perf: use co... Bruce Richardson

