summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_defs.h
diff options
context:
space:
mode:
authorMoti Haimovsky <motih@mellanox.com>2018-07-15 20:31:39 +0300
committerThomas Monjalon <thomas@monjalon.net>2018-07-26 14:05:52 +0200
commit79d0989213cd39decfe802cc42e334db4f0978f0 (patch)
tree2d919fe3800a4eb5edc18585b1acec0ca414f115 /drivers/net/mlx5/mlx5_defs.h
parent21174f2a5cf93fe92fac74ea5a93b51b67e5dd38 (diff)
downloaddpdk-next-eventdev-79d0989213cd39decfe802cc42e334db4f0978f0.zip
dpdk-next-eventdev-79d0989213cd39decfe802cc42e334db4f0978f0.tar.gz
dpdk-next-eventdev-79d0989213cd39decfe802cc42e334db4f0978f0.tar.xz
net/mlx5: fix build with old kernels
This commit fixes compilation errors due to missing definitions found when compiling mlx5 PMD from DPDK 17.11-LTS on Ubuntu 12.4 with kernel 3.15. Fixes: 75ef62a94301 ("net/mlx5: fix link speed capability information") Fixes: 5bfc9fc112dd ("net/mlx5: use static assert for compile-time sanity checks") Cc: stable@dpdk.org Signed-off-by: Moti Haimovsky <motih@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_defs.h')
-rw-r--r--drivers/net/mlx5/mlx5_defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h
index f6ec415..439cc15 100644
--- a/drivers/net/mlx5/mlx5_defs.h
+++ b/drivers/net/mlx5/mlx5_defs.h
@@ -128,4 +128,9 @@
/* Cache size of mempool for Multi-Packet RQ. */
#define MLX5_MPRQ_MP_CACHE_SZ 32
+/* Definition of static_assert found in /usr/include/assert.h */
+#ifndef HAVE_STATIC_ASSERT
+#define static_assert _Static_assert
+#endif
+
#endif /* RTE_PMD_MLX5_DEFS_H_ */