diff options
author | Michael Brown | 2009-07-17 23:48:31 +0200 |
---|---|---|
committer | Michael Brown | 2009-07-18 00:02:48 +0200 |
commit | d09290161e33574d8f0fa900ebe739214d17fe1a (patch) | |
tree | 9cb59387262344ed50fc755362154206017ab220 /src/net/aoe.c | |
parent | [ata] Make ATA command issuing partially asynchronous (diff) | |
download | ipxe-d09290161e33574d8f0fa900ebe739214d17fe1a.tar.gz ipxe-d09290161e33574d8f0fa900ebe739214d17fe1a.tar.xz ipxe-d09290161e33574d8f0fa900ebe739214d17fe1a.zip |
[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.
Diffstat (limited to 'src/net/aoe.c')
-rw-r--r-- | src/net/aoe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/aoe.c b/src/net/aoe.c index f274ddf5..839a875b 100644 --- a/src/net/aoe.c +++ b/src/net/aoe.c @@ -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; |