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 <[EMAIL PROTECTED]>
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);
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general