summaryrefslogtreecommitdiffstats
path: root/src/drivers/infiniband
diff options
context:
space:
mode:
authorMichael Brown2009-07-09 04:49:37 +0200
committerMichael Brown2009-07-18 00:06:34 +0200
commit92cf24002018a19aec65c4a5f99cffb78e34d4c4 (patch)
tree00791d024122b382cdbee5c5f8df362c83ea7b66 /src/drivers/infiniband
parent[infiniband] Add notion of a queue pair type (diff)
downloadipxe-92cf24002018a19aec65c4a5f99cffb78e34d4c4.tar.gz
ipxe-92cf24002018a19aec65c4a5f99cffb78e34d4c4.tar.xz
ipxe-92cf24002018a19aec65c4a5f99cffb78e34d4c4.zip
[infiniband] Always create an SMA and a GMA
Diffstat (limited to 'src/drivers/infiniband')
-rw-r--r--src/drivers/infiniband/linda.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/drivers/infiniband/linda.c b/src/drivers/infiniband/linda.c
index acbbb9e0..c0d69502 100644
--- a/src/drivers/infiniband/linda.c
+++ b/src/drivers/infiniband/linda.c
@@ -30,7 +30,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <gpxe/bitbash.h>
#include <gpxe/malloc.h>
#include <gpxe/iobuf.h>
-#include <gpxe/ib_sma.h>
#include "linda.h"
/**
@@ -97,9 +96,6 @@ struct linda {
struct i2c_bit_basher i2c;
/** I2C serial EEPROM */
struct i2c_device eeprom;
-
- /** Subnet management agent */
- struct ib_sma sma;
};
/***************************************************************************
@@ -2335,12 +2331,6 @@ static int linda_probe ( struct pci_device *pci,
if ( ( rc = linda_init_ib_serdes ( linda ) ) != 0 )
goto err_init_ib_serdes;
- /* Create the SMA */
- if ( ( rc = ib_create_sma ( &linda->sma, ibdev ) ) != 0 )
- goto err_create_sma;
- /* If the SMA doesn't get context 0, we're screwed */
- assert ( linda_qpn_to_ctx ( linda->sma.gma.qp->qpn ) == 0 );
-
/* Register Infiniband device */
if ( ( rc = register_ibdev ( ibdev ) ) != 0 ) {
DBGC ( linda, "Linda %p could not register IB "
@@ -2352,8 +2342,6 @@ static int linda_probe ( struct pci_device *pci,
unregister_ibdev ( ibdev );
err_register_ibdev:
- ib_destroy_sma ( &linda->sma );
- err_create_sma:
linda_fini_recv ( linda );
err_init_recv:
linda_fini_send ( linda );
@@ -2376,7 +2364,6 @@ static void linda_remove ( struct pci_device *pci ) {
struct linda *linda = ib_get_drvdata ( ibdev );
unregister_ibdev ( ibdev );
- ib_destroy_sma ( &linda->sma );
linda_fini_recv ( linda );
linda_fini_send ( linda );
ibdev_put ( ibdev );