numam-dpdk/drivers/net/mlx5/linux
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
..
meson.build remove extra blank line at EOF 2022-02-27 21:26:06 +01:00
mlx5_ethdev_os.c net/mlx5: fix build with recent compilers 2022-10-31 20:02:05 +01:00
mlx5_flow_os.c net/mlx5: support ESP item on Windows 2022-06-05 17:04:48 +02:00
mlx5_flow_os.h common/mlx5: add send to kernel flow action 2022-10-26 13:33:28 +02:00
mlx5_mp_os.c net/mlx5: fix Verbs FD leak in secondary process 2022-10-02 09:13:50 +02:00
mlx5_os.c net/mlx5: fix null check in devargs parsing 2022-10-26 13:33:45 +02:00
mlx5_os.h net/mlx5: fix tunneling support query 2021-10-12 15:29:34 +02:00
mlx5_socket.c common/mlx5: share interrupt management 2022-06-23 17:24:59 +02:00
mlx5_verbs.c net/mlx5: fix Tx recovery 2022-06-01 09:49:42 +02:00
mlx5_verbs.h common/mlx5: add global MR cache create function 2021-10-21 15:57:24 +02:00
mlx5_vlan_os.c common/mlx5: add Netlink event helpers 2022-03-01 16:54:03 +01:00