Commit 59b7b1d8 authored by Mike Hibler's avatar Mike Hibler

DB changes to support experiment-wide jumbo frames setting.

parent facf94fb
......@@ -2091,6 +2091,7 @@ CREATE TABLE `experiments` (
`delay_capacity` tinyint(3) unsigned default NULL,
`savedisk` tinyint(1) NOT NULL default '0',
`skipvlans` tinyint(1) NOT NULL default '0',
`usejumboframes` tinyint(1) NOT NULL default '0',
`locpiper_pid` int(11) default '0',
`locpiper_port` int(11) default '0',
`instance_idx` int(10) unsigned NOT NULL default '0',
......
......@@ -782,6 +782,7 @@ REPLACE INTO table_regex VALUES ('experiments','eid_idx','text','regex','^[\\d]+
REPLACE INTO table_regex VALUES ('experiments','multiplex_factor','int','redirect','default:tinyint',0,0,NULL);
REPLACE INTO table_regex VALUES ('experiments','forcelinkdelays','int','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('experiments','uselinkdelays','int','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('experiments','usejumboframes','int','redirect','default:boolean',0,1,NULL);
REPLACE INTO table_regex VALUES ('experiments','usewatunnels','int','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('experiments','uselatestwadata','int','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('experiments','wa_delay_solverweight','float','redirect','default:float',0,1024,NULL);
......
use strict;
use libdb;
#
# Add a usejumboframes boolean so that an experiment will use 9K jumbo
# frames on all 10Gb+ links if set.
#
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("experiments", "usejumboframes")) {
DBQueryFatal("alter table experiments add ".
" `usejumboframes` tinyint(1) NOT NULL default '0' ".
" after skipvlans");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('experiments','usejumboframes','int','redirect',".
"'default:boolean',0,1,NULL)");
}
return 0;
}
1;
Markdown is supported
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