summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2018-06-26 05:39:23 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2018-07-03 01:35:58 +0200
commit5c0e2db6194ab2d0f0c7861155489a7c3fdbf0cc (patch)
treeadb2d25aedcb3a9b3f6a7bdc4fe769b647d27250
parenta49b7c75de8b4cbd1ad633871aef4c10d4209807 (diff)
downloaddpdk-5c0e2db6194ab2d0f0c7861155489a7c3fdbf0cc.zip
dpdk-5c0e2db6194ab2d0f0c7861155489a7c3fdbf0cc.tar.gz
dpdk-5c0e2db6194ab2d0f0c7861155489a7c3fdbf0cc.tar.xz
net/mlx5: add warning message for Multi-Packet RQ
If Multi-Packet RQ is enabled but not supported by device or kernel/library, print out a warning message. Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
-rw-r--r--drivers/net/mlx5/mlx5.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 49b4005..f0e6ed7 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -1024,8 +1024,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
DRV_LOG(WARNING, "Rx CQE compression isn't supported");
config.cqe_comp = 0;
}
- config.mprq.enabled = config.mprq.enabled && mprq;
- if (config.mprq.enabled) {
+ if (config.mprq.enabled && mprq) {
if (config.mprq.stride_num_n > mprq_max_stride_num_n ||
config.mprq.stride_num_n < mprq_min_stride_num_n) {
config.mprq.stride_num_n =
@@ -1039,6 +1038,9 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
}
config.mprq.min_stride_size_n = mprq_min_stride_size_n;
config.mprq.max_stride_size_n = mprq_max_stride_size_n;
+ } else if (config.mprq.enabled && !mprq) {
+ DRV_LOG(WARNING, "Multi-Packet RQ isn't supported");
+ config.mprq.enabled = 0;
}
eth_dev = rte_eth_dev_allocate(name);
if (eth_dev == NULL) {