From: Michael Brown Date: Mon, 6 Jul 2015 12:06:55 +0000 (+0100) Subject: [ipoib] Transmit multicast packets as broadcasts X-Git-Tag: v1.20.1~787 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=652e5a96db85a86633b5c40fc1699ae5c8039942;p=thirdparty%2Fipxe.git [ipoib] Transmit multicast packets as broadcasts Multicast MAC addresses will never have REMAC cache entries, and the corresponding multicast IPoIB MAC address cannot be obtained simply by issuing an ARP request. For the trivial volume of multicast packets that we expect to send in any realistic scenario, the simplest solution is to send them as broadcasts instead. Reported-by: Wissam Shoukair Signed-off-by: Michael Brown --- diff --git a/src/drivers/net/ipoib.c b/src/drivers/net/ipoib.c index bec4bbae9..7ecb2c5dd 100644 --- a/src/drivers/net/ipoib.c +++ b/src/drivers/net/ipoib.c @@ -146,8 +146,10 @@ static struct ipoib_mac * ipoib_find_remac ( struct ipoib_device *ipoib, const struct ipoib_remac *remac ) { struct ipoib_peer *peer; - /* Check for broadcast REMAC */ - if ( is_broadcast_ether_addr ( remac ) ) + /* Check for broadcast or multicast REMAC. We transmit + * multicasts as broadcasts for simplicity. + */ + if ( is_multicast_ether_addr ( remac ) ) return &ipoib->broadcast; /* Try to find via REMAC cache */