numam-dpdk/drivers/net/mlx5
Yongseok Koh c618e7e82b net/mlx5: fix assert for Tx completion queue count
There should be at least one Tx CQE remained if Tx WQ and txq->elts[] have
available slots to send a packet because the size of Tx CQ is exactly
calculated from the size of other resources. As it is guaranteed, it is
checked by an assertion.

max_elts is checked after the assertion for Tx CQ. If no slot is available
in txq->elts[], the assertion would be wrong.

Fixes: 2eefbec531 ("net/mlx5: add missing sanity checks for Tx completion queue")
Fixes: 6ce84bd889 ("net/mlx5: add enhanced multi-packet send for ConnectX-5")
Cc: stable@dpdk.org

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Xueming Li <xuemingl@mellanox.com>
2018-07-26 14:05:52 +02:00
..
Makefile net/mlx5: fix build with old kernels 2018-07-26 14:05:52 +02:00
mlx5_defs.h net/mlx5: fix build with old kernels 2018-07-26 14:05:52 +02:00
mlx5_ethdev.c net/mlx5: fix representors detection 2018-07-26 14:05:52 +02:00
mlx5_flow.c net/mlx5: add framework for switch flow rules 2018-07-26 14:05:52 +02:00
mlx5_glue.c net/mlx5: add a function to rdma-core glue 2018-05-14 22:31:52 +01:00
mlx5_glue.h net/mlx5: add a function to rdma-core glue 2018-05-14 22:31:52 +01:00
mlx5_mac.c net/mlx5: probe all port representors 2018-07-11 15:37:19 +02:00
mlx5_mr.c net/mlx5: clean-up developer logs 2018-07-03 01:35:57 +02:00
mlx5_mr.h net/mlx5: clean-up developer logs 2018-07-03 01:35:57 +02:00
mlx5_nl_flow.c net/mlx5: add port ID pattern item to switch flow rules 2018-07-26 14:05:52 +02:00
mlx5_nl.c net/mlx5: add port representor awareness 2018-07-11 15:37:14 +02:00
mlx5_prm.h net/mlx5: use a macro for the RSS key size 2018-07-12 12:10:03 +02:00
mlx5_rss.c net/mlx5: use a macro for the RSS key size 2018-07-12 12:10:03 +02:00
mlx5_rxmode.c net/mlx5: use Netlink to enable promisc/allmulti mode 2018-04-14 00:41:44 +02:00
mlx5_rxq.c net/mlx5: support 32-bit systems 2018-07-12 14:34:59 +02:00
mlx5_rxtx_vec_neon.h net/mlx5: fix assert for Tx completion queue count 2018-07-26 14:05:52 +02:00
mlx5_rxtx_vec_sse.h net/mlx5: fix assert for Tx completion queue count 2018-07-26 14:05:52 +02:00
mlx5_rxtx_vec.c net/mlx5: add Multi-Packet Rx support 2018-05-14 22:31:52 +01:00
mlx5_rxtx_vec.h net/mlx5: fix Rx buffer replenishment threshold 2018-07-03 01:35:58 +02:00
mlx5_rxtx.c net/mlx5: fix assert for Tx completion queue count 2018-07-26 14:05:52 +02:00
mlx5_rxtx.h net/mlx5: support 32-bit systems 2018-07-12 14:34:59 +02:00
mlx5_socket.c net/mlx5: fix socket connection return value 2018-05-14 22:31:48 +01:00
mlx5_stats.c net/mlx5: probe all port representors 2018-07-11 15:37:19 +02:00
mlx5_trigger.c net/mlx5: fix TCI mask filter 2018-07-26 14:05:52 +02:00
mlx5_txq.c net/mlx5: support 32-bit systems 2018-07-12 14:34:59 +02:00
mlx5_utils.h net/mlx5: add hardware flow debug dump 2018-04-27 18:00:56 +01:00
mlx5_vlan.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx5.c net/mlx5: fix representors detection 2018-07-26 14:05:52 +02:00
mlx5.h net/mlx5: fix representors detection 2018-07-26 14:05:52 +02:00
rte_pmd_mlx5_version.map mlx5: introduce new driver for Mellanox ConnectX-4 adapters 2015-10-30 22:03:42 +01:00