From d09290161e33574d8f0fa900ebe739214d17fe1a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 17 Jul 2009 22:48:31 +0100 Subject: [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. --- src/net/arp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/arp.c') diff --git a/src/net/arp.c b/src/net/arp.c index 8bc83958a..124a856eb 100644 --- a/src/net/arp.c +++ b/src/net/arp.c @@ -156,7 +156,7 @@ int arp_resolve ( struct net_device *netdev, struct net_protocol *net_protocol, /* Transmit ARP request */ if ( ( rc = net_tx ( iobuf, netdev, &arp_protocol, - ll_protocol->ll_broadcast ) ) != 0 ) + netdev->ll_broadcast ) ) != 0 ) return rc; return -ENOENT; -- cgit v1.2.3-55-g7522