From: Jeff Garzik <jgarzik@pobox.com>
To: ravinandan.arakali@s2io.com
Cc: "'Francois Romieu'" <romieu@fr.zoreil.com>,
netdev@oss.sgi.com, leonid.grossman@s2io.com,
raghavendra.koushik@s2io.com, rapuru.sriram@s2io.com
Subject: Re: [PATCH 2.6.9-rc2 5/8] S2io: module loadable parameters
Date: Thu, 14 Oct 2004 10:53:28 -0400 [thread overview]
Message-ID: <416E92E8.5020103@pobox.com> (raw)
In-Reply-To: <004e01c4b18b$4af2c090$6c10100a@S2IOtech.com>
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;
> + dev->features |= NETIF_F_SG;
> + if (cksum_offload_enable)
> + dev->features |= NETIF_F_IP_CSUM;
> if (sp->high_dma_flag == TRUE)
> dev->features |= NETIF_F_HIGHDMA;
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 parent reply other threads:[~2004-10-14 14:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 1:15 [PATCH 2.6.9-rc2 5/8] S2io: module loadable parameters Ravinandan Arakali
2004-10-14 14:53 ` Jeff Garzik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=416E92E8.5020103@pobox.com \
--to=jgarzik@pobox.com \
--cc=leonid.grossman@s2io.com \
--cc=netdev@oss.sgi.com \
--cc=raghavendra.koushik@s2io.com \
--cc=rapuru.sriram@s2io.com \
--cc=ravinandan.arakali@s2io.com \
--cc=romieu@fr.zoreil.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).