numam-dpdk/drivers
Viacheslav Ovsiienko 00984de533 net/mlx5: fix Tx queue size created with DevX
The number of descriptors specified for queue creation
implies the queue should be able to contain the specified
amount of packets being sent. Typically one packet takes
one queue descriptor (WQE) to be handled. If there is inline
data option enabled one packet might require more WQEs to
embrace the inline data and the overall queue size (the
number of queue descriptors) should be adjusted accordingly.

In mlx5 PMD the queues can be created either via Verbs, using
the rdma-core library or via DevX as direct kernel/firmware call.
The rdma-core does queue size adjustment internally, depending on
TSO and inline setting. The DevX approach missed this point.
This caused the queue size discrepancy and performance variations.

The patch adjusts the Tx queue size for the DevX approach
in the same as it is done in rdma-core implementation.

Fixes: 86d259cec8 ("net/mlx5: separate Tx queue object creations")
Cc: stable@dpdk.org

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2021-02-04 18:44:26 +01:00
..
baseband config: remove compatibility build defines 2021-01-20 01:43:25 +01:00
bus bus/vdev: add driver IOVA VA mode requirement 2021-01-29 18:16:09 +01:00
common common/mlx5: fix storing synced MAC to internal table 2021-02-04 18:19:37 +01:00
compress compress/mlx5: add supported capabilities 2021-01-27 20:40:03 +01:00
crypto crypto/dpaa2_sec: fix memory allocation check 2021-01-27 20:58:14 +01:00
event eventdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mempool ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
net net/mlx5: fix Tx queue size created with DevX 2021-02-04 18:44:26 +01:00
raw raw/octeontx2_ep: change PCI device ID 2021-01-29 18:16:12 +01:00
regex config: remove compatibility build defines 2021-01-20 01:43:25 +01:00
vdpa vdpa/mlx5: fix configuration mutex cleanup 2021-01-29 18:16:10 +01:00
meson.build build: enable pmdinfogen for Windows 2021-01-25 23:24:38 +01:00