numam-dpdk/drivers/net/mlx5
Michael Baum 0f006468c5 net/mlx5: fix iterator type in Rx queue management
The mlx5_check_vec_rx_support function in the mlx5_rxtx_vec.c file
passes the RX queues array in the loop. Similarly, the mlx5_mprq_enabled
function in the mlx5_rxq.c file passes the RX queues array in the loop.

In both cases, the iterator of the loop is called i and the variable
representing the array size is called rxqs_n.
The i variable is of UINT16_T type while the rxqs_n variable is of
unsigned int type. The size of the rxqs_n variable is much larger than
the number of iterations allowed by the i type, theoretically there may
be a situation where the value of the rxqs_n will be greater than can be
represented by 16 bits and the loop will never end.

Change the type of i to UINT32_T.

Fixes: 7d6bf6b866 ("net/mlx5: add Multi-Packet Rx support")
Fixes: 6cb559d67b ("net/mlx5: add vectorized Rx/Tx burst for x86")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2020-06-30 14:52:30 +02:00
..
linux net/mlx5: use anonymous Direct Verbs allocator argument 2020-06-30 14:52:30 +02:00
Makefile net/mlx5/linux: add memory region callbacks to Verbs 2020-06-17 16:32:01 +02:00
meson.build net/mlx5: move socket files in Linux directory 2020-06-16 19:21:07 +02:00
mlx5_defs.h net/mlx5: add device parameter for MPRQ stride size 2020-04-21 13:57:08 +02:00
mlx5_ethdev.c net/mlx5: move Linux-specific functions 2020-06-16 19:21:07 +02:00
mlx5_flow_dv.c net/mlx5: add default miss action to flow engine 2020-06-30 14:52:30 +02:00
mlx5_flow_meter.c net/mlx5: fix typos in meter error messages 2020-06-16 19:21:07 +02:00
mlx5_flow_verbs.c net/mlx5: optimize free counter lookup 2020-06-30 14:52:30 +02:00
mlx5_flow.c net/mlx5: add default miss action to flow engine 2020-06-30 14:52:30 +02:00
mlx5_flow.h net/mlx5: add default miss action to flow engine 2020-06-30 14:52:30 +02:00
mlx5_mac.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mp.c net/mlx5: add Linux-specific file with getter functions 2020-06-16 19:21:07 +02:00
mlx5_mr.c net/mlx5: use direct API to find port by device 2020-06-30 14:52:30 +02:00
mlx5_mr.h common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_rss.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxmode.c net/mlx5: reduce Netlink commands dependencies 2020-02-05 09:51:20 +01:00
mlx5_rxq.c net/mlx5: fix iterator type in Rx queue management 2020-06-30 14:52:30 +02:00
mlx5_rxtx_vec_altivec.h net/mlx5: fix vectorized Rx burst termination 2020-06-03 17:20:32 +02:00
mlx5_rxtx_vec_neon.h net/mlx5: fix vectorized Rx burst termination 2020-06-03 17:20:32 +02:00
mlx5_rxtx_vec_sse.h net/mlx5: fix vectorized Rx burst termination 2020-06-03 17:20:32 +02:00
mlx5_rxtx_vec.c net/mlx5: fix iterator type in Rx queue management 2020-06-30 14:52:30 +02:00
mlx5_rxtx_vec.h common/mlx5: refactor memory management 2020-04-21 13:57:08 +02:00
mlx5_rxtx.c net/mlx5: fix LRO checksum 2020-06-16 19:21:07 +02:00
mlx5_rxtx.h net/mlx5: fix secondary process resources release 2020-06-02 16:06:24 +02:00
mlx5_stats.c net/mlx5: refactor statistics 2020-06-16 19:21:07 +02:00
mlx5_trigger.c net/mlx5: add parameter for LACP packets control 2020-06-30 14:52:30 +02:00
mlx5_txq.c net/mlx5: fix descriptors number adjustment 2020-06-16 19:21:07 +02:00
mlx5_utils.c net/mlx5: add three-level table utility 2020-06-30 14:52:29 +02:00
mlx5_utils.h net/mlx5: add three-level table utility 2020-06-30 14:52:29 +02:00
mlx5_vlan.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5.c net/mlx5: add parameter for LACP packets control 2020-06-30 14:52:30 +02:00
mlx5.h net/mlx5: add parameter for LACP packets control 2020-06-30 14:52:30 +02:00
rte_pmd_mlx5_version.map net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5.h net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00