[ewg] [PATCH 3/7] Backport patches for rdma cm patches

David J. Wilder dwilder at us.ibm.com
Fri Dec 11 14:48:11 PST 2009


Backport for ipv6_dev_get_saddr() for kernel v2.6.25 and earlier.
Patch name: core_0000_v2_6_25_ip6_dev_get_saddr.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.22
2.6.23
2.6.24
2.6.25
2.6.25_suse11
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-10 11:45:06.000000000 -0600
+++ ofa_kernel/drivers/infiniband/core/addr.c	2009-12-10 11:57:33.000000000 -0600
@@ -248,8 +248,7 @@ static int addr6_resolve(struct sockaddr
 		goto put;
 
 	if (ipv6_addr_any(&fl.fl6_src)) {
-		ret = ipv6_dev_get_saddr(&init_net, ip6_dst_idev(dst)->dev,
-					 &fl.fl6_dst, 0, &fl.fl6_src);
+		ret = ipv6_get_saddr(dst, &fl.fl6_dst, &fl.fl6_src);
 		if (ret)
 			goto put;
 





More information about the ewg mailing list