History

qlcnic: rename module params with module_param_named

Add qlcnic prefix to qlcnic driver module parameters.

Sony Chacko committed 13 years ago

Commit 099f7aa1 parent 5796bd01 file · +16 −16Browse files

Unified · Split

drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c+16−16
@@ -34,21 +34,21 @@ static int qlcnic_mac_learn; · 33 unmodified lines
3434 module_param(qlcnic_mac_learn, int, 0444);
3535 MODULE_PARM_DESC(qlcnic_mac_learn, "Mac Filter (0=disabled, 1=enabled)");
3636
37−static int use_msi = 1;
38−module_param(use_msi, int, 0444);
37+static int qlcnic_use_msi = 1;
3938 MODULE_PARM_DESC(use_msi, "MSI interrupt (0=disabled, 1=enabled");
39+module_param_named(use_msi, qlcnic_use_msi, int, 0444);
4040
41−static int use_msi_x = 1;
42−module_param(use_msi_x, int, 0444);
41+static int qlcnic_use_msi_x = 1;
4342 MODULE_PARM_DESC(use_msi_x, "MSI-X interrupt (0=disabled, 1=enabled");
43+module_param_named(use_msi_x, qlcnic_use_msi_x, int, 0444);
4444
45−static int auto_fw_reset = 1;
46−module_param(auto_fw_reset, int, 0644);
45+static int qlcnic_auto_fw_reset = 1;
4746 MODULE_PARM_DESC(auto_fw_reset, "Auto firmware reset (0=disabled, 1=enabled");
47+module_param_named(auto_fw_reset, qlcnic_auto_fw_reset, int, 0644);
4848
49−static int load_fw_file;
50−module_param(load_fw_file, int, 0444);
49+static int qlcnic_load_fw_file;
5150 MODULE_PARM_DESC(load_fw_file, "Load firmware from (0=flash, 1=file");
51+module_param_named(load_fw_file, qlcnic_load_fw_file, int, 0444);
5252
5353 static int qlcnic_config_npars;
5454 module_param(qlcnic_config_npars, int, 0444);
@@ -317,7 +317,7 @@ static void qlcnic_enable_msi_legacy(struct qlcnic_adapter *adapter) · 262 unmodified lines
317317 struct qlcnic_hardware_context *ahw = adapter->ahw;
318318 struct pci_dev *pdev = adapter->pdev;
319319
320− if (use_msi && !pci_enable_msi(pdev)) {
320+ if (qlcnic_use_msi && !pci_enable_msi(pdev)) {
321321 adapter->flags |= QLCNIC_MSI_ENABLED;
322322 offset = msi_tgt_status[adapter->ahw->pci_func];
323323 adapter->tgt_status_reg = qlcnic_get_ioaddr(adapter->ahw,
@@ -631,7 +631,7 @@ qlcnic_check_options(struct qlcnic_adapter *adapter) · 307 unmodified lines
631631 adapter->max_rxd = MAX_RCV_DESCRIPTORS_1G;
632632 }
633633
634− adapter->ahw->msix_supported = !!use_msi_x;
634+ adapter->ahw->msix_supported = !!qlcnic_use_msi_x;
635635
636636 adapter->num_txd = MAX_CMD_DESCRIPTORS;
637637
@@ -961,7 +961,7 @@ qlcnic_start_firmware(struct qlcnic_adapter *adapter) · 323 unmodified lines
961961 else if (!err)
962962 goto check_fw_status;
963963
964− if (load_fw_file)
964+ if (qlcnic_load_fw_file)
965965 qlcnic_request_firmware(adapter);
966966 else {
967967 err = qlcnic_check_flash_fw_ver(adapter);
@@ -2558,7 +2558,7 @@ qlcnic_check_health(struct qlcnic_adapter *adapter) · 1590 unmodified lines
25582558 if (adapter->need_fw_reset)
25592559 goto detach;
25602560
2561− if (adapter->ahw->reset_context && auto_fw_reset) {
2561+ if (adapter->ahw->reset_context && qlcnic_auto_fw_reset) {
25622562 qlcnic_reset_hw_context(adapter);
25632563 adapter->netdev->trans_start = jiffies;
25642564 }
@@ -2573,7 +2573,7 @@ qlcnic_check_health(struct qlcnic_adapter *adapter) · 8 unmodified lines
25732573
25742574 qlcnic_dev_request_reset(adapter);
25752575
2576− if (auto_fw_reset)
2576+ if (qlcnic_auto_fw_reset)
25772577 clear_bit(__QLCNIC_FW_ATTACHED, &adapter->state);
25782578
25792579 dev_err(&adapter->pdev->dev, "firmware hang detected\n");
@@ -2598,8 +2598,8 @@ detach: · 18 unmodified lines
25982598 adapter->dev_state = (state == QLCNIC_DEV_NEED_QUISCENT) ? state :
25992599 QLCNIC_DEV_NEED_RESET;
26002600
2601− if (auto_fw_reset &&
2602− !test_and_set_bit(__QLCNIC_RESETTING, &adapter->state)) {
2601+ if (qlcnic_auto_fw_reset && !test_and_set_bit(__QLCNIC_RESETTING,
2602+ &adapter->state)) {
26032603
26042604 qlcnic_schedule_work(adapter, qlcnic_detach_work, 0);
26052605 QLCDB(adapter, DRV, "fw recovery scheduled.\n");
@@ -2784,7 +2784,7 @@ qlcnicvf_start_firmware(struct qlcnic_adapter *adapter) · 178 unmodified lines
27842784
27852785 int qlcnic_validate_max_rss(struct net_device *netdev, u8 max_hw, u8 val)
27862786 {
2787− if (!use_msi_x && !use_msi) {
2787+ if (!qlcnic_use_msi_x && !qlcnic_use_msi) {
27882788 netdev_info(netdev, "no msix or msi support, hence no rss\n");
27892789 return -EINVAL;
27902790 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t