Skip to content

Commit 1c8bb76

Browse files
James M Leddydavem330
authored andcommitted
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: James M Leddy <james.leddy@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 597b506 commit 1c8bb76

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

drivers/net/ethernet/broadcom/bnx2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ MODULE_FIRMWARE(FW_RV2P_FILE_09_Ax);
8585

8686
static int disable_msi = 0;
8787

88-
module_param(disable_msi, int, 0);
88+
module_param(disable_msi, int, S_IRUGO);
8989
MODULE_PARM_DESC(disable_msi, "Disable Message Signaled Interrupt (MSI)");
9090

9191
typedef enum {

drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,29 +95,29 @@ MODULE_FIRMWARE(FW_FILE_NAME_E1H);
9595
MODULE_FIRMWARE(FW_FILE_NAME_E2);
9696

9797
int bnx2x_num_queues;
98-
module_param_named(num_queues, bnx2x_num_queues, int, 0);
98+
module_param_named(num_queues, bnx2x_num_queues, int, S_IRUGO);
9999
MODULE_PARM_DESC(num_queues,
100100
" Set number of queues (default is as a number of CPUs)");
101101

102102
static int disable_tpa;
103-
module_param(disable_tpa, int, 0);
103+
module_param(disable_tpa, int, S_IRUGO);
104104
MODULE_PARM_DESC(disable_tpa, " Disable the TPA (LRO) feature");
105105

106106
static int int_mode;
107-
module_param(int_mode, int, 0);
107+
module_param(int_mode, int, S_IRUGO);
108108
MODULE_PARM_DESC(int_mode, " Force interrupt mode other than MSI-X "
109109
"(1 INT#x; 2 MSI)");
110110

111111
static int dropless_fc;
112-
module_param(dropless_fc, int, 0);
112+
module_param(dropless_fc, int, S_IRUGO);
113113
MODULE_PARM_DESC(dropless_fc, " Pause on exhausted host ring");
114114

115115
static int mrrs = -1;
116-
module_param(mrrs, int, 0);
116+
module_param(mrrs, int, S_IRUGO);
117117
MODULE_PARM_DESC(mrrs, " Force Max Read Req Size (0..3) (for debug)");
118118

119119
static int debug;
120-
module_param(debug, int, 0);
120+
module_param(debug, int, S_IRUGO);
121121
MODULE_PARM_DESC(debug, " Default debug msglevel");
122122

123123
struct workqueue_struct *bnx2x_wq;

0 commit comments

Comments
 (0)