mirror of https://github.com/ipxe/ipxe.git
[ipoib] Simplify test for received broadcast packets
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/46/head
parent
ffdf8ea757
commit
e62e52b2b9
|
@ -671,10 +671,8 @@ static void ipoib_complete_recv ( struct ib_device *ibdev __unused,
|
|||
ethhdr->h_protocol = net_proto;
|
||||
|
||||
/* Construct destination address */
|
||||
if ( dest->gid_present &&
|
||||
( memcmp ( &dest->gid, &ipoib->broadcast.mac.gid,
|
||||
sizeof ( dest->gid ) ) == 0 ) ) {
|
||||
/* Broadcast GID; use the Ethernet broadcast address */
|
||||
if ( IB_LID_MULTICAST ( dest->lid ) ) {
|
||||
/* Multicast LID; use the Ethernet broadcast address */
|
||||
memcpy ( ðhdr->h_dest, eth_broadcast,
|
||||
sizeof ( ethhdr->h_dest ) );
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue