net/mlx5: check Tx queue size overflow
authorYongseok Koh <yskoh@mellanox.com>
Wed, 1 May 2019 01:01:43 +0000 (18:01 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commitf6d9ab4e769f0f95ecac1b418106e9f8137ca60c
tree17b63f757a9a6f230dd691e6634ceae948b96a4c
parentce777b147bf899360c146e66ad9fea0b19334077
net/mlx5: check Tx queue size overflow

If Tx packet inlining is enabled, rdma-core library should allocate large
Tx WQ enough to support it. It is better for PMD to calculate the size of
WQ based on the parameters and return error with appropriate message if it
exceeds the device capability.

Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_txq.c