On Mon, 2009-12-14 at 15:34 +0200, Vladimir Sokolovsky wrote:
> Hi David,
> ofed_kernel compilation fails on RHEL4.6/7/8.
> Some kernel_addons are missing.
> Please check.
> 
> > Failed:
> > Build failed on x86_64 with linux-2.6.9-67.ELsmp
> > Log:
> > /home/vlad/tmp/ofa_1_5_kernel-20091214-0200_linux-2.6.9-67.ELsmp_x86_64_check/drivers/infiniband/core/cma.c:
> >  In function 'cma_set_mgid':

Hi Vladimir

This patch corrects the build.

Thanks
David
----

This patch creates an if_inet6.h kernel_addon for the 2.6.9-[67,78,89]
kernels.

Signed-off-by: David Wilder <[email protected]>

------------------------------------------------------
 .../backport/2.6.9_U6/include/net/if_inet6.h       |   20 ++++++++++++++++++++
 .../backport/2.6.9_U7/include/net/if_inet6.h       |   20 ++++++++++++++++++++
 .../backport/2.6.9_U8/include/net/if_inet6.h       |   20 ++++++++++++++++++++
 3 files changed, 60 insertions(+), 0 deletions(-)

diff --git a/kernel_addons/backport/2.6.9_U6/include/net/if_inet6.h 
b/kernel_addons/backport/2.6.9_U6/include/net/if_inet6.h
new file mode 100644
index 0000000..4a73daf
--- /dev/null
+++ b/kernel_addons/backport/2.6.9_U6/include/net/if_inet6.h
@@ -0,0 +1,20 @@
+#ifndef _BACKPORT_NET_IF_NET6_H_
+#define _BACKPORT_NET_IF_NET6_H_
+
+#include_next <net/if_inet6.h>
+
+static inline void ipv6_ib_mc_map(struct in6_addr *addr, char *buf)
+{
+       buf[0]  = 0;    /* Reserved */
+       buf[1]  = 0xff; /* Multicast QPN */
+       buf[2]  = 0xff;
+       buf[3]  = 0xff;
+       buf[4]  = 0xff;
+       buf[5]  = 0x12; /* link local scope */
+       buf[6]  = 0x60; /* IPv6 signature */
+       buf[7]  = 0x1b;
+       buf[8]  = 0;    /* P_Key */
+       buf[9]  = 0;
+       memcpy(buf + 10, addr->s6_addr + 6, 10);
+}
+#endif
diff --git a/kernel_addons/backport/2.6.9_U7/include/net/if_inet6.h 
b/kernel_addons/backport/2.6.9_U7/include/net/if_inet6.h
new file mode 100644
index 0000000..4a73daf
--- /dev/null
+++ b/kernel_addons/backport/2.6.9_U7/include/net/if_inet6.h
@@ -0,0 +1,20 @@
+#ifndef _BACKPORT_NET_IF_NET6_H_
+#define _BACKPORT_NET_IF_NET6_H_
+
+#include_next <net/if_inet6.h>
+
+static inline void ipv6_ib_mc_map(struct in6_addr *addr, char *buf)
+{
+       buf[0]  = 0;    /* Reserved */
+       buf[1]  = 0xff; /* Multicast QPN */
+       buf[2]  = 0xff;
+       buf[3]  = 0xff;
+       buf[4]  = 0xff;
+       buf[5]  = 0x12; /* link local scope */
+       buf[6]  = 0x60; /* IPv6 signature */
+       buf[7]  = 0x1b;
+       buf[8]  = 0;    /* P_Key */
+       buf[9]  = 0;
+       memcpy(buf + 10, addr->s6_addr + 6, 10);
+}
+#endif
diff --git a/kernel_addons/backport/2.6.9_U8/include/net/if_inet6.h 
b/kernel_addons/backport/2.6.9_U8/include/net/if_inet6.h
new file mode 100644
index 0000000..4a73daf
--- /dev/null
+++ b/kernel_addons/backport/2.6.9_U8/include/net/if_inet6.h
@@ -0,0 +1,20 @@
+#ifndef _BACKPORT_NET_IF_NET6_H_
+#define _BACKPORT_NET_IF_NET6_H_
+
+#include_next <net/if_inet6.h>
+
+static inline void ipv6_ib_mc_map(struct in6_addr *addr, char *buf)
+{
+       buf[0]  = 0;    /* Reserved */
+       buf[1]  = 0xff; /* Multicast QPN */
+       buf[2]  = 0xff;
+       buf[3]  = 0xff;
+       buf[4]  = 0xff;
+       buf[5]  = 0x12; /* link local scope */
+       buf[6]  = 0x60; /* IPv6 signature */
+       buf[7]  = 0x1b;
+       buf[8]  = 0;    /* P_Key */
+       buf[9]  = 0;
+       memcpy(buf + 10, addr->s6_addr + 6, 10);
+}
+#endif


_______________________________________________
ewg mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg

Reply via email to