On Tue, Sep 22, 2026 at 06:07:38PM -0700, Joshua Washington wrote:
> The RTE_DIV_ROUND_UP in rte_common.h makes DIV_CEIL redundant.
>
> Signed-off-by: Joshua Washington <[email protected]>
Acked-by: Bruce Richardson <[email protected]>
> ---
> Changes in v3:
> - New patch converting DIV_CEIL in test_compressdev.c.
> ---
> app/test/test_compressdev.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/app/test/test_compressdev.c b/app/test/test_compressdev.c
> index 293d1d757f..2891b98d56 100644
> --- a/app/test/test_compressdev.c
> +++ b/app/test/test_compressdev.c
> @@ -18,8 +18,6 @@
> #include "test_compressdev_test_buffer.h"
> #include "test.h"
>
> -#define DIV_CEIL(a, b) ((a) / (b) + ((a) % (b) != 0))
> -
> #define DEFAULT_WINDOW_SIZE 15
> #define DEFAULT_MEM_LEVEL 8
> #define MAX_DEQD_RETRIES 10
> @@ -688,7 +686,7 @@ prepare_sgl_bufs(const char *test_buf, struct rte_mbuf
> *head_buf,
> uint16_t seg_size)
> {
> uint32_t remaining_data = total_data_size;
> - uint16_t num_remaining_segs = DIV_CEIL(remaining_data, seg_size);
> + uint16_t num_remaining_segs = RTE_DIV_ROUND_UP(remaining_data,
> seg_size);
> struct rte_mempool *pool;
> struct rte_mbuf *next_seg;
> uint32_t data_size;
> --
> 2.55.0.1082.g2b9226bbc0-goog
>