]> git.openfabrics.org - ~emulex/for-vlad/compat-rdma.git/commitdiff
backports: Correct ib core RHEL6.2 backports patch
authorVipul Pandya <vipul@chelsio.com>
Tue, 15 May 2012 11:31:42 +0000 (17:01 +0530)
committerVipul Pandya vipul@chelsio.com <vipulp@openfabrics.org>
Tue, 15 May 2012 15:23:56 +0000 (08:23 -0700)
Source IPv4 address was not correctly resolved with this patch. Due to
this iw_cxgb4 driver was hitting a panic.

Use rt_src from routing table entry to correctly resolve the source IPv4
address.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
backports/2.6.32-EL6.2/04-ib-core-Add-RHEL6.2-backports.patch

index ae881d83d6edfa386af903a99e10ba37a45b3f41..26fa757af9422cf0e3ad11fe60cb1393b0f52bdc 100644 (file)
@@ -55,7 +55,7 @@ index e9cf51b..f72272c 100644
        }
        src_in->sin_family = AF_INET;
 -      src_in->sin_addr.s_addr = fl4.saddr;
-+      src_in->sin_addr.s_addr = src_ip;
++      src_in->sin_addr.s_addr = rt->rt_src;
  
 -      if (rt->dst.dev->flags & IFF_LOOPBACK) {
 +      if (rt->idev->dev->flags & IFF_LOOPBACK) {