summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_prm.h
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_prm.h
parentcd24d526395e97f57ec4c1db89efa970ffabc1d1 (diff)
downloaddpdk-c388a2f6d71b77e318036171adf44824f3211ec4.zip
dpdk-c388a2f6d71b77e318036171adf44824f3211ec4.tar.gz
dpdk-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_prm.h')
-rw-r--r--drivers/net/mlx5/mlx5_prm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_prm.h b/drivers/net/mlx5/mlx5_prm.h
index f9fae1e..0870d32 100644
--- a/drivers/net/mlx5/mlx5_prm.h
+++ b/drivers/net/mlx5/mlx5_prm.h
@@ -21,6 +21,9 @@
#include <rte_vect.h>
#include "mlx5_autoconf.h"
+/* RSS hash key size. */
+#define MLX5_RSS_HASH_KEY_LEN 40
+
/* Get CQE owner bit. */
#define MLX5_CQE_OWNER(op_own) ((op_own) & MLX5_CQE_OWNER_MASK)