[ewg] [PATCH 1/7] Backport patches for rdma cm patches
David J. Wilder
dwilder at us.ibm.com
Fri Dec 11 14:47:58 PST 2009
Backport for dev_get_by_index() for v2.6.23 and earlier kernels:
Patch Name: core_0000_v2_6_23_dev_get_by_index.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.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-08 15:49:53.000000000 -0600
+++ ofa_kernel/drivers/infiniband/core/addr.c 2009-12-08 15:51:52.000000000 -0600
@@ -106,7 +106,7 @@ int rdma_translate_ip(struct sockaddr *a
int ret = -EADDRNOTAVAIL;
if (dev_addr->bound_dev_if) {
- dev = dev_get_by_index(&init_net, dev_addr->bound_dev_if);
+ dev = dev_get_by_index(dev_addr->bound_dev_if);
if (!dev)
return -ENODEV;
ret = rdma_copy_addr(dev_addr, dev, NULL);
More information about the ewg
mailing list