summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Christensen <drc@linux.vnet.ibm.com>2019-07-31 17:41:11 -0500
committerRaslan Darawsheh <rasland@mellanox.com>2019-08-06 17:42:12 +0200
commit20215627cd5268a90c309cc91ee08b9e95c2c107 (patch)
treeb5b3dc02d03d77042875a42b8d99256f510da504
parentb857ed01ca30e1a264f47ce7369c5e8c691626b4 (diff)
downloaddpdk-20215627cd5268a90c309cc91ee08b9e95c2c107.zip
dpdk-20215627cd5268a90c309cc91ee08b9e95c2c107.tar.gz
dpdk-20215627cd5268a90c309cc91ee08b9e95c2c107.tar.xz
net/mlx5: fix Tx inline minimum for ConnectX-5
The function mlx5_set_min_inline() includes a switch() that checks various PCI device IDs in order to set the txq_inline_min value. No value is set when the PCI device ID matches the ConnectX-5 adapters, resulting in an assert() failure later in the function mlx5_set_txlimit_params(). This error was encountered on an IBM Power 9 system running RHEL 7.6 w/o Mellanox OFED installed. Fixes: 38b4b397a57d ("net/mlx5: add Tx configuration and setup") Signed-off-by: David Christensen <drc@linux.vnet.ibm.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
-rw-r--r--drivers/net/mlx5/mlx5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index f5bc31f..909c22e 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -1343,6 +1343,7 @@ mlx5_set_min_inline(struct mlx5_dev_spawn_data *spawn,
* and PFC control may be broken, so disable feature.
*/
config->hw_vlan_insert = 0;
+ config->txq_inline_min = MLX5_INLINE_HSIZE_NONE;
break;
default:
config->txq_inline_min = MLX5_INLINE_HSIZE_NONE;