[ofw][patch] fix for receiving mcast and bcast
Tzachi Dar
tzachid at mellanox.co.il
Sun Aug 24 01:12:36 PDT 2008
Applied in 1497.
Thanks
Tzachi
________________________________
From: ofw-bounces at lists.openfabrics.org
[mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Slava Strebkov
Sent: Thursday, August 07, 2008 11:43 AM
To: ofw at lists.openfabrics.org
Subject: [ofw][patch] fix for receiving mcast and bcast
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/20080824/198922fe/attachment.html>
More information about the ofw
mailing list