numam-dpdk/drivers/net/mlx5
Dmitry Kozlyuk be8cda4932 net/mlx5: fix GCC uninitialized variable warning
When building with -Db_sanitize=thread, GCC gives a warning:

drivers/net/mlx5/mlx5_flow_meter.c: In function ‘mlx5_flow_meter_create’:
drivers/net/mlx5/mlx5_flow_meter.c:1170:33: warning: ‘legacy_fm’ may be
    used uninitialized in this function [-Wmaybe-uninitialized]

This is a false-positive: legacy_fm is initialized and used
if and only if priv->sh->meter_aso_en is false.
Work around this by initializing legacy_fm to NULL.
Add an assertion before legacy_fm use in case the logic changes.

Fixes: 4443201863 ("net/mlx5: support meter creation with policy")
Cc: stable@dpdk.org

Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2022-01-06 10:09:00 +01:00
..
linux net/mlx5: fix MPRQ stride devargs adjustment 2021-12-05 12:22:09 +01:00
windows net/mlx5: support imissed counter on Windows 2022-01-06 10:07:59 +01:00
meson.build net/mlx5: add flex item operations 2021-11-04 22:55:38 +01:00
mlx5_defs.h net/mlx5: improve stride parameter names 2021-12-05 12:22:09 +01:00
mlx5_devx.c net/mlx5: improve stride parameter names 2021-12-05 12:22:09 +01:00
mlx5_devx.h net/mlx5: enable DevX Tx queue creation 2021-10-21 09:31:13 +02:00
mlx5_ethdev.c net/mlx5: support shared Rx queue 2021-11-04 22:55:50 +01:00
mlx5_flow_aso.c net/mlx5: fix memory socket selection in ASO management 2021-12-22 09:56:01 +01:00
mlx5_flow_dv.c net/mlx5: fix GRE protocol type translation for Verbs 2022-01-06 10:07:49 +01:00
mlx5_flow_flex.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
mlx5_flow_meter.c net/mlx5: fix GCC uninitialized variable warning 2022-01-06 10:09:00 +01:00
mlx5_flow_verbs.c net/mlx5: fix GRE protocol type translation for Verbs 2022-01-06 10:07:49 +01:00
mlx5_flow.c net/mlx5: fix RSS expansion with explicit next protocol 2022-01-06 10:07:41 +01:00
mlx5_flow.h net/mlx5: fix GRE protocol type translation for Verbs 2022-01-06 10:07:49 +01:00
mlx5_mac.c net/mlx5: support Sub-Function 2021-07-22 00:11:14 +02:00
mlx5_rss.c net/mlx5: fix RETA update without stopping device 2021-11-10 15:44:44 +01:00
mlx5_rx.c net/mlx5: improve stride parameter names 2021-12-05 12:22:09 +01:00
mlx5_rx.h net/mlx5: fix assertion on flags set in packet mbuf 2022-01-06 10:07:30 +01:00
mlx5_rxmode.c net/mlx5: support Sub-Function 2021-07-22 00:11:14 +02:00
mlx5_rxq.c net/mlx5: fix MPRQ stride devargs adjustment 2021-12-05 12:22:09 +01:00
mlx5_rxtx_vec_altivec.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
mlx5_rxtx_vec_neon.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
mlx5_rxtx_vec_sse.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
mlx5_rxtx_vec.c net/mlx5: improve stride parameter names 2021-12-05 12:22:09 +01:00
mlx5_rxtx_vec.h ethdev: add namespace 2021-10-22 18:15:38 +02:00
mlx5_rxtx.c net/mlx5: move Rx queue DevX resource 2021-11-04 22:55:48 +01:00
mlx5_rxtx.h common/mlx5: share MR mempool registration 2021-10-21 15:58:00 +02:00
mlx5_stats.c net/mlx5: remove Rx queue data list from device 2021-11-04 22:55:49 +01:00
mlx5_trigger.c remove repeated 'the' in the code 2021-11-26 11:28:34 +01:00
mlx5_tx_empw.c net/mlx5: separate Tx burst functions to different files 2021-04-15 08:24:59 +02:00
mlx5_tx_mpw.c net/mlx5: separate Tx burst functions to different files 2021-04-15 08:24:59 +02:00
mlx5_tx_nompw.c net/mlx5: separate Tx burst functions to different files 2021-04-15 08:24:59 +02:00
mlx5_tx_txpp.c net/mlx5: separate Tx burst functions to different files 2021-04-15 08:24:59 +02:00
mlx5_tx.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
mlx5_tx.h net/mlx5: fix multi-segment packet wraparound 2021-11-23 17:57:13 +01:00
mlx5_txpp.c net/mlx5: fix mutex unlock in Tx packet pacing cleanup 2021-11-16 17:55:17 +01:00
mlx5_txq.c common/mlx5: fix redundant field in MR control structure 2021-11-17 10:42:20 +01:00
mlx5_utils.c common/mlx5: move list utility from net driver 2021-07-15 15:19:13 +02:00
mlx5_utils.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
mlx5_vlan.c net/mlx5: move Rx queue DevX resource 2021-11-04 22:55:48 +01:00
mlx5.c net/mlx5: improve stride parameter names 2021-12-05 12:22:09 +01:00
mlx5.h net/mlx5: fix MPRQ stride devargs adjustment 2021-12-05 12:22:09 +01:00
rte_pmd_mlx5.h net/mlx5: add flow sync API 2020-11-03 23:35:04 +01:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00