IB/ipath: remove stale references to userspace SMA
When we first submitted a userspace subnet management agent, it was rejected, so we left it out of the final driver submission. This patch removes a number of vestigial references to it. Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:

committed by
Roland Dreier

parent
b55f4f06c8
commit
0fd41363e0
@@ -644,33 +644,6 @@ __be32 ipath_compute_aeth(struct ipath_qp *qp)
|
||||
return cpu_to_be32(aeth);
|
||||
}
|
||||
|
||||
/**
|
||||
* set_verbs_flags - set the verbs layer flags
|
||||
* @dd: the infinipath device
|
||||
* @flags: the flags to set
|
||||
*/
|
||||
static int set_verbs_flags(struct ipath_devdata *dd, unsigned flags)
|
||||
{
|
||||
struct ipath_devdata *ss;
|
||||
unsigned long lflags;
|
||||
|
||||
spin_lock_irqsave(&ipath_devs_lock, lflags);
|
||||
|
||||
list_for_each_entry(ss, &ipath_dev_list, ipath_list) {
|
||||
if (!(ss->ipath_flags & IPATH_INITTED))
|
||||
continue;
|
||||
if ((flags & IPATH_VERBS_KERNEL_SMA) &&
|
||||
!(*ss->ipath_statusp & IPATH_STATUS_SMA))
|
||||
*ss->ipath_statusp |= IPATH_STATUS_OIB_SMA;
|
||||
else
|
||||
*ss->ipath_statusp &= ~IPATH_STATUS_OIB_SMA;
|
||||
}
|
||||
|
||||
spin_unlock_irqrestore(&ipath_devs_lock, lflags);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* ipath_create_qp - create a queue pair for a device
|
||||
* @ibpd: the protection domain who's device we create the queue pair for
|
||||
@@ -784,10 +757,6 @@ struct ib_qp *ipath_create_qp(struct ib_pd *ibpd,
|
||||
}
|
||||
qp->ip = NULL;
|
||||
ipath_reset_qp(qp);
|
||||
|
||||
/* Tell the core driver that the kernel SMA is present. */
|
||||
if (init_attr->qp_type == IB_QPT_SMI)
|
||||
set_verbs_flags(dev->dd, IPATH_VERBS_KERNEL_SMA);
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -862,10 +831,6 @@ int ipath_destroy_qp(struct ib_qp *ibqp)
|
||||
struct ipath_ibdev *dev = to_idev(ibqp->device);
|
||||
unsigned long flags;
|
||||
|
||||
/* Tell the core driver that the kernel SMA is gone. */
|
||||
if (qp->ibqp.qp_type == IB_QPT_SMI)
|
||||
set_verbs_flags(dev->dd, 0);
|
||||
|
||||
spin_lock_irqsave(&qp->s_lock, flags);
|
||||
qp->state = IB_QPS_ERR;
|
||||
spin_unlock_irqrestore(&qp->s_lock, flags);
|
||||
|
Reference in New Issue
Block a user