* [dpdk-dev] [PATCH] net/mlx5: fix compilation error of rdma-core on ARM
@ 2018-03-14 17:51 Yongseok Koh
2018-03-19 17:56 ` Shahaf Shuler
0 siblings, 1 reply; 2+ messages in thread
From: Yongseok Koh @ 2018-03-14 17:51 UTC (permalink / raw)
To: adrien.mazarguil, nelio.laranjeiro; +Cc: dev, Yongseok Koh
rdma-core v16 has a bug. The following compilation error occurs on ARM
hosts.
In file included
from /auto/mswg/yskoh/git/dpdk.org/drivers/net/mlx5/mlx5_glue.h:16:0,
from /auto/mswg/yskoh/git/dpdk.org/drivers/net/mlx5/mlx5_glue.c:11:
/usr/include/infiniband/mlx5dv.h:144:2: error: unknown type name ‘off_t’
off_t uar_mmap_offset;
^
As a temporary fix, sys/types.h is included in PMD. This has been fixed in
rdma-core v17. This can be removed when all the Linux distros are shipped
with rdma-core v17 or back-ported fix. As of now, RedHat 7.5 is known to
have rdma-core v16.
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
---
drivers/net/mlx5/mlx5_glue.c | 6 ++++++
drivers/net/mlx5/mlx5_vlan.c | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c
index 1c4396ada..484824870 100644
--- a/drivers/net/mlx5/mlx5_glue.c
+++ b/drivers/net/mlx5/mlx5_glue.c
@@ -7,6 +7,12 @@
#include <stddef.h>
#include <stdint.h>
+/*
+* Not needed by this file; included to work around the lack of off_t
+* definition for mlx5dv.h with unpatched rdma-core versions.
+*/
+#include <sys/types.h>
+
/* Verbs headers do not support -pedantic. */
#ifdef PEDANTIC
#pragma GCC diagnostic ignored "-Wpedantic"
diff --git a/drivers/net/mlx5/mlx5_vlan.c b/drivers/net/mlx5/mlx5_vlan.c
index 75c345626..e3f887738 100644
--- a/drivers/net/mlx5/mlx5_vlan.c
+++ b/drivers/net/mlx5/mlx5_vlan.c
@@ -8,6 +8,12 @@
#include <assert.h>
#include <stdint.h>
+/*
+* Not needed by this file; included to work around the lack of off_t
+* definition for mlx5dv.h with unpatched rdma-core versions.
+*/
+#include <sys/types.h>
+
/* Verbs headers do not support -pedantic. */
#ifdef PEDANTIC
#pragma GCC diagnostic ignored "-Wpedantic"
--
2.11.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] net/mlx5: fix compilation error of rdma-core on ARM
2018-03-14 17:51 [dpdk-dev] [PATCH] net/mlx5: fix compilation error of rdma-core on ARM Yongseok Koh
@ 2018-03-19 17:56 ` Shahaf Shuler
0 siblings, 0 replies; 2+ messages in thread
From: Shahaf Shuler @ 2018-03-19 17:56 UTC (permalink / raw)
To: Yongseok Koh, Adrien Mazarguil, Nélio Laranjeiro; +Cc: dev, Yongseok Koh
Wednesday, March 14, 2018 7:52 PM, Yongseok Koh:
> rdma-core v16 has a bug. The following compilation error occurs on ARM
> hosts.
>
> In file included
> from /auto/mswg/yskoh/git/dpdk.org/drivers/net/mlx5/mlx5_glue.h:16:0,
> from /auto/mswg/yskoh/git/dpdk.org/drivers/net/mlx5/mlx5_glue.c:11:
> /usr/include/infiniband/mlx5dv.h:144:2: error: unknown type name ‘off_t’
> off_t uar_mmap_offset;
> ^
>
> As a temporary fix, sys/types.h is included in PMD. This has been fixed in
> rdma-core v17. This can be removed when all the Linux distros are shipped
> with rdma-core v17 or back-ported fix. As of now, RedHat 7.5 is known to
> have rdma-core v16.
>
> Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Applied to next-net-mlx, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-19 17:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-14 17:51 [dpdk-dev] [PATCH] net/mlx5: fix compilation error of rdma-core on ARM Yongseok Koh
2018-03-19 17:56 ` Shahaf Shuler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).