From: Stephen Hemminger <stephen@networkplumber.org>
To: Joshua Washington <joshwash@google.com>
Cc: dev@dpdk.org
Subject: Re: [PATCH v4 00/15] Introduce RTE_DIV_ROUND_UP
Date: Tue, 6 Oct 2026 09:38:22 -0700 [thread overview]
Message-ID: <20261006093822.603a7a2e@phoenix.local> (raw)
In-Reply-To: <20261006023053.2572501-1-joshwash@google.com>
On Mon, 5 Oct 2026 19:30:36 -0700
Joshua Washington <joshwash@google.com> wrote:
> Numerous components independently define the DIV_ROUND_UP macro, using
> the same definition. Attempt to commonize by introducing
> RTE_DIV_ROUND_UP to rte_common.h and replacing usages of DIV_ROUND_UP
> with RTE_DIV_ROUND_UP. Similarly, replace DIV_CEIL, which is
> functionally identical, to RTE_DIV_ROUND_UP.
>
> Changes in v4:
> - eal: Fix merge conflict in release notes after rebase.
> - various commits: add rte_common.h includes where missing to fix
> compilation issues.
> - opae: drop RTE_DIV_ROUND_UP change due to shered osdep file for RTE
> and raw drivers.
Looks good, some minor AI notes on commit messages and doc
Review: [PATCH v4 00/15] division round up consolidation
Series applies cleanly to main. Each patch touches a disjoint set of
files, so with 01/15 first the series is bisect safe. Build of all
affected drivers, dpdk-proc-info, dpdk-test and dpdk-test-compress-perf
with -Dwerror=true is clean.
No errors or warnings.
Series
Info: remaining private copies not covered by this series, candidates
for a follow-up:
drivers/raw/ifpga/base/opae_osdep.h DIV_ROUND_UP (map like cxgbe)
drivers/crypto/ccp/ccp_dev.h CCP_DIV_ROUND_UP
drivers/common/qat/dev/qat_dev_gen_lce.c LCE_DIV_ROUND_UP
drivers/net/sfc/sfc_dp.h SFC_DIV_ROUND_UP
drivers/common/sxe2/sxe2_osal.h SXE2_DIV_ROUND_UP
drivers/common/cnxk/roc_platform.h PLT_DIV_CEIL
sfc_efx base (EFX_DIV_ROUND_UP) is shared code and should stay.
Patch 01/15 eal: introduce division round up macro
Info: the Doxygen repeats itself. "Evaluated twice" is in @param d and
again in the first @note; "non-negative" is in @param n and again in
the second @note. Keep the @param text and drop the duplicate notes.
The plain expression form (not a statement expression with typeof) is
correct here: several converted users need an integer constant
expression (array bound via BITS_TO_LONGS in rnp.h, MAX_KEY_DWORDS in
hns3_fdir.c, CNIC_ILT_LINES in bnx2x.h).
Patch 05/15 net/qede, 10/15 net/cxgbe, 11/15 net/ena
Info: commit message says RTE_DIV_ROUND_UP "makes DIV_ROUND_UP
redundant", but these patches keep DIV_ROUND_UP as an alias for base/
code. Say that instead, e.g.:
Map DIV_ROUND_UP to RTE_DIV_ROUND_UP for the shared base code
and use RTE_DIV_ROUND_UP directly elsewhere in the driver.
Patch 05/15 net/qede
Info: bcm_osal.h still defines RTE_ROUNDUP in the driver, squatting on
the RTE_ namespace the same way the removed RTE_DIV_ROUND_UP did.
RTE_ALIGN_MUL_CEIL() is the equivalent. Follow-up, not this series.
Patch 06/15 net/rnp
Info: nothing in DPDK defines BITS_TO_LONGS, so the new #ifndef guard
does nothing; drop it.
next prev parent reply other threads:[~2026-10-06 16:38 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-12 22:30 [PATCH] eal: introduce division round up macro Joshua Washington
2026-08-13 1:29 ` Stephen Hemminger
2026-08-13 17:22 ` [PATCH v2 00/14] Introduce RTE_DIV_ROUND_UP Joshua Washington
2026-08-13 17:22 ` [PATCH v2 01/14] eal: introduce division round up macro Joshua Washington
2026-08-13 17:22 ` [PATCH v2 02/14] net/i40e: use common " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 03/14] net/idpf: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 04/14] net/ice: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 05/14] net/qede: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 06/14] net/rnp: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 07/14] net/hns3: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 08/14] net/hinic: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 09/14] net/bnx2x: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 10/14] net/cxgbe: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 11/14] net/ena: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 12/14] raw/ifpga/base: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 13/14] drivers: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 14/14] app/procinfo: " Joshua Washington
2026-08-15 15:32 ` [PATCH v2 00/14] Introduce RTE_DIV_ROUND_UP Stephen Hemminger
2026-09-22 0:36 ` Stephen Hemminger
2026-09-23 1:07 ` [PATCH v3 00/16] " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 01/16] eal: introduce division round up macro Joshua Washington
2026-09-23 7:29 ` Bruce Richardson
2026-09-24 7:47 ` fengchengwen
2026-09-23 1:07 ` [PATCH v3 02/16] net/i40e: use common " Joshua Washington
2026-09-23 7:30 ` Bruce Richardson
2026-09-23 7:35 ` Bruce Richardson
2026-09-29 22:44 ` Joshua Washington
2026-09-30 7:31 ` Bruce Richardson
2026-09-23 1:07 ` [PATCH v3 03/16] net/idpf: " Joshua Washington
2026-09-23 7:31 ` Bruce Richardson
2026-09-23 1:07 ` [PATCH v3 04/16] net/ice: " Joshua Washington
2026-09-23 7:31 ` Bruce Richardson
2026-09-23 1:07 ` [PATCH v3 05/16] net/qede: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 06/16] net/rnp: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 07/16] net/hns3: " Joshua Washington
2026-09-24 7:48 ` fengchengwen
2026-09-23 1:07 ` [PATCH v3 08/16] net/hinic: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 09/16] net/bnx2x: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 10/16] net/cxgbe: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 11/16] net/ena: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 12/16] raw/ifpga/base: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 13/16] net/nfp: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 14/16] app/procinfo: " Joshua Washington
2026-09-24 7:49 ` fengchengwen
2026-09-23 1:07 ` [PATCH v3 15/16] app/test: " Joshua Washington
2026-09-23 7:36 ` Bruce Richardson
2026-09-24 7:51 ` fengchengwen
2026-09-23 1:07 ` [PATCH v3 16/16] app/test-compress-perf: " Joshua Washington
2026-09-23 7:36 ` Bruce Richardson
2026-09-24 7:51 ` fengchengwen
2026-09-23 17:32 ` [PATCH v3 00/16] Introduce RTE_DIV_ROUND_UP Stephen Hemminger
2026-10-06 2:30 ` [PATCH v4 00/15] " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 01/15] eal: introduce division round up macro Joshua Washington
2026-10-06 2:30 ` [PATCH v4 02/15] net/i40e: use common " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 03/15] net/idpf: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 04/15] net/ice: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 05/15] net/qede: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 06/15] net/rnp: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 07/15] net/hns3: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 08/15] net/hinic: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 09/15] net/bnx2x: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 10/15] net/cxgbe: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 11/15] net/ena: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 12/15] net/nfp: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 13/15] app/procinfo: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 14/15] app/test: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 15/15] app/test-compress-perf: " Joshua Washington
2026-10-06 16:38 ` Stephen Hemminger [this message]
2026-10-07 20:21 ` [PATCH v4 00/15] Introduce RTE_DIV_ROUND_UP Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261006093822.603a7a2e@phoenix.local \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=joshwash@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox