|
@@ -34,15 +34,6 @@
|
34
|
34
|
* IP over Infiniband
|
35
|
35
|
*/
|
36
|
36
|
|
37
|
|
-
|
38
|
|
-
|
39
|
|
-
|
40
|
|
-
|
41
|
|
-extern unsigned long hack_ipoib_qkey;
|
42
|
|
-extern struct ib_address_vector hack_ipoib_bcast_av;
|
43
|
|
-
|
44
|
|
-
|
45
|
|
-
|
46
|
37
|
/** IPoIB MTU */
|
47
|
38
|
#define IPOIB_MTU 2048
|
48
|
39
|
|
|
@@ -205,14 +196,6 @@ static int ipoib_rx ( struct io_buffer *iobuf, struct net_device *netdev ) {
|
205
|
196
|
}
|
206
|
197
|
|
207
|
198
|
/* Strip off IPoIB header */
|
208
|
|
- int len = iob_len ( iobuf );
|
209
|
|
- DBG ( "WTF iob_len = %zd\n", len );
|
210
|
|
- if ( len < 0 ) {
|
211
|
|
- DBG_HD ( iobuf, sizeof ( *iobuf ) );
|
212
|
|
- DBG ( "locking\n" );
|
213
|
|
- while ( 1 ) {}
|
214
|
|
- }
|
215
|
|
-
|
216
|
199
|
iob_pull ( iobuf, sizeof ( *ipoib_hdr ) );
|
217
|
200
|
|
218
|
201
|
/* Hand off to network-layer protocol */
|
|
@@ -487,9 +470,6 @@ static int ipoib_transmit ( struct net_device *netdev,
|
487
|
470
|
av.gid_present = 1;
|
488
|
471
|
if ( ipoib_pshdr->peer.qpn == htonl ( IPOIB_BROADCAST_QPN ) ) {
|
489
|
472
|
/* Broadcast address */
|
490
|
|
-#if 0
|
491
|
|
- memcpy ( &av, &hack_ipoib_bcast_av, sizeof ( av ) );
|
492
|
|
-#endif
|
493
|
473
|
av.dest_qp = IB_BROADCAST_QPN;
|
494
|
474
|
av.dlid = ipoib->broadcast_lid;
|
495
|
475
|
gid = &ipoib->broadcast_gid;
|
|
@@ -798,7 +778,7 @@ static void ipoib_close ( struct net_device *netdev ) {
|
798
|
778
|
struct ib_device *ibdev = ipoib->ibdev;
|
799
|
779
|
|
800
|
780
|
/* Detach from broadcast multicast GID */
|
801
|
|
- ib_mcast_detach ( ibdev, ipoib->data.qp, &ipoib_broadcast.gid );
|
|
781
|
+ ib_mcast_detach ( ibdev, ipoib->data.qp, &ipoib->broadcast_gid );
|
802
|
782
|
|
803
|
783
|
/* FIXME: should probably flush the receive ring */
|
804
|
784
|
}
|
|
@@ -893,10 +873,6 @@ int ipoib_probe ( struct ib_device *ibdev ) {
|
893
|
873
|
goto err_create_meta_qset;
|
894
|
874
|
}
|
895
|
875
|
|
896
|
|
-#if 0
|
897
|
|
- ipoib->data_qkey = hack_ipoib_qkey;
|
898
|
|
-#endif
|
899
|
|
-
|
900
|
876
|
/* Join broadcast group */
|
901
|
877
|
if ( ( rc = ipoib_join_broadcast_group ( ipoib ) ) != 0 ) {
|
902
|
878
|
DBGC ( ipoib, "IPoIB %p could not join broadcast group: %s\n",
|