]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[IPoIB] When processing received ARP, only check remote LID
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Aug 2006 23:32:29 +0000 (23:32 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Aug 2006 23:32:29 +0000 (23:32 +0000)
if endpoint's DLID is non-zero.

Fix suggested by Tzachi Dar (tzachid@mellanox.co.il)

git-svn-id: svn://openib.tc.cornell.edu/gen1@445 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/ipoib/kernel/ipoib_port.c

index 64a71d720507aea5aede76ded4e5f4a11a7f1d2b..2b50a4ca57de6a96b4323c4d3ec5d3da539be3d9 100644 (file)
@@ -2274,7 +2274,8 @@ __recv_arp(
                         */\r
                        *pp_src = NULL;\r
                }\r
-               else if( (*pp_src)->dlid != p_wc->recv.ud.remote_lid )\r
+               else if( (*pp_src)->dlid &&\r
+                       (*pp_src)->dlid != p_wc->recv.ud.remote_lid )\r
                {\r
                        /* Out of date!  Destroy the endpoint and replace it. */\r
                        __endpt_mgr_remove( p_port, *pp_src );\r