Commit b0fb9913 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Change MAXIMQ to 1024 since Ryan says the kernel now auto creates

them, up to a max of 1024.
parent 2dd1c2c6
...@@ -97,7 +97,8 @@ my $MKEXTRAFS = "/usr/local/etc/emulab/mkextrafs.pl"; ...@@ -97,7 +97,8 @@ my $MKEXTRAFS = "/usr/local/etc/emulab/mkextrafs.pl";
my $CTRLIPFILE = "/var/emulab/boot/myip"; my $CTRLIPFILE = "/var/emulab/boot/myip";
my $IMQDB = "/var/emulab/db/imqdb"; my $IMQDB = "/var/emulab/db/imqdb";
my $MAXIMQ = 64; # The kernel will auto create up to 1024 IMQs
my $MAXIMQ = 1024;
my $CONTROL_IFNUM = 999; my $CONTROL_IFNUM = 999;
my $CONTROL_IFDEV = "eth${CONTROL_IFNUM}"; my $CONTROL_IFDEV = "eth${CONTROL_IFNUM}";
...@@ -392,13 +393,10 @@ sub vz_rootPreConfig { ...@@ -392,13 +393,10 @@ sub vz_rootPreConfig {
# XXX all this network config stuff should be done in PreConfigNetwork, # XXX all this network config stuff should be done in PreConfigNetwork,
# but we can't rmmod the IMQ module to change the config, so no point. # but we can't rmmod the IMQ module to change the config, so no point.
# #
# Ug, pre-create a bunch of imq devices, since adding new ones
# does not work right yet.
mysystem("$MODPROBE imq"); mysystem("$MODPROBE imq");
mysystem("$MODPROBE ipt_IMQ"); mysystem("$MODPROBE ipt_IMQ");
# Create a DB to manage them. # Create a DB to manage them.
my %MDB; my %MDB;
if (!dbmopen(%MDB, $IMQDB, 0660)) { if (!dbmopen(%MDB, $IMQDB, 0660)) {
print STDERR "*** Could not create $IMQDB\n"; print STDERR "*** Could not create $IMQDB\n";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment