diff options
author | Bryan O'Sullivan <bos@pathscale.com> | 2006-08-25 14:24:34 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-22 18:22:32 -0400 |
commit | 0fd41363e0785247b7c19127318abc8b5eacc86b (patch) | |
tree | bf71d78bd12008367e1c0293280a50a9628133f3 /drivers/infiniband/hw/ipath/ipath_qp.c | |
parent | b55f4f06c834a67f949a5219c5f97ffafa240989 (diff) |
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>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_qp.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_qp.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_qp.c b/drivers/infiniband/hw/ipath/ipath_qp.c index b86858e70f2a..c0267cf8ca8c 100644 --- a/drivers/infiniband/hw/ipath/ipath_qp.c +++ b/drivers/infiniband/hw/ipath/ipath_qp.c | |||
@@ -645,33 +645,6 @@ __be32 ipath_compute_aeth(struct ipath_qp *qp) | |||
645 | } | 645 | } |
646 | 646 | ||
647 | /** | 647 | /** |
648 | * set_verbs_flags - set the verbs layer flags | ||
649 | * @dd: the infinipath device | ||
650 | * @flags: the flags to set | ||
651 | */ | ||
652 | static int set_verbs_flags(struct ipath_devdata *dd, unsigned flags) | ||
653 | { | ||
654 | struct ipath_devdata *ss; | ||
655 | unsigned long lflags; | ||
656 | |||
657 | spin_lock_irqsave(&ipath_devs_lock, lflags); | ||
658 | |||
659 | list_for_each_entry(ss, &ipath_dev_list, ipath_list) { | ||
660 | if (!(ss->ipath_flags & IPATH_INITTED)) | ||
661 | continue; | ||
662 | if ((flags & IPATH_VERBS_KERNEL_SMA) && | ||
663 | !(*ss->ipath_statusp & IPATH_STATUS_SMA)) | ||
664 | *ss->ipath_statusp |= IPATH_STATUS_OIB_SMA; | ||
665 | else | ||
666 | *ss->ipath_statusp &= ~IPATH_STATUS_OIB_SMA; | ||
667 | } | ||
668 | |||
669 | spin_unlock_irqrestore(&ipath_devs_lock, lflags); | ||
670 | |||
671 | return 0; | ||
672 | } | ||
673 | |||
674 | /** | ||
675 | * ipath_create_qp - create a queue pair for a device | 648 | * ipath_create_qp - create a queue pair for a device |
676 | * @ibpd: the protection domain who's device we create the queue pair for | 649 | * @ibpd: the protection domain who's device we create the queue pair for |
677 | * @init_attr: the attributes of the queue pair | 650 | * @init_attr: the attributes of the queue pair |
@@ -784,10 +757,6 @@ struct ib_qp *ipath_create_qp(struct ib_pd *ibpd, | |||
784 | } | 757 | } |
785 | qp->ip = NULL; | 758 | qp->ip = NULL; |
786 | ipath_reset_qp(qp); | 759 | ipath_reset_qp(qp); |
787 | |||
788 | /* Tell the core driver that the kernel SMA is present. */ | ||
789 | if (init_attr->qp_type == IB_QPT_SMI) | ||
790 | set_verbs_flags(dev->dd, IPATH_VERBS_KERNEL_SMA); | ||
791 | break; | 760 | break; |
792 | 761 | ||
793 | default: | 762 | default: |
@@ -862,10 +831,6 @@ int ipath_destroy_qp(struct ib_qp *ibqp) | |||
862 | struct ipath_ibdev *dev = to_idev(ibqp->device); | 831 | struct ipath_ibdev *dev = to_idev(ibqp->device); |
863 | unsigned long flags; | 832 | unsigned long flags; |
864 | 833 | ||
865 | /* Tell the core driver that the kernel SMA is gone. */ | ||
866 | if (qp->ibqp.qp_type == IB_QPT_SMI) | ||
867 | set_verbs_flags(dev->dd, 0); | ||
868 | |||
869 | spin_lock_irqsave(&qp->s_lock, flags); | 834 | spin_lock_irqsave(&qp->s_lock, flags); |
870 | qp->state = IB_QPS_ERR; | 835 | qp->state = IB_QPS_ERR; |
871 | spin_unlock_irqrestore(&qp->s_lock, flags); | 836 | spin_unlock_irqrestore(&qp->s_lock, flags); |