[ewg] [PATCH 6/7] Backport patches for rdma cm patches
David J. Wilder
dwilder at us.ibm.com
Fri Dec 11 14:48:24 PST 2009
Backport patch for ipv6_chk_addr() for kernel 2.6.21 and earlier.
Patch name: core_0000_w2_6_21_ip_check_addr_patch
This patch should be placed in the following backports directories:
2.6.16_sles10_sp2
2.6.16_sles10_sp3
2.6.18
2.6.18-EL5.2
2.6.18-EL5.3
2.6.18-EL5.4
2.6.19
2.6.20
2.6.21
2.6.9_U6
2.6.9_U7
2.6.9_U8
Signed-of-by: David Wilder <dwilder at us.ibm.com>
---
diff -Naurp ofa_kernel.orig/drivers/infiniband/core/addr.c ofa_kernel/drivers/infiniband/core/addr.c
--- ofa_kernel.orig/drivers/infiniband/core/addr.c 2009-12-07 15:42:33.000000000 -0600
+++ ofa_kernel/drivers/infiniband/core/addr.c 2009-12-07 15:57:24.000000000 -0600
@@ -129,9 +129,8 @@ int rdma_translate_ip(struct sockaddr *a
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
case AF_INET6:
read_lock(&dev_base_lock);
- for_each_netdev(&init_net, dev) {
- if (ipv6_chk_addr(&init_net,
- &((struct sockaddr_in6 *) addr)->sin6_addr,
+ for (dev = dev_base; dev; dev = dev->next) {
+ if (ipv6_chk_addr(&((struct sockaddr_in6 *) addr)->sin6_addr,
dev, 1)) {
ret = rdma_copy_addr(dev_addr, dev, NULL);
break;
More information about the ewg
mailing list