| To: | ravinandan.arakali@xxxxxxxx |
|---|---|
| Subject: | Re: [PATCH 2.6.9-rc2 5/8] S2io: module loadable parameters |
| From: | Jeff Garzik <jgarzik@xxxxxxxxx> |
| Date: | Thu, 14 Oct 2004 10:53:28 -0400 |
| Cc: | "'Francois Romieu'" <romieu@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, leonid.grossman@xxxxxxxx, raghavendra.koushik@xxxxxxxx, rapuru.sriram@xxxxxxxx |
| In-reply-to: | <004e01c4b18b$4af2c090$6c10100a@S2IOtech.com> |
| References: | <004e01c4b18b$4af2c090$6c10100a@S2IOtech.com> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922 |
Major objections to this patch. Comments: 1) Should use new module_param() not older, less-type-strict MODULE_PARM() in 2.6.x kernels 2) don't create individual module options when arrays are far better suited to the task. The following technique simply bloats up the code and makes use of loops impossible: +static unsigned int tx_fifo_len_0 = DEFAULT_FIFO_LEN; +static unsigned int tx_fifo_len_1; +static unsigned int tx_fifo_len_2; +static unsigned int tx_fifo_len_3; +static unsigned int tx_fifo_len_4; +static unsigned int tx_fifo_len_5; +static unsigned int tx_fifo_len_6; +static unsigned int tx_fifo_len_7; 3) do not enable NETIF_F_SG without also enabling a checksum-offload/TSO mode of some sort - dev->features |= NETIF_F_SG | NETIF_F_IP_CSUM; 4) I am unsure of the value of verify_load_parm(). Besides being huge, due to issue #2 (above), typically user module option limits should be documented, not necessarily tested. Unix philosophy "root allowed to shoot themselves in the foot" |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2.6.9-rc2 4/8] S2io: hardware fixes, Jeff Garzik |
|---|---|
| Next by Date: | Re: [PATCH 2.6.9-rc2 6/8] S2io: new txd allocation, Jeff Garzik |
| Previous by Thread: | [PATCH 2.6.9-rc2 5/8] S2io: module loadable parameters, Ravinandan Arakali |
| Next by Thread: | [PATCH 2.6.9-rc2 6/8] S2io: new txd allocation, Ravinandan Arakali |
| Indexes: | [Date] [Thread] [Top] [All Lists] |