Linux-2.2.20pre10
Review
Quoted 2 lines
(quoted diff) +1
-1-#define MAX_ETH_CARDS 16 +#define MAX_ETH_CARDS 32
I'd like this one in the kernel too since I've also patched it (although I set it to 64 not to worry anymore). It's not uncommon to put 4 or 5 quad ethernet cards into a system that already hosts an on-board interface. I think that at spare time, I'll backport net_init.c from 2.4 which doesn't have sort of these limitations.
BTW, there are also a few very little patches that would have to be considered :
Kai Germaschewski proposed this single-liner fix for HiSax that could not be linked into the kernel, but I don't see it here (perhaps he simply forgot it, or perhaps I'm wrong) :
drivers/isdn/hisax/config.c Fri Sep 7 20:59:59 2001 renamed from drivers/isdn/hisax/config.c Fri Sep 7 20:33:48 2001 +1 -1
@@ -436,7 +436,7 @@ } #ifndef MODULE -static void __init +void __init HiSax_setup(char *str, int *ints) {
int i, j, argc;
I also found that sometimes, menuconfig didn't refresh correctly (in the CPU dialog window). This patch fixes it for me :
scripts/lxdialog/checklist.c Mon Feb 1 21:03:20 1999 renamed from scripts/lxdialog/checklist.c Wed Mar 28 18:00:02 2001 +2 -2
@@ -108,8 +104,8 @@ print_button (dialog, "Select", y, x, selected == 0); print_button (dialog, " Help ", y, x + 14, selected == 1); - /* wmove(dialog, y, x+1 + 14*selected); - wrefresh (dialog);*/ + /* wmove(dialog, y, x+1 + 14*selected);*/ + wrefresh (dialog); } /*
This one, back-ported from 2.4, avoids eventual problems with parenthesis in menuconfig choices :
scripts/Menuconfig Wed Jun 6 00:21:29 2001 renamed from scripts/Menuconfig Wed Jun 6 00:02:45 2001 +1 -1
@@ -347,7 +347,7 @@ echo -e " function $firstchoice () \ - { l_choice '$title' \"$choices\" $current ;}" >>MCradiolists + { l_choice '$title' \"$choices\" \"$current\" ;}" >>MCradiolists } } # END load_functions()
Robert M. Love pointed out that the command line parse could forget arguments if either MAX_INIT_ENVS or MAX_INIT_ARGS were reached, and his patch seems to fix it correctly :
init/main.c Sat Sep 8 23:24:13 2001 renamed from init/main.c Sat Sep 8 23:11:00 2001 +2 -2
@@ -1292,11 +1292,11 @@ */ if (strchr(line,'=')) { if (envs >= MAX_INIT_ENVS) - break; + continue; envp_init[++envs] = line; } else { if (args >= MAX_INIT_ARGS) - break; + continue; argv_init[++args] = line; } }
Well, that's all for now ; I think that none of them is at risk, so if you could apply them, that'd be great.
Thanks,
Willy
Quoted 3 lines · Willy TARREAU
Robert M. Love pointed out that the command line parse could forget arguments if either
MAX_INIT_ENVSorMAX_INIT_ARGSwere reached, and his patch seems to fix it correctly :
I have posted posted this patch multiple times for 2.2 and 2.4, to no avail -- in fact, it seems no one even thinks this is a bug.
to me, it is pretty clear that hitting MAX_INIT_ENVS _or_ MAX_INIT_ARGS kills the parse_options loop, when that should not occur until both are hit -- thus, this patch switches the breaks to continues.
thanks for noticing, I hope it is applied.
Quoted 16 lines
init/main.c Sat Sep 8 23:24:13 2001 renamed from init/main.c Sat Sep 8 23:11:00 2001 +2
-2@@ -1292,11 +1292,11 @@ */ if (strchr(line,'=')) { if (envs >= MAX_INIT_ENVS) - break; + continue; envp_init[++envs] = line; } else { if (args >= MAX_INIT_ARGS) - break; + continue; argv_init[++args] = line; } }
Signature · 3 lines
Robert M. Love rml at ufl.edu rml at tech9.net