numam-dpdk/drivers/net/mlx5
Alexander Kozyrev d2d5760552 net/mlx5: fix Rx queue count calculation
There are a few discrepancies in the Rx queue count calculation.

The wrong index is used to calculate the number of used descriptors
in an Rx queue in case of the compressed CQE processing. The global
CQ index is used while we really need an internal index in a single
compressed session to get the right number of elements processed.

The total number of CQs should be used instead of the number of mbufs
to find out about the maximum number of Rx descriptors. These numbers
are not equal for the Multi-Packet Rx queue.

Allow the Rx queue count calculation for all possible Rx bursts since
CQ handling is the same for regular, vectorized, and multi-packet Rx
queues.

Fixes: 26f0488344 ("net/mlx5: support Rx queue count API")
Cc: stable@dpdk.org

Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2020-10-08 19:58:11 +02:00
..
linux ethdev: remove old close behaviour 2020-09-30 19:19:14 +02:00
meson.build net/mlx5: separate Rx queue object creations 2020-09-18 18:55:08 +02:00
mlx5_defs.h net/mlx5: manage header reformat actions with hashed list 2020-09-30 19:19:09 +02:00
mlx5_devx.c net/mlx5: fix DevX CQ attributes values 2020-10-08 19:58:11 +02:00
mlx5_devx.h net/mlx5: separate VLAN strip modification 2020-09-18 18:55:06 +02:00
mlx5_ethdev.c net/mlx5: use bond index for netdev operations 2020-09-30 19:19:09 +02:00
mlx5_flow_dv.c net/mlx5: manage header reformat actions with hashed list 2020-09-30 19:19:09 +02:00
mlx5_flow_meter.c net/mlx5: call meter detach only if DR is supported 2020-09-18 18:55:06 +02:00
mlx5_flow_verbs.c net/mlx5: share Rx queue drop action code 2020-09-18 18:55:08 +02:00
mlx5_flow.c eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
mlx5_flow.h net/mlx5: manage header reformat actions with hashed list 2020-09-30 19:19:09 +02:00
mlx5_mac.c net/mlx5: remove unused includes 2020-09-18 18:55:06 +02:00
mlx5_mr.c common/mlx5: remove inclusion of Verbs header files 2020-07-21 15:46:30 +02:00
mlx5_mr.h common/mlx5: remove inclusion of Verbs header files 2020-07-21 15:46:30 +02:00
mlx5_rss.c net/mlx5: fix RSS RETA reset on start 2020-09-18 18:55:11 +02:00
mlx5_rxmode.c common/mlx5: remove inclusion of Verbs header files 2020-07-21 15:46:30 +02:00
mlx5_rxq.c net/mlx5: relax atomic refcnt for multi-packet Rx buffer 2020-09-30 19:19:15 +02:00
mlx5_rxtx_vec_altivec.h eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
mlx5_rxtx_vec_neon.h eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
mlx5_rxtx_vec_sse.h eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
mlx5_rxtx_vec.c common/mlx5: remove inclusion of Verbs header files 2020-07-21 15:46:30 +02:00
mlx5_rxtx_vec.h eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
mlx5_rxtx.c net/mlx5: fix Rx queue count calculation 2020-10-08 19:58:11 +02:00
mlx5_rxtx.h net/mlx5: relax atomic refcnt for multi-packet Rx buffer 2020-09-30 19:19:15 +02:00
mlx5_stats.c net/mlx5: provide send scheduling error statistics 2020-07-21 15:44:36 +02:00
mlx5_trigger.c net/mlx5: separate Rx queue drop 2020-09-18 18:55:08 +02:00
mlx5_txpp.c net/mlx5: remove more Direct Verbs dependencies 2020-09-18 18:55:06 +02:00
mlx5_txq.c eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
mlx5_utils.c net/mlx5: add hash list extended lookup and insert 2020-09-18 18:55:06 +02:00
mlx5_utils.h net/mlx5: remove unused log macros 2020-09-18 18:55:06 +02:00
mlx5_vlan.c net/mlx5: separate Rx queue drop 2020-09-18 18:55:08 +02:00
mlx5.c ethdev: allow drivers to return error on close 2020-09-30 19:19:13 +02:00
mlx5.h net/mlx5: fix meter table definitions 2020-10-08 19:58:11 +02:00
rte_pmd_mlx5_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00
rte_pmd_mlx5.h net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00