[openib-general] [PATCH] Small change to addr.c for iWARP support

Tom Tucker tom at opengridcomputing.com
Fri Feb 24 07:38:33 PST 2006


Two changes to addr.c for iWARP:

- Recognition of RDMA_NODE_RNIC in copy_addr.

- Remove filter for ARPHRD_INFINIBAND in addr_arp_recv


Signed-off-by: Tom Tucker <tom at opengridcomputing.com>

Index: addr.c
===================================================================
--- addr.c	(revision 5460)
+++ addr.c	(working copy)
@@ -73,6 +73,9 @@
 	case ARPHRD_INFINIBAND:
 		dev_addr->dev_type = RDMA_NODE_IB_CA;
 		break;
+	case ARPHRD_ETHER:
+		dev_addr->dev_type = RDMA_NODE_RNIC;
+		break;
 	default:
 		return -EADDRNOTAVAIL;
 	}
@@ -335,8 +338,7 @@
 
 	arp_hdr = (struct arphdr *) skb->nh.raw;
 
-	if (dev->type == ARPHRD_INFINIBAND &&
-	    (arp_hdr->ar_op == __constant_htons(ARPOP_REQUEST) ||
+	if ((arp_hdr->ar_op == __constant_htons(ARPOP_REQUEST) ||
 	     arp_hdr->ar_op == __constant_htons(ARPOP_REPLY)))
 		set_timeout(jiffies);
 




More information about the general mailing list