mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +03:00
[infiniband] Allow drivers to override the eIPoIB LEMAC
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -956,6 +956,7 @@ static int ipoib_probe ( struct ib_device *ibdev ) {
|
||||
/* Extract hardware address */
|
||||
memcpy ( netdev->hw_addr, &ibdev->gid.s.guid,
|
||||
sizeof ( ibdev->gid.s.guid ) );
|
||||
memcpy ( netdev->ll_addr, ibdev->lemac, ETH_ALEN );
|
||||
|
||||
/* Set local MAC address */
|
||||
memcpy ( &ipoib->mac.gid.s.guid, &ibdev->gid.s.guid,
|
||||
|
||||
Reference in New Issue
Block a user