summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2007-09-17 20:12:06 +0200
committerMichael Brown2007-09-17 20:12:06 +0200
commit11541b1e01efa6aab9955675c4145d6728b88d75 (patch)
tree86c1b8005557edbdb62f541bc2aec894af4a9a22 /src
parentAdded an almost obscene amount of debugging and assertion code while (diff)
downloadipxe-11541b1e01efa6aab9955675c4145d6728b88d75.tar.gz
ipxe-11541b1e01efa6aab9955675c4145d6728b88d75.tar.xz
ipxe-11541b1e01efa6aab9955675c4145d6728b88d75.zip
Remove hacks, and fix leaving the multicast GID.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/net/ipoib.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/drivers/net/ipoib.c b/src/drivers/net/ipoib.c
index f45012ee..e5bee93d 100644
--- a/src/drivers/net/ipoib.c
+++ b/src/drivers/net/ipoib.c
@@ -34,15 +34,6 @@
* IP over Infiniband
*/
-
-
-
-
-extern unsigned long hack_ipoib_qkey;
-extern struct ib_address_vector hack_ipoib_bcast_av;
-
-
-
/** IPoIB MTU */
#define IPOIB_MTU 2048
@@ -205,14 +196,6 @@ static int ipoib_rx ( struct io_buffer *iobuf, struct net_device *netdev ) {
}
/* Strip off IPoIB header */
- int len = iob_len ( iobuf );
- DBG ( "WTF iob_len = %zd\n", len );
- if ( len < 0 ) {
- DBG_HD ( iobuf, sizeof ( *iobuf ) );
- DBG ( "locking\n" );
- while ( 1 ) {}
- }
-
iob_pull ( iobuf, sizeof ( *ipoib_hdr ) );
/* Hand off to network-layer protocol */
@@ -487,9 +470,6 @@ static int ipoib_transmit ( struct net_device *netdev,
av.gid_present = 1;
if ( ipoib_pshdr->peer.qpn == htonl ( IPOIB_BROADCAST_QPN ) ) {
/* Broadcast address */
-#if 0
- memcpy ( &av, &hack_ipoib_bcast_av, sizeof ( av ) );
-#endif
av.dest_qp = IB_BROADCAST_QPN;
av.dlid = ipoib->broadcast_lid;
gid = &ipoib->broadcast_gid;
@@ -798,7 +778,7 @@ static void ipoib_close ( struct net_device *netdev ) {
struct ib_device *ibdev = ipoib->ibdev;
/* Detach from broadcast multicast GID */
- ib_mcast_detach ( ibdev, ipoib->data.qp, &ipoib_broadcast.gid );
+ ib_mcast_detach ( ibdev, ipoib->data.qp, &ipoib->broadcast_gid );
/* FIXME: should probably flush the receive ring */
}
@@ -893,10 +873,6 @@ int ipoib_probe ( struct ib_device *ibdev ) {
goto err_create_meta_qset;
}
-#if 0
- ipoib->data_qkey = hack_ipoib_qkey;
-#endif
-
/* Join broadcast group */
if ( ( rc = ipoib_join_broadcast_group ( ipoib ) ) != 0 ) {
DBGC ( ipoib, "IPoIB %p could not join broadcast group: %s\n",