diff -Nru linux-2.6.28-vanilla/Documentation/filesystems/nfsroot.txt linux-2.6.28/Documentation/filesystems/nfsroot.txt --- linux-2.6.28-vanilla/Documentation/filesystems/nfsroot.txt 2008-12-25 00:26:37.000000000 +0100 +++ linux-2.6.28/Documentation/filesystems/nfsroot.txt 2008-12-28 12:14:58.000000000 +0100 @@ -157,6 +157,16 @@ Default: any +ipmtu= + + This parameter tells the kernel to override default MTU size to specified + . Useful in cases where NFS server have jumbo frames enabled and + client can't connect via UDP because of default MTU value (in ethernet + usually 1500 bytes). With this option before bringing interface up, kernel + will set the passed MTU size. In case of NFS-root booting server and client + can use UDP jumbo frames (NFS's rsize and wsize set to 8192 for instance). + + 3.) Boot Loader diff -Nru linux-2.6.28-vanilla/Documentation/kernel-parameters.txt linux-2.6.28/Documentation/kernel-parameters.txt --- linux-2.6.28-vanilla/Documentation/kernel-parameters.txt 2008-12-25 00:26:37.000000000 +0100 +++ linux-2.6.28/Documentation/kernel-parameters.txt 2008-12-28 12:14:58.000000000 +0100 @@ -956,6 +956,9 @@ See comment before ip2_setup() in drivers/char/ip2/ip2base.c. + ipmtu= [IP_PNP] + See Documentation/filesystems/nfsroot.txt. + ips= [HW,SCSI] Adaptec / IBM ServeRAID controller See header of drivers/scsi/ips.c. diff -Nru linux-2.6.28-vanilla/net/ipv4/ipconfig.c linux-2.6.28/net/ipv4/ipconfig.c --- linux-2.6.28-vanilla/net/ipv4/ipconfig.c 2008-12-25 00:26:37.000000000 +0100 +++ linux-2.6.28/net/ipv4/ipconfig.c 2008-12-28 12:14:58.000000000 +0100 @@ -113,6 +113,8 @@ */ int ic_set_manually __initdata = 0; /* IPconfig parameters set manually */ +unsigned int ic_mtu __initdata = 0; /* IPconfig MTU parameter: 0 - defaults, other - override */ + static int ic_enable __initdata = 0; /* IP config enabled? */ /* Protocol choice */ @@ -216,6 +218,11 @@ able &= ic_proto_enabled; if (ic_proto_enabled && !able) continue; + if (ic_mtu > 0) + { + printk(KERN_ERR "IP-Config: Overriding %s MTU to %d bytes\n", dev->name, ic_mtu); + dev->mtu = ic_mtu; + } oflags = dev->flags; if (dev_change_flags(dev, oflags | IFF_UP) < 0) { printk(KERN_ERR "IP-Config: Failed to open %s\n", dev->name); @@ -1533,6 +1540,15 @@ return 1; } +static int __init mtu_config_setup(char *str) +{ + if (!str) + return 0; + ic_mtu = simple_strtoul(str, &str, 0); + return 1; +} + __setup("ip=", ip_auto_config_setup); +__setup("ipmtu=", mtu_config_setup); __setup("nfsaddrs=", nfsaddrs_config_setup); __setup("dhcpclass=", vendor_class_identifier_setup);