Skip to content

Introduce RTE_DIV_ROUND_UP

Joshua Washington dpdk-dev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest15 patches 2 repliesIn review
  2. v316 patches 15 repliesSuperseded
  3. v214 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch1 replySuperseded

Changes in v4 from the cover letter

- 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.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15eal: introduce division round up macroapp/test/test_common.c doc/guides/rel_notes/release_26_11.rst lib/eal/include/rte_common.h+33 -00 replies
2/15net/i40e: use common division round up macrodrivers/net/intel/i40e/i40e_osdep.h+1 -20 replies
3/15net/idpf: use common division round up macrodrivers/net/intel/idpf/idpf_osdep.h+1 -20 replies
4/15net/ice: use common division round up macrodrivers/net/intel/ice/ice_osdep.h+1 -20 replies
5/15net/qede: use common division round up macrodrivers/net/qede/base/bcm_osal.h drivers/net/qede/qede_debug.c+9 -90 replies
6/15net/rnp: use common division round up macrodrivers/net/rnp/base/rnp_osdep.h drivers/net/rnp/rnp_rxtx.c+3 -40 replies
7/15net/hns3: use common division round up macrodrivers/net/hns3/hns3_ethdev.h drivers/net/hns3/hns3_fdir.c drivers/net/hns3/hns3_regs.c +1 more+12 -110 replies
8/15net/hinic: use common division round up macrodrivers/net/hinic/base/hinic_compat.h+1 -40 replies
9/15net/bnx2x: use common division round up macrodrivers/net/bnx2x/bnx2x.c drivers/net/bnx2x/bnx2x.h+7 -90 replies
10/15net/cxgbe: use common division round up macrodrivers/net/cxgbe/cxgbe_compat.h drivers/net/cxgbe/cxgbe_filter.c drivers/net/cxgbe/cxgbe_ofld.h +1 more+13 -130 replies
11/15net/ena: use common division round up macrodrivers/net/ena/base/ena_plat_dpdk.h+2 -10 replies
12/15net/nfp: use common division round up macrodrivers/common/nfp/nfp_platform.h drivers/net/nfp/nfdk/nfp_nfdk.h drivers/net/nfp/nfdk/nfp_nfdk_dp.c +1 more+4 -50 replies
13/15app/procinfo: use common division round up macroapp/proc-info/main.c+1 -20 replies
14/15app/test: use common division round up macroapp/test/test_compressdev.c+2 -30 replies
15/15app/test-compress-perf: use common division round up macroapp/test-compress-perf/comp_perf_test_common.c+6 -80 replies

Reviews trailers per patch

12 of 15 patches have a Reviewed-by or Acked-by.

PatchBruce RichardsonChengwen FengStephen HemmingerPotnuri Bharat Teja
1/15A-b A-b
2/15R-b
3/15A-b R-b
4/15A-b R-b
5/15
6/15R-b
7/15A-b R-b
8/15R-b
9/15R-b
10/15R-b
11/15
12/15
13/15A-b R-b
14/15A-b
15/15A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/15] Introduce RTE_DIV_ROUND_UP

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.

Changes in v3:
- eal: Add unit tests in app/test/test_common.c.
- eal: Add release notes entry for RTE_DIV_ROUND_UP.
- eal: Expand Doxygen documentation with parameters and caveats (divisor evaluation, non-negative inputs, wraparound).
- base code (qede, cxgbe, ena): Keep DIV_ROUND_UP macro in osdep/platform headers and avoid modifying call sites under base/.
- nfp: Change commit subject prefix from "drivers:" to "net/nfp:".
- qede, nfp: Drop unnecessary line rewraps.
- ena: Remove extraneous blank line in ena_plat_dpdk.h.
- app: Convert DIV_CEIL in app/test and app/test-compress-perf to RTE_DIV_ROUND_UP.

Changes in v2:
- Split single patch into series.

Joshua Washington (15):
eal: introduce division round up macro
net/i40e: use common division round up macro net/idpf: use common division round up macro net/ice: use common division round up macro net/qede: use common division round up macro net/rnp: use common division round up macro net/hns3: use common division round up macro net/hinic: use common division round up macro net/bnx2x: use common division round up macro net/cxgbe: use common division round up macro net/ena: use common division round up macro net/nfp: use common division round up macro app/procinfo: use common division round up macro app/test: use common division round up macro app/test-compress-perf: use common division round up macro

 app/proc-info/main.c                           |  3 +--
 app/test-compress-perf/comp_perf_test_common.c | 14 ++++++--------
 app/test/test_common.c                         | 10 ++++++++++
 app/test/test_compressdev.c                    |  5 ++---
 doc/guides/rel_notes/release_26_11.rst         |  5 +++++
 drivers/common/nfp/nfp_platform.h              |  2 --
 drivers/net/bnx2x/bnx2x.c                      |  4 ++--
 drivers/net/bnx2x/bnx2x.h                      | 12 +++++-------
 drivers/net/cxgbe/cxgbe_compat.h               |  2 +-
 drivers/net/cxgbe/cxgbe_filter.c               |  6 +++---
 drivers/net/cxgbe/cxgbe_ofld.h                 |  4 ++--
 drivers/net/cxgbe/sge.c                        | 14 +++++++-------
 drivers/net/ena/base/ena_plat_dpdk.h           |  3 ++-
 drivers/net/hinic/base/hinic_compat.h          |  5 +----
 drivers/net/hns3/hns3_ethdev.h                 |  2 --
 drivers/net/hns3/hns3_fdir.c                   |  3 ++-
 drivers/net/hns3/hns3_regs.c                   |  9 +++++----
 drivers/net/hns3/hns3_rss.c                    |  9 +++++----
 drivers/net/intel/i40e/i40e_osdep.h            |  3 +--
 drivers/net/intel/ice/ice_osdep.h              |  3 +--
 drivers/net/intel/idpf/idpf_osdep.h            |  3 +--
 drivers/net/nfp/nfdk/nfp_nfdk.h                |  3 ++-
 drivers/net/nfp/nfdk/nfp_nfdk_dp.c             |  2 +-
 drivers/net/nfp/nfpcore/nfp_nsp.c              |  2 +-
 drivers/net/qede/base/bcm_osal.h               |  2 +-
 drivers/net/qede/qede_debug.c                  | 16 ++++++++--------
 drivers/net/rnp/base/rnp_osdep.h               |  5 ++---
 drivers/net/rnp/rnp_rxtx.c                     |  2 +-
 lib/eal/include/rte_common.h                   | 18 ++++++++++++++++++
 29 files changed, 96 insertions(+), 75 deletions(-)
Signature · 1 line
2.56.0.rc1.315.gc6ed9934b7-goog