Skip to content

remove use of VLAs for Windows

Tyler Retzlaff dpdk-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest19 patches 4 repliesIn review
  2. v219 patches 0 repliesSuperseded
  3. v116 patches 11 repliesSuperseded

Changes in v3 from the cover letter

* address checkpatch/check git log warnings (minor typos)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19eal: include header required for allocalib/eal/linux/include/rte_os.h lib/eal/windows/include/rte_os.h+2 -00 replies
2/19eal/linux: remove use of VLAslib/eal/linux/eal_interrupts.c+52 -70 replies
3/19eal/common: remove use of VLAslib/eal/common/eal_common_proc.c+3 -21 reply
4/19ethdev: remove use of VLAs for Windows built codelib/ethdev/rte_ethdev.c+113 -700 replies
5/19hash: remove use of VLAs for Windows built codelib/hash/rte_cuckoo_hash.c+2 -20 replies
6/19hash/thash: remove use of VLAs for Windows built codelib/hash/rte_thash.c lib/hash/rte_thash.h+9 -10 replies
7/19rcu: remove use of VLAs for Windows built codelib/rcu/rte_rcu_qsbr.c lib/rcu/rte_rcu_qsbr.h+9 -30 replies
8/19gro: remove use of VLAs for Windows built codelib/gro/rte_gro.c+2 -21 reply
9/19latencystats: remove use of VLAs for Windows built codelib/latencystats/rte_latencystats.c+1 -11 reply
10/19lpm: remove use of VLAs for Windows built codelib/lpm/rte_lpm.h+1 -10 replies
11/19app/testpmd: remove use of VLAs for Windows built codeapp/test-pmd/cmdline.c app/test-pmd/cmdline_flow.c app/test-pmd/config.c +1 more+15 -140 replies
12/19test: remove use of VLAs for Windows built codeapp/test/test.c app/test/test_cmdline_string.c app/test/test_cryptodev.c +9 more+79 -730 replies
13/19common/idpf: remove use of VLAs for Windows built codedrivers/common/idpf/idpf_common_rxtx.c drivers/common/idpf/idpf_common_rxtx_avx512.c+5 -30 replies
14/19net/i40e: remove use of VLAs for Windows built codedrivers/net/i40e/i40e_testpmd.c+2 -30 replies
15/19net/ice: remove use of VLAs for Windows built codedrivers/net/ice/ice_rxtx.c+1 -10 replies
16/19net/ixgbe: remove use of VLAs for Windows built codedrivers/net/ixgbe/ixgbe_ethdev.c drivers/net/ixgbe/ixgbe_rxtx_vec_common.h+4 -30 replies
17/19common/mlx5: remove use of VLAs for Windows built codedrivers/common/mlx5/mlx5_common.h drivers/common/mlx5/mlx5_devx_cmds.c+5 -60 replies
18/19net/mlx5: remove use of VLAs for Windows built codedrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5_flow.c+5 -60 replies
19/19build: enable vla warnings on Windows built codeconfig/meson.build+4 -00 replies

Reviews trailers per patch

1 of 19 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStephen HemmingerMorten BrørupTyler RetzlaffBruce Richardson
SeriesA-b A-b A-b
1/19
2/19
3/19A-b
4/19
5/19
6/19
7/19
8/19
9/19
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19

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 v3 thread

Cover letter [PATCH v3 00/19] remove use of VLAs for Windows

As per guidance technical board meeting 2024/04/17. This series removes the use of VLAs from code built for Windows for all 3 toolchains. If there are additional opportunities to convert VLAs to regular C arrays please provide the details for incorporation into the series.

MSVC does not support VLAs, replace VLAs with standard C arrays or alloca(). alloca() is available for all toolchain/platform combinations officially supported by DPDK.

v3:
* address checkpatch/check git log warnings (minor typos)

v2:
* replace patches for ethdev, hash, rcu and include new patches for eal from Konstantin Ananyev
from https://patchwork.dpdk.org/project/dpdk/list/?series=31781

Konstantin Ananyev (6):
eal/linux: remove use of VLAs
eal/common: remove use of VLAs
ethdev: remove use of VLAs for Windows built code
hash: remove use of VLAs for Windows built code hash/thash: remove use of VLAs for Windows built code
rcu: remove use of VLAs for Windows built code

Tyler Retzlaff (13):
eal: include header required for alloca
gro: remove use of VLAs for Windows built code
latencystats: remove use of VLAs for Windows built code
lpm: remove use of VLAs for Windows built code app/testpmd: remove use of VLAs for Windows built code
test: remove use of VLAs for Windows built code common/idpf: remove use of VLAs for Windows built code net/i40e: remove use of VLAs for Windows built code net/ice: remove use of VLAs for Windows built code net/ixgbe: remove use of VLAs for Windows built code common/mlx5: remove use of VLAs for Windows built code net/mlx5: remove use of VLAs for Windows built code
build: enable vla warnings on Windows built code

 app/test-pmd/cmdline.c                        |   2 +-
 app/test-pmd/cmdline_flow.c                   |   9 +-
 app/test-pmd/config.c                         |  16 ++-
 app/test-pmd/shared_rxq_fwd.c                 |   2 +-
 app/test/test.c                               |   2 +-
 app/test/test_cmdline_string.c                |   2 +-
 app/test/test_cryptodev.c                     |  32 ++---
 app/test/test_cryptodev_blockcipher.c         |   4 +-
 app/test/test_cryptodev_crosscheck.c          |   2 +-
 app/test/test_dmadev.c                        |   9 +-
 app/test/test_hash.c                          |   8 +-
 app/test/test_mempool.c                       |  25 ++--
 app/test/test_reassembly_perf.c               |   4 +-
 app/test/test_reorder.c                       |  48 +++----
 app/test/test_service_cores.c                 |   9 +-
 app/test/test_thash.c                         |   7 +-
 config/meson.build                            |   4 +
 drivers/common/idpf/idpf_common_rxtx.c        |   2 +-
 drivers/common/idpf/idpf_common_rxtx_avx512.c |   6 +-
 drivers/common/mlx5/mlx5_common.h             |   4 +-
 drivers/common/mlx5/mlx5_devx_cmds.c          |   7 +-
 drivers/net/i40e/i40e_testpmd.c               |   5 +-
 drivers/net/ice/ice_rxtx.c                    |   2 +-
 drivers/net/ixgbe/ixgbe_ethdev.c              |   5 +-
 drivers/net/ixgbe/ixgbe_rxtx_vec_common.h     |   2 +-
 drivers/net/mlx5/mlx5.c                       |   5 +-
 drivers/net/mlx5/mlx5_flow.c                  |   6 +-
 lib/eal/common/eal_common_proc.c              |   5 +-
 lib/eal/linux/eal_interrupts.c                |  59 ++++++++-
 lib/eal/linux/include/rte_os.h                |   1 +
 lib/eal/windows/include/rte_os.h              |   1 +
 lib/ethdev/rte_ethdev.c                       | 183 ++++++++++++++++----------
 lib/gro/rte_gro.c                             |   4 +-
 lib/hash/rte_cuckoo_hash.c                    |   4 +-
 lib/hash/rte_thash.c                          |   2 +-
 lib/hash/rte_thash.h                          |   8 ++
 lib/latencystats/rte_latencystats.c           |   2 +-
 lib/lpm/rte_lpm.h                             |   2 +-
 lib/rcu/rte_rcu_qsbr.c                        |   7 +-
 lib/rcu/rte_rcu_qsbr.h                        |   5 +
 40 files changed, 314 insertions(+), 198 deletions(-)
Signature · 1 line
1.8.3.1