[ofw][patch] fix for receiving mcast and bcast
Slava Strebkov
slavas at voltaire.com
Thu Aug 7 01:43:07 PDT 2008
Hi,
The following allows receiving of multicast over IPoIB by changing
Ethernet address.
Fixed problem with broadcast mac address.
Index: ulp/ipoib/kernel/ipoib_port.c
===================================================================
--- ulp/ipoib/kernel/ipoib_port.c (revision 1468)
+++ ulp/ipoib/kernel/ipoib_port.c (working copy)
@@ -2160,9 +2160,16 @@
p_eth->hdr.src = p_src->mac;
p_eth->hdr.dst = p_dst->mac;
- if (p_dst->h_mcast) {
+ if ( p_eth->hdr.dst.addr[0] == 1 &&
+ p_eth->hdr.type == ETH_PROT_TYPE_IP &&
+ p_eth->hdr.dst.addr[2] == 0x5E)
+ {
+ p_eth->hdr.dst.addr[1] = 0;
+ p_eth->hdr.dst.addr[3] = p_eth->hdr.dst.addr[3] &
0x7f;
+ }
+ if (p_dst->h_mcast)
p_dst->is_in_use = TRUE;
- }
+
IPOIB_EXIT( IPOIB_DBG_RECV );
return IB_SUCCESS;
}
Slava
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080807/be55ae2c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipoib_recv_mcast_dhcp.diff
Type: application/octet-stream
Size: 668 bytes
Desc: ipoib_recv_mcast_dhcp.diff
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080807/be55ae2c/attachment.obj>
More information about the ofw
mailing list