@@ -162,19 +162,8 @@ MODULE_FIRMWARE(FW6_FNAME);
162
162
static uint force_init ;
163
163
164
164
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" );
178
167
179
168
static int dflt_msg_enable = DFLT_MSG_ENABLE ;
180
169
@@ -195,23 +184,6 @@ static int msi = 2;
195
184
module_param (msi , int , 0644 );
196
185
MODULE_PARM_DESC (msi , "whether to use INTx (0), MSI (1) or MSI-X (2)" );
197
186
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
-
215
187
/*
216
188
* Normally we tell the chip to deliver Ingress Packets into our DMA buffers
217
189
* 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,
226
198
*/
227
199
static int rx_dma_offset = 2 ;
228
200
229
- static bool vf_acls ;
230
-
231
201
#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
-
236
202
/* Configure the number of PCI-E Virtual Function which are to be instantiated
237
203
* on SR-IOV Capable Physical Functions.
238
204
*/
@@ -253,12 +219,6 @@ module_param(select_queue, int, 0644);
253
219
MODULE_PARM_DESC (select_queue ,
254
220
"Select between kernel provided method of selecting or driver method of selecting TX queue. Default is kernel method." );
255
221
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
-
262
222
static struct dentry * cxgb4_debugfs_root ;
263
223
264
224
static LIST_HEAD (adapter_list );
@@ -3141,16 +3101,6 @@ static int adap_init1(struct adapter *adap, struct fw_caps_config_cmd *c)
3141
3101
if (ret < 0 )
3142
3102
return ret ;
3143
3103
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
- }
3154
3104
c -> op_to_write = htonl (FW_CMD_OP_V (FW_CAPS_CONFIG_CMD ) |
3155
3105
FW_CMD_REQUEST_F | FW_CMD_WRITE_F );
3156
3106
ret = t4_wr_mbox (adap , adap -> mbox , c , sizeof (* c ), NULL );
0 commit comments