summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rss.c
diff options
context:
space:
mode:
authorNelio Laranjeiro <nelio.laranjeiro@6wind.com>2018-07-12 11:30:59 +0200
committerShahaf Shuler <shahafs@mellanox.com>2018-07-12 12:10:03 +0200
commitc388a2f6d71b77e318036171adf44824f3211ec4 (patch)
tree3dc41bcf68353b169c92b71f28f4cc17993951c7 /drivers/net/mlx5/mlx5_rss.c
parentcd24d526395e97f57ec4c1db89efa970ffabc1d1 (diff)
downloaddpdk-next-eventdev-c388a2f6d71b77e318036171adf44824f3211ec4.zip
dpdk-next-eventdev-c388a2f6d71b77e318036171adf44824f3211ec4.tar.gz
dpdk-next-eventdev-c388a2f6d71b77e318036171adf44824f3211ec4.tar.xz
net/mlx5: use a macro for the RSS key size
ConnectX 4-5 support only 40 bytes of RSS key, using a compiled size hash key is not necessary. Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rss.c')
-rw-r--r--drivers/net/mlx5/mlx5_rss.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/mlx5/mlx5_rss.c b/drivers/net/mlx5/mlx5_rss.c
index d69b4c0..b95778a 100644
--- a/drivers/net/mlx5/mlx5_rss.c
+++ b/drivers/net/mlx5/mlx5_rss.c
@@ -50,10 +50,11 @@ mlx5_rss_hash_update(struct rte_eth_dev *dev,
return -rte_errno;
}
if (rss_conf->rss_key && rss_conf->rss_key_len) {
- if (rss_conf->rss_key_len != rss_hash_default_key_len) {
+ if (rss_conf->rss_key_len != MLX5_RSS_HASH_KEY_LEN) {
DRV_LOG(ERR,
- "port %u RSS key len must be %zu Bytes long",
- dev->data->port_id, rss_hash_default_key_len);
+ "port %u RSS key len must be %s Bytes long",
+ dev->data->port_id,
+ RTE_STR(MLX5_RSS_HASH_KEY_LEN));
rte_errno = EINVAL;
return -rte_errno;
}