netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 6/7] netxen: add module parameters
@ 2008-08-08  7:08 Dhananjay Phadke
  2008-08-14  8:46 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Dhananjay Phadke @ 2008-08-08  7:08 UTC (permalink / raw)
  To: netdev; +Cc: jeff

Add user tunable params to enable/disable msi/msix, port auto-neg modes.

Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
---
 drivers/net/netxen/netxen_nic_main.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 3c424a8..ee56511 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -50,13 +50,21 @@ static char netxen_nic_driver_string[] = "NetXen Network Driver version "
     NETXEN_NIC_LINUX_VERSIONID;
 
 static int port_mode = NETXEN_PORT_MODE_AUTO_NEG;
+module_param(port_mode, int, 0);
+MODULE_PARM_DESC(port_mode, "Force port mode Auto-Neg XG, 1G or XG");
 
 /* Default to restricted 1G auto-neg mode */
-static int wol_port_mode = 5;
+static int wol_port_mode = NETXEN_PORT_MODE_AUTO_NEG_1G;
+module_param(wol_port_mode, int, 0);
+MODULE_PARM_DESC(wol_port_mode, "Force WOL port mode XG, 1G or Auto-Neg");
 
 static int use_msi = 1;
+module_param(use_msi, bool, 0);
+MODULE_PARM_DESC(use_msi, "Enable or disable MSI interrupts");
 
 static int use_msi_x = 1;
+module_param(use_msi_x, bool, 0);
+MODULE_PARM_DESC(use_msi_x, "Enable or disable MSI-X interrupts");
 
 /* Local functions to NetXen NIC driver */
 static int __devinit netxen_nic_probe(struct pci_dev *pdev,
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 6/7] netxen: add module parameters
  2008-08-08  7:08 [PATCH 6/7] netxen: add module parameters Dhananjay Phadke
@ 2008-08-14  8:46 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2008-08-14  8:46 UTC (permalink / raw)
  To: Dhananjay Phadke; +Cc: netdev

Dhananjay Phadke wrote:
> Add user tunable params to enable/disable msi/msix, port auto-neg modes.
> 
> Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
> ---
>  drivers/net/netxen/netxen_nic_main.c |   10 +++++++++-
>  1 files changed, 9 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
> index 3c424a8..ee56511 100644
> --- a/drivers/net/netxen/netxen_nic_main.c
> +++ b/drivers/net/netxen/netxen_nic_main.c
> @@ -50,13 +50,21 @@ static char netxen_nic_driver_string[] = "NetXen Network Driver version "
>      NETXEN_NIC_LINUX_VERSIONID;
>  
>  static int port_mode = NETXEN_PORT_MODE_AUTO_NEG;
> +module_param(port_mode, int, 0);
> +MODULE_PARM_DESC(port_mode, "Force port mode Auto-Neg XG, 1G or XG");
>  
>  /* Default to restricted 1G auto-neg mode */
> -static int wol_port_mode = 5;
> +static int wol_port_mode = NETXEN_PORT_MODE_AUTO_NEG_1G;
> +module_param(wol_port_mode, int, 0);
> +MODULE_PARM_DESC(wol_port_mode, "Force WOL port mode XG, 1G or Auto-Neg");
>  
>  static int use_msi = 1;
> +module_param(use_msi, bool, 0);
> +MODULE_PARM_DESC(use_msi, "Enable or disable MSI interrupts");
>  
>  static int use_msi_x = 1;
> +module_param(use_msi_x, bool, 0);
> +MODULE_PARM_DESC(use_msi_x, "Enable or disable MSI-X interrupts");

typically it is preferred not add module parameters for each type of 
setting.  drivers should auto-configure themselves, modulo PCI quirks 
and the like.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-14  8:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08  7:08 [PATCH 6/7] netxen: add module parameters Dhananjay Phadke
2008-08-14  8:46 ` Jeff Garzik

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).