diff options
| author | Michael Brown | 2007-09-18 08:07:04 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-09-18 08:07:04 +0200 |
| commit | 0f60150c44f3e6d70baa88050f2779ae25e403c5 (patch) | |
| tree | 153cca57735c8e35d14d98fe660aa40931db1b2a /src/drivers/net/mlx_ipoib/ib_driver.c | |
| parent | Merge branch 'master' into 3leaf-rewrite (diff) | |
| download | ipxe-0f60150c44f3e6d70baa88050f2779ae25e403c5.tar.gz ipxe-0f60150c44f3e6d70baa88050f2779ae25e403c5.tar.xz ipxe-0f60150c44f3e6d70baa88050f2779ae25e403c5.zip | |
Reverted driver/net/mlx_ipoib to clean master state
Diffstat (limited to 'src/drivers/net/mlx_ipoib/ib_driver.c')
| -rw-r--r-- | src/drivers/net/mlx_ipoib/ib_driver.c | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/src/drivers/net/mlx_ipoib/ib_driver.c b/src/drivers/net/mlx_ipoib/ib_driver.c index 34d4cbaaf..a46db7fc2 100644 --- a/src/drivers/net/mlx_ipoib/ib_driver.c +++ b/src/drivers/net/mlx_ipoib/ib_driver.c @@ -62,9 +62,6 @@ static int wait_logic_link_up(__u8 port) return 0; } -unsigned long ipoib_qkey; -unsigned long hack_ipoib_qkey; - static int ib_driver_init(struct pci_device *pci, udqp_t * ipoib_qph_p) { int rc; @@ -150,9 +147,6 @@ static int ib_driver_init(struct pci_device *pci, udqp_t * ipoib_qph_p) qkey, mlid); } - hack_ipoib_qkey = ipoib_qkey = qkey; - -#if 0 rc = create_ipoib_qp(&ib_data.ipoib_qp, &ib_data.ipoib_snd_cq, &ib_data.ipoib_rcv_cq, qkey); @@ -172,7 +166,6 @@ static int ib_driver_init(struct pci_device *pci, udqp_t * ipoib_qph_p) } else { tprintf("add_qp_to_mcast_group() success"); } -#endif /* create a broadcast group ud AV */ av = alloc_ud_av(); @@ -185,19 +178,6 @@ static int ib_driver_init(struct pci_device *pci, udqp_t * ipoib_qph_p) tprintf("modify_av_params() success"); ib_data.bcast_av = av; -#if ! CREATE_OWN - rc = create_ipoib_qp(&ib_data.ipoib_qp, - &ib_data.ipoib_snd_cq, - &ib_data.ipoib_rcv_cq, qkey); - if (rc) { - eprintf(""); - return rc; - } - - tprintf("create_ipoib_qp() success"); - *ipoib_qph_p = ib_data.ipoib_qp; -#endif - do { rc = poll_eq(&ib_eqe, &num_eqe); if (rc) { @@ -268,10 +248,12 @@ static int ib_driver_close(int fw_fatal) ret = 1; } - rc = unset_hca(); - if (rc) { - eprintf(""); - ret = 1; + if (!fw_fatal) { + rc = cmd_sys_dis(); + if (rc) { + eprintf(""); + ret = 1; + } } return ret; @@ -286,7 +268,7 @@ static int poll_cqe_tout(cq_t cqh, __u16 tout, void **wqe, int *good_p) end = currticks() + tout; do { - rc = ib_poll_cqx(cqh, &ib_cqe, &num_cqes); + rc = ib_poll_cq(cqh, &ib_cqe, &num_cqes); if (rc) return rc; |
