Skip to content

Commit d7d3e25

Browse files
Hariprasad Shenaidavem330
authored andcommitted
cxgb4: Remove deprecated module parameters
Remove deprecated module parameters, and mark one parameter as deprecated. Signed-off-by: Hariprasad Shenai <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a99c683 commit d7d3e25

File tree

1 file changed

+2
-52
lines changed

1 file changed

+2
-52
lines changed

drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -162,19 +162,8 @@ MODULE_FIRMWARE(FW6_FNAME);
162162
static uint force_init;
163163

164164
module_param(force_init, uint, 0644);
165-
MODULE_PARM_DESC(force_init, "Forcibly become Master PF and initialize adapter");
166-
167-
/*
168-
* Normally if the firmware we connect to has Configuration File support, we
169-
* use that and only fall back to the old Driver-based initialization if the
170-
* Configuration File fails for some reason. If force_old_init is set, then
171-
* we'll always use the old Driver-based initialization sequence.
172-
*/
173-
static uint force_old_init;
174-
175-
module_param(force_old_init, uint, 0644);
176-
MODULE_PARM_DESC(force_old_init, "Force old initialization sequence, deprecated"
177-
" parameter");
165+
MODULE_PARM_DESC(force_init, "Forcibly become Master PF and initialize adapter,"
166+
"deprecated parameter");
178167

179168
static int dflt_msg_enable = DFLT_MSG_ENABLE;
180169

@@ -195,23 +184,6 @@ static int msi = 2;
195184
module_param(msi, int, 0644);
196185
MODULE_PARM_DESC(msi, "whether to use INTx (0), MSI (1) or MSI-X (2)");
197186

198-
/*
199-
* Queue interrupt hold-off timer values. Queues default to the first of these
200-
* upon creation.
201-
*/
202-
static unsigned int intr_holdoff[SGE_NTIMERS - 1] = { 5, 10, 20, 50, 100 };
203-
204-
module_param_array(intr_holdoff, uint, NULL, 0644);
205-
MODULE_PARM_DESC(intr_holdoff, "values for queue interrupt hold-off timers "
206-
"0..4 in microseconds, deprecated parameter");
207-
208-
static unsigned int intr_cnt[SGE_NCOUNTERS - 1] = { 4, 8, 16 };
209-
210-
module_param_array(intr_cnt, uint, NULL, 0644);
211-
MODULE_PARM_DESC(intr_cnt,
212-
"thresholds 1..3 for queue interrupt packet counters, "
213-
"deprecated parameter");
214-
215187
/*
216188
* Normally we tell the chip to deliver Ingress Packets into our DMA buffers
217189
* offset by 2 bytes in order to have the IP headers line up on 4-byte
@@ -226,13 +198,7 @@ MODULE_PARM_DESC(intr_cnt,
226198
*/
227199
static int rx_dma_offset = 2;
228200

229-
static bool vf_acls;
230-
231201
#ifdef CONFIG_PCI_IOV
232-
module_param(vf_acls, bool, 0644);
233-
MODULE_PARM_DESC(vf_acls, "if set enable virtualization L2 ACL enforcement, "
234-
"deprecated parameter");
235-
236202
/* Configure the number of PCI-E Virtual Function which are to be instantiated
237203
* on SR-IOV Capable Physical Functions.
238204
*/
@@ -253,12 +219,6 @@ module_param(select_queue, int, 0644);
253219
MODULE_PARM_DESC(select_queue,
254220
"Select between kernel provided method of selecting or driver method of selecting TX queue. Default is kernel method.");
255221

256-
static unsigned int tp_vlan_pri_map = HW_TPL_FR_MT_PR_IV_P_FC;
257-
258-
module_param(tp_vlan_pri_map, uint, 0644);
259-
MODULE_PARM_DESC(tp_vlan_pri_map, "global compressed filter configuration, "
260-
"deprecated parameter");
261-
262222
static struct dentry *cxgb4_debugfs_root;
263223

264224
static LIST_HEAD(adapter_list);
@@ -3141,16 +3101,6 @@ static int adap_init1(struct adapter *adap, struct fw_caps_config_cmd *c)
31413101
if (ret < 0)
31423102
return ret;
31433103

3144-
/* select capabilities we'll be using */
3145-
if (c->niccaps & htons(FW_CAPS_CONFIG_NIC_VM)) {
3146-
if (!vf_acls)
3147-
c->niccaps ^= htons(FW_CAPS_CONFIG_NIC_VM);
3148-
else
3149-
c->niccaps = htons(FW_CAPS_CONFIG_NIC_VM);
3150-
} else if (vf_acls) {
3151-
dev_err(adap->pdev_dev, "virtualization ACLs not supported");
3152-
return ret;
3153-
}
31543104
c->op_to_write = htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) |
31553105
FW_CMD_REQUEST_F | FW_CMD_WRITE_F);
31563106
ret = t4_wr_mbox(adap, adap->mbox, c, sizeof(*c), NULL);

0 commit comments

Comments
 (0)