summaryrefslogtreecommitdiff
path: root/package/network/utils/iproute2/patches/001-rdma-sync-some-IP-headers-with-glibc.patch
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2018-07-10 12:19:40 +0200
committerHans Dedecker <dedeckeh@gmail.com>2018-07-10 19:30:12 +0200
commit7e824183726649a32a998930f3f0a6ab360d5d2d (patch)
treec2fd01ebd967b15c7c7629714a073c8c523d229f /package/network/utils/iproute2/patches/001-rdma-sync-some-IP-headers-with-glibc.patch
parent6dac92a42e052f89971762173daabb7fd84742ef (diff)
downloadmtk-20170518-7e824183726649a32a998930f3f0a6ab360d5d2d.zip
mtk-20170518-7e824183726649a32a998930f3f0a6ab360d5d2d.tar.gz
mtk-20170518-7e824183726649a32a998930f3f0a6ab360d5d2d.tar.bz2
iproute2: update to 4.17.0
Update to the latest version of iproute2; see https://lwn.net/Articles/756991/ for a full overview of the changes in 4.17. Remove upstream patch 002-json_print-fix-hidden-64-bit-type-promotion. Backport upstream patch 001-rdma-sync-some-IP-headers-with-glibc fixing rdma compile issue. At the same time re-organize patch numbering so the OpenWRT specific patches start at 100. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package/network/utils/iproute2/patches/001-rdma-sync-some-IP-headers-with-glibc.patch')
-rw-r--r--package/network/utils/iproute2/patches/001-rdma-sync-some-IP-headers-with-glibc.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/network/utils/iproute2/patches/001-rdma-sync-some-IP-headers-with-glibc.patch b/package/network/utils/iproute2/patches/001-rdma-sync-some-IP-headers-with-glibc.patch
new file mode 100644
index 0000000..ed81dff
--- /dev/null
+++ b/package/network/utils/iproute2/patches/001-rdma-sync-some-IP-headers-with-glibc.patch
@@ -0,0 +1,37 @@
+From 5887ff0922a06d978d3271df9f01fcb04fadc75f Mon Sep 17 00:00:00 2001
+From: Hoang Le <hoang.h.le@dektech.com.au>
+Date: Wed, 13 Jun 2018 11:09:56 +0700
+Subject: [PATCH] rdma: sync some IP headers with glibc
+
+In the commit 9a362cc71a45, new userspace header:
+ (i.e rdma/rdma_user_cm.h -> linux/in6.h)
+is included before the kernel space header:
+ (i.e utils.h -> resolv.h -> netinet/in.h).
+
+This leads to unsynchronous some IP headers and compiler got failure
+with error: redefinition of some structs IP.
+
+In this commit, just reorder this including to make them in-sync.
+
+Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
+Acked-by: Leon Romanovsky <leonro@mellanox.com>
+Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
+---
+ rdma/rdma.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/rdma/rdma.h b/rdma/rdma.h
+index fcaf9e69..d4b7ba19 100644
+--- a/rdma/rdma.h
++++ b/rdma/rdma.h
+@@ -15,6 +15,7 @@
+ #include <string.h>
+ #include <errno.h>
+ #include <getopt.h>
++#include <netinet/in.h>
+ #include <libmnl/libmnl.h>
+ #include <rdma/rdma_netlink.h>
+ #include <rdma/rdma_user_cm.h>
+--
+2.16.3
+