[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/trunk@445 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_port.c

index 64a71d7..2b50a4c 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