[ipoib] Resimplify test for received broadcast packets
authorMichael Brown <mcb30@ipxe.org>
Tue, 8 Mar 2016 17:02:24 +0000 (17:02 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 8 Mar 2016 17:43:26 +0000 (17:43 +0000)
commitb5aa51ac62bd36294e1f312d0ac1d742f28fe7b0
treea032cabf893c63d02aed83d24e3d4969a254f1b7
parent076d77264842d4cdefebf8cc3b19b3292608d43d
[ipoib] Resimplify test for received broadcast packets

Commit e62e52b ("[ipoib] Simplify test for received broadcast
packets") relies upon the multicast LID being present in the
destination address vector as passed to ipoib_complete_recv().
Unfortunately, this information is not present in many Infiniband
devices' completion queue entries.

Fix by testing instead for the presence of a multicast GID.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/ipoib.c
src/include/ipxe/ib_packet.h