summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_ethdev.c
diff options
context:
space:
mode:
authorShahaf Shuler <shahafs@mellanox.com>2018-03-26 13:12:18 +0300
committerFerruh Yigit <ferruh.yigit@intel.com>2018-03-30 14:08:44 +0200
commita1572312f713f0b218063c6213499e36a8b47c86 (patch)
tree351a37e07fd10ae93c6ac654ff4ca124c2161609 /drivers/net/mlx5/mlx5_ethdev.c
parent66669155da323e6d8516c3b276888ee0f3cbd799 (diff)
downloaddpdk-a1572312f713f0b218063c6213499e36a8b47c86.zip
dpdk-a1572312f713f0b218063c6213499e36a8b47c86.tar.gz
dpdk-a1572312f713f0b218063c6213499e36a8b47c86.tar.xz
net/mlx5: enforce RSS key length limitation
RSS hash key must be 40 Bytes long. Cc: stable@dpdk.org Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_ethdev.c')
-rw-r--r--drivers/net/mlx5/mlx5_ethdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index f5511ce..365101a 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -329,7 +329,8 @@ mlx5_dev_configure(struct rte_eth_dev *dev)
if (use_app_rss_key &&
(dev->data->dev_conf.rx_adv_conf.rss_conf.rss_key_len !=
rss_hash_default_key_len)) {
- /* MLX5 RSS only support 40bytes key. */
+ DRV_LOG(ERR, "port %u RSS key len must be %zu Bytes long",
+ dev->data->port_id, rss_hash_default_key_len);
rte_errno = EINVAL;
return -rte_errno;
}