mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1159.1.492 (41c70d9ajmKl_WIpIbJHgGlAPGYUAQ)
Merge scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-2.0-testing.bk into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
This commit is contained in:
commit
4afd68ee83
1 file changed
+7
-3
@@ -124,13 +124,17 @@ void netif_create(netif_be_create_t *create)
|
||||
|
||||
dev->hard_start_xmit = netif_be_start_xmit;
|
||||
dev->get_stats = netif_be_get_stats;
|
||||
memcpy(dev->dev_addr, create->mac, ETH_ALEN);
|
||||
|
||||
/* Disable queuing. */
|
||||
dev->tx_queue_len = 0;
|
||||
|
||||
/* Force a different MAC from remote end. */
|
||||
dev->dev_addr[2] ^= 1;
|
||||
/*
|
||||
* Initialise a dummy MAC address. We choose the numerically largest
|
||||
* non-broadcast address to prevent the address getting stolen by an
|
||||
* Ethernet bridge for STP purposes. (FE:FF:FF:FF:FF:FF)
|
||||
*/
|
||||
memset(dev->dev_addr, 0xFF, ETH_ALEN);
|
||||
dev->dev_addr[0] &= ~0x01;
|
||||
|
||||
if ( (err = register_netdev(dev)) != 0 )
|
||||
{
|
||||
|
||||