summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_prm.h
diff options
context:
space:
mode:
authorNĂ©lio Laranjeiro <nelio.laranjeiro@6wind.com>2016-09-21 15:48:12 +0200
committerBruce Richardson <bruce.richardson@intel.com>2016-09-30 12:27:18 +0200
commitc904ae25feb4de94683963a774f726cff5b08a0c (patch)
treebba9ef14c5b2be446b258acf2a16809ed0a3ae58 /drivers/net/mlx5/mlx5_prm.h
parent0c79d5aa1aae3d6d63559e55ce28aa6f81119277 (diff)
downloaddpdk-c904ae25feb4de94683963a774f726cff5b08a0c.zip
dpdk-c904ae25feb4de94683963a774f726cff5b08a0c.tar.gz
dpdk-c904ae25feb4de94683963a774f726cff5b08a0c.tar.xz
net/mlx5: support Mellanox OFED 3.4
Some macros are renamed by Mellanox OFED 3.4. Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_prm.h')
-rw-r--r--drivers/net/mlx5/mlx5_prm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_prm.h b/drivers/net/mlx5/mlx5_prm.h
index 3ef1949..90b47f0 100644
--- a/drivers/net/mlx5/mlx5_prm.h
+++ b/drivers/net/mlx5/mlx5_prm.h
@@ -44,6 +44,8 @@
#pragma GCC diagnostic error "-Wpedantic"
#endif
+#include "mlx5_autoconf.h"
+
/* Get CQE owner bit. */
#define MLX5_CQE_OWNER(op_own) ((op_own) & MLX5_CQE_OWNER_MASK)
@@ -78,6 +80,10 @@
/* Room for inline data in multi-packet WQE. */
#define MLX5_MWQE64_INL_DATA 28
+#ifndef HAVE_VERBS_MLX5_OPCODE_TSO
+#define MLX5_OPCODE_TSO MLX5_OPCODE_LSO_MPW /* Compat with OFED 3.3. */
+#endif
+
/* Subset of struct mlx5_wqe_eth_seg. */
struct mlx5_wqe_eth_seg_small {
uint32_t rsvd0;