numam-dpdk/drivers
Bing Zhao ccc6ea5d9c net/mlx5: fix build with recent compilers
With some higher GCC/CLANG version, it is not recommended to use a
structure with a tailing flexible array inside another structure.
Accessing this array may be considered as a risk to corrupt the
following field even if it is by intention.

The error below was observed:

  drivers/net/mlx5/linux/mlx5_ethdev_os.c: In function 'mlx5_get_flag_dropless_rq':
  drivers/net/mlx5/linux/mlx5_ethdev_os.c:1679:42: error:
  invalid use of structure with flexible array member [-Werror=pedantic]
  1679 | struct ethtool_sset_info hdr;
       | ^~~

Changing it to memory dynamic allocation method will help to get
rid of this complain.

Fixes: e848218741 ("net/mlx5: check delay drop settings in kernel driver")
Cc: stable@dpdk.org

Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
2022-10-31 20:02:05 +01:00
..
baseband baseband/acc100: configure PMON control registers 2022-10-29 13:01:40 +02:00
bus bus/vdev: fix crash in device cleanup 2022-10-20 11:35:07 +02:00
common common/idpf: introduce common library 2022-10-31 11:45:54 +01:00
compress common/mlx5: fix disabling build 2022-10-30 15:55:10 +01:00
crypto crypto/qat: fix null hash algorithm digest size 2022-10-29 13:01:41 +02:00
dma dma/idxd: check DSA device allocation 2022-10-10 17:53:18 +02:00
event common/cnxk: support 103XX CPT 2022-10-29 13:01:40 +02:00
gpu dev: hide driver object 2022-09-23 16:14:34 +02:00
mempool drivers: mark SW PMDs to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
net net/mlx5: fix build with recent compilers 2022-10-31 20:02:05 +01:00
raw raw/cnxk_bphy: extend PF function address access 2022-10-26 23:19:19 +02:00
regex common/mlx5: fix disabling build 2022-10-30 15:55:10 +01:00
vdpa common/mlx5: fix disabling build 2022-10-30 15:55:10 +01:00
meson.build build: export include directories list 2022-10-28 14:27:48 +02:00