Commit 1c8bb760 authored by James M Leddy's avatar James M Leddy Committed by David S. Miller

bnx2[x]: Make module parameters readable

Occasionally users want to know what parameters their Broadcom drivers
are running with. For example, a user may want to know if MSI is
disabled.

This patch has been compile tested.
Signed-off-by: default avatarJames M Leddy <james.leddy@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 597b5068
...@@ -85,7 +85,7 @@ MODULE_FIRMWARE(FW_RV2P_FILE_09_Ax); ...@@ -85,7 +85,7 @@ MODULE_FIRMWARE(FW_RV2P_FILE_09_Ax);
static int disable_msi = 0; static int disable_msi = 0;
module_param(disable_msi, int, 0); module_param(disable_msi, int, S_IRUGO);
MODULE_PARM_DESC(disable_msi, "Disable Message Signaled Interrupt (MSI)"); MODULE_PARM_DESC(disable_msi, "Disable Message Signaled Interrupt (MSI)");
typedef enum { typedef enum {
......
...@@ -95,29 +95,29 @@ MODULE_FIRMWARE(FW_FILE_NAME_E1H); ...@@ -95,29 +95,29 @@ MODULE_FIRMWARE(FW_FILE_NAME_E1H);
MODULE_FIRMWARE(FW_FILE_NAME_E2); MODULE_FIRMWARE(FW_FILE_NAME_E2);
int bnx2x_num_queues; int bnx2x_num_queues;
module_param_named(num_queues, bnx2x_num_queues, int, 0); module_param_named(num_queues, bnx2x_num_queues, int, S_IRUGO);
MODULE_PARM_DESC(num_queues, MODULE_PARM_DESC(num_queues,
" Set number of queues (default is as a number of CPUs)"); " Set number of queues (default is as a number of CPUs)");
static int disable_tpa; static int disable_tpa;
module_param(disable_tpa, int, 0); module_param(disable_tpa, int, S_IRUGO);
MODULE_PARM_DESC(disable_tpa, " Disable the TPA (LRO) feature"); MODULE_PARM_DESC(disable_tpa, " Disable the TPA (LRO) feature");
static int int_mode; static int int_mode;
module_param(int_mode, int, 0); module_param(int_mode, int, S_IRUGO);
MODULE_PARM_DESC(int_mode, " Force interrupt mode other than MSI-X " MODULE_PARM_DESC(int_mode, " Force interrupt mode other than MSI-X "
"(1 INT#x; 2 MSI)"); "(1 INT#x; 2 MSI)");
static int dropless_fc; static int dropless_fc;
module_param(dropless_fc, int, 0); module_param(dropless_fc, int, S_IRUGO);
MODULE_PARM_DESC(dropless_fc, " Pause on exhausted host ring"); MODULE_PARM_DESC(dropless_fc, " Pause on exhausted host ring");
static int mrrs = -1; static int mrrs = -1;
module_param(mrrs, int, 0); module_param(mrrs, int, S_IRUGO);
MODULE_PARM_DESC(mrrs, " Force Max Read Req Size (0..3) (for debug)"); MODULE_PARM_DESC(mrrs, " Force Max Read Req Size (0..3) (for debug)");
static int debug; static int debug;
module_param(debug, int, 0); module_param(debug, int, S_IRUGO);
MODULE_PARM_DESC(debug, " Default debug msglevel"); MODULE_PARM_DESC(debug, " Default debug msglevel");
struct workqueue_struct *bnx2x_wq; struct workqueue_struct *bnx2x_wq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment