numam-dpdk/drivers/net
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
..
af_packet drivers: mark SW PMDs to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
af_xdp drivers: mark SW PMDs to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
ark dev: hide driver object 2022-09-23 16:14:34 +02:00
atlantic eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
avp dev: hide driver object 2022-09-23 16:14:34 +02:00
axgbe net/axgbe: support segmented Tx 2022-10-04 16:57:50 +02:00
bnx2x dev: hide driver object 2022-09-23 16:14:34 +02:00
bnxt net/bnxt: support proactive error handling mode 2022-10-17 08:34:05 +02:00
bonding net/bonding: call Tx prepare before Tx burst 2022-10-20 08:36:34 +02:00
cnxk common/cnxk: generate MD5 ipad opad 2022-10-29 13:01:40 +02:00
cxgbe ethdev: remove deprecated flow action physical port 2022-09-27 10:26:51 +02:00
dpaa net/dpaa: fix buffer freeing in slow path 2022-10-07 17:19:03 +02:00
dpaa2 net/dpaa2: fix buffer freeing on SG Tx 2022-10-07 17:19:03 +02:00
e1000 ethdev: add error handling mode to device info 2022-10-17 08:26:36 +02:00
ena ethdev: add error handling mode to device info 2022-10-17 08:26:36 +02:00
enetc version: 22.11-rc0 2022-07-21 12:13:48 +02:00
enetfec net/enetfec: fix buffer leak 2022-10-07 17:19:03 +02:00
enic dev: hide driver object 2022-09-23 16:14:34 +02:00
failsafe drivers: mark SW PMDs to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
fm10k ethdev: remove Rx header split port offload 2022-10-04 11:20:04 +02:00
gve net/gve: support Rx/Tx 2022-10-25 14:30:28 +02:00
hinic bus/pci: make driver-only headers private 2022-09-23 16:14:34 +02:00
hns3 net/hns3: support proactive error handling mode 2022-10-17 08:34:05 +02:00
i40e ethdev: remove Rx header split port offload 2022-10-04 11:20:04 +02:00
iavf net/iavf: fix handling of IPsec events 2022-10-25 17:38:30 +02:00
ice net/ice: support VXLAN-GPE tunnel offload 2022-10-25 17:33:30 +02:00
idpf net/idpf: support timestamp offload 2022-10-31 14:34:10 +01:00
igc net/igc: remove unnecessary PHY ID checks 2022-09-07 20:33:26 +02:00
ionic net/ionic: add watchdogs to protect each queue type 2022-10-18 23:38:26 +02:00
ipn3ke bus/vdev: make driver-only headers private 2022-09-23 16:14:34 +02:00
ixgbe net/ixgbe: fix security session destroy 2022-10-25 17:33:30 +02:00
kni bus/vdev: make driver-only headers private 2022-09-23 16:14:34 +02:00
liquidio eal: deprecate RTE_FUNC_PTR_* macros 2022-09-23 16:14:34 +02:00
mana net/mana: fix dependencies 2022-10-11 01:34:07 +02:00
memif drivers: mark SW PMDs to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
mlx4 net/mlx4: fix Verbs FD leak in secondary process 2022-10-02 09:13:48 +02:00
mlx5 net/mlx5: fix build with recent compilers 2022-10-31 20:02:05 +01:00
mvneta ethdev: remove Rx header split port offload 2022-10-04 11:20:04 +02:00
mvpp2 ethdev: remove Rx header split port offload 2022-10-04 11:20:04 +02:00
netvsc dev: hide driver object 2022-09-23 16:14:34 +02:00
nfb version: 22.11-rc0 2022-07-21 12:13:48 +02:00
nfp net/nfp: support new solution for tunnel decap action 2022-10-25 10:53:33 +02:00
ngbe net/ngbe: use renamed IEEE 1588 offload flags 2022-10-04 01:43:15 +02:00
null drivers: mark SW PMDs to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
octeon_ep net/octeon_ep: fix build for non-x86 2022-09-26 09:14:08 +02:00
octeontx ethdev: remove deprecated Flow Director configuration 2022-08-31 15:24:23 +02:00
pcap drivers: mark SW PMDs to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
pfe bus/vdev: make driver-only headers private 2022-09-23 16:14:34 +02:00
qede net/qede/base: fix 32-bit build with GCC 12 2022-10-06 12:28:05 +02:00
ring drivers: mark SW PMDs to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
sfc net/sfc: clarify Rx buffer size calculation 2022-09-28 11:51:39 +02:00
softnic net/softnic: fix file descriptor leak 2022-10-04 01:08:39 +02:00
tap drivers: mark SW PMDs to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
thunderx ethdev: remove Rx header split port offload 2022-10-04 11:20:04 +02:00
txgbe net/txgbe: fix security session destroy 2022-10-25 17:33:30 +02:00
vdev_netvsc dev: hide driver object 2022-09-23 16:14:34 +02:00
vhost bus/vdev: make driver-only headers private 2022-09-23 16:14:34 +02:00
virtio net/virtio: remove declaration of undefined function 2022-10-26 11:22:41 +02:00
vmxnet3 dev: hide driver object 2022-09-23 16:14:34 +02:00
meson.build net/idpf: support device initialization 2022-10-31 14:29:55 +01:00