mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 02:50:25 +03:00
[netdevice] Make ll_broadcast per-netdevice rather than per-ll_protocol
IPoIB has a link-layer broadcast address that varies according to the partition key. We currently go through several contortions to pretend that the link-layer address is a fixed constant; by making the broadcast address a property of the network device rather than the link-layer protocol it will be possible to simplify IPoIB's broadcast handling.
This commit is contained in:
@@ -440,8 +440,7 @@ int aoe_attach ( struct ata_device *ata, struct net_device *netdev,
|
||||
return -ENOMEM;
|
||||
aoe->refcnt.free = aoe_free;
|
||||
aoe->netdev = netdev_get ( netdev );
|
||||
memcpy ( aoe->target, ethernet_protocol.ll_broadcast,
|
||||
sizeof ( aoe->target ) );
|
||||
memcpy ( aoe->target, netdev->ll_broadcast, sizeof ( aoe->target ) );
|
||||
aoe->tag = AOE_TAG_MAGIC;
|
||||
aoe->timer.expired = aoe_timer_expired;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user