Browse Source

Kill off some dead code

tags/v0.9.3
Michael Brown 16 years ago
parent
commit
838b972cd3
1 changed files with 0 additions and 83 deletions
  1. 0
    83
      src/drivers/net/mlx_ipoib/mt25218.c

+ 0
- 83
src/drivers/net/mlx_ipoib/mt25218.c View File

@@ -133,36 +133,11 @@ static int arbel_post_send ( struct ib_device *ibdev,
133 133
 			     struct ib_address_vector *av,
134 134
 			     struct io_buffer *iobuf );
135 135
 
136
-static struct io_buffer *tx_ring[NUM_IPOIB_SND_WQES];
137
-static int next_tx_idx = 0;
138
-
139 136
 static int mlx_transmit_direct ( struct net_device *netdev,
140 137
 				 struct io_buffer *iobuf ) {
141 138
 	struct mlx_nic *mlx = netdev->priv;
142 139
 	int rc;
143 140
 
144
-#if 0
145
-	struct arbel arbel = {
146
-		.uar = memfree_pci_dev.uar,
147
-		.db_rec = dev_ib_data.uar_context_base,
148
-	};
149
-	struct arbel_send_work_queue arbel_send_queue = {
150
-		.doorbell_idx = IPOIB_SND_QP_DB_IDX,
151
-		.wqe = ( (struct udqp_st *) mlx->ipoib_qph )->snd_wq,
152
-	};
153
-	struct ib_device ibdev = {
154
-		.dev_priv = &arbel,
155
-	};
156
-	struct ib_queue_pair qp = {
157
-		.qpn = ib_get_qpn ( mlx->ipoib_qph ),
158
-		.send = {
159
-			.num_wqes = NUM_IPOIB_SND_WQES,
160
-			.next_idx = next_tx_idx,
161
-			.iobufs = tx_ring,
162
-			.dev_priv = &arbel_send_queue,
163
-		},
164
-	};
165
-#endif
166 141
 	struct ud_av_st *bcast_av = mlx->bcast_av;
167 142
 	struct arbelprm_ud_address_vector *bav =
168 143
 		( struct arbelprm_ud_address_vector * ) &bcast_av->av;
@@ -176,14 +151,8 @@ static int mlx_transmit_direct ( struct net_device *netdev,
176 151
 	};
177 152
 	memcpy ( &av.gid, ( ( void * ) bav ) + 16, 16 );
178 153
 
179
-#if 0
180
-	rc = arbel_post_send ( &ibdev, &qp, &av, iobuf );
181
-
182
-	next_tx_idx = qp.send.next_idx;
183
-#endif
184 154
 	rc = arbel_post_send ( &static_ibdev, &static_ipoib_qp, &av, iobuf );
185 155
 
186
-
187 156
 	return rc;
188 157
 }
189 158
 
@@ -211,53 +180,9 @@ static void temp_complete_recv ( struct ib_device *ibdev __unused,
211 180
 	DBG ( "AARGH! recv completion\n" );
212 181
 }
213 182
 
214
-static int next_cq_idx = 0;
215
-
216 183
 static void mlx_poll_cq_direct ( struct net_device *netdev ) {
217 184
 	struct mlx_nic *mlx = netdev->priv;
218 185
 
219
-#if 0
220
-	struct arbel arbel = {
221
-		.uar = memfree_pci_dev.uar,
222
-		.db_rec = dev_ib_data.uar_context_base,
223
-	};
224
-	struct arbel_send_work_queue arbel_send_queue = {
225
-		.doorbell_idx = IPOIB_SND_QP_DB_IDX,
226
-		.wqe = ( ( struct udqp_st * ) mlx->ipoib_qph )->snd_wq,
227
-	};
228
-	struct ib_device ibdev = {
229
-		.dev_priv = &arbel,
230
-	};
231
-	struct ib_queue_pair qp = {
232
-		.qpn = ib_get_qpn ( mlx->ipoib_qph ),
233
-		.send = {
234
-			.num_wqes = NUM_IPOIB_SND_WQES,
235
-			.next_idx = next_tx_idx,
236
-			.iobufs = tx_ring,
237
-			.dev_priv = &arbel_send_queue,
238
-		},
239
-		.priv = netdev,
240
-	};
241
-	struct arbel_completion_queue arbel_cq = {
242
-		.doorbell_idx = IPOIB_SND_CQ_CI_DB_IDX,
243
-		.cqe = ( ( struct cq_st * ) mlx->snd_cqh )->cq_buf,
244
-	};
245
-	struct ib_completion_queue cq = {
246
-		.cqn = 1234,
247
-		.num_cqes = NUM_IPOIB_SND_CQES,
248
-		.next_idx = next_cq_idx, 
249
-		.dev_priv = &arbel_cq,
250
-	};
251
-
252
-	INIT_LIST_HEAD ( &cq.queue_pairs );
253
-	INIT_LIST_HEAD ( &qp.list );
254
-	list_add ( &qp.list, &cq.queue_pairs );
255
-
256
-	arbel_poll_cq ( &ibdev, &cq, temp_complete_send, temp_complete_recv );
257
-
258
-	next_cq_idx = cq.next_idx;
259
-#endif
260
-
261 186
 	arbel_poll_cq ( &static_ibdev, &static_ipoib_send_cq,
262 187
 			temp_complete_send, temp_complete_recv );
263 188
 }
@@ -366,11 +291,7 @@ static void mlx_poll ( struct net_device *netdev ) {
366 291
 	}
367 292
 
368 293
 	/* Poll completion queues */
369
-#if 0
370
-	mlx_poll_cq ( netdev, mlx->snd_cqh, mlx_tx_complete );
371
-#else
372 294
 	mlx_poll_cq_direct ( netdev );
373
-#endif
374 295
 	mlx_poll_cq ( netdev, mlx->rcv_cqh, mlx_rx_complete );
375 296
 }
376 297
 
@@ -390,11 +311,7 @@ static void mlx_irq ( struct net_device *netdev, int enable ) {
390 311
 static struct net_device_operations mlx_operations = {
391 312
 	.open		= mlx_open,
392 313
 	.close		= mlx_close,
393
-#if 0
394
-	.transmit	= mlx_transmit,
395
-#else
396 314
 	.transmit	= mlx_transmit_direct,
397
-#endif
398 315
 	.poll		= mlx_poll,
399 316
 	.irq		= mlx_irq,
400 317
 };

Loading…
Cancel
Save