aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/lguest_net.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2007-10-21 21:03:27 -0400
committerRusty Russell <rusty@rustcorp.com.au>2007-10-23 01:49:51 -0400
commit48245cc0708d49d1d0566b9fa617ad6c5f4c6934 (patch)
treeb396fd2d1ab185aab20894570e7e84bd4f656355 /drivers/net/lguest_net.c
parent3c6b5bfa3cf3b4057788e08482a468cc3bc00780 (diff)
Remove fixed limit on number of guests, and lguests array.
Back when we had all the Guest state in the switcher, we had a fixed array of them. This is no longer necessary. If we switch the network code to using random_ether_addr (46 bits is enough to avoid clashes), we can get rid of the concept of "guest id" altogether. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/net/lguest_net.c')
-rw-r--r--drivers/net/lguest_net.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/lguest_net.c b/drivers/net/lguest_net.c
index abce2ee8430a..e255476f224f 100644
--- a/drivers/net/lguest_net.c
+++ b/drivers/net/lguest_net.c
@@ -463,12 +463,7 @@ static int lguestnet_probe(struct lguest_device *lgdev)
463 /* Ethernet defaults with some changes */ 463 /* Ethernet defaults with some changes */
464 ether_setup(dev); 464 ether_setup(dev);
465 dev->set_mac_address = NULL; 465 dev->set_mac_address = NULL;
466 466 random_ether_addr(dev->dev_addr);
467 dev->dev_addr[0] = 0x02; /* set local assignment bit (IEEE802) */
468 dev->dev_addr[1] = 0x00;
469 memcpy(&dev->dev_addr[2], &lguest_data.guestid, 2);
470 dev->dev_addr[4] = 0x00;
471 dev->dev_addr[5] = 0x00;
472 467
473 dev->open = lguestnet_open; 468 dev->open = lguestnet_open;
474 dev->stop = lguestnet_close; 469 dev->stop = lguestnet_close;