aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/qlnx
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2021-06-16 13:01:50 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2021-07-12 12:22:32 +0000
commitd92a9e5604d7302c349f77c0fde160256aec56ed (patch)
treea1816c173d85eba6e78b558ffaa58d1467074fbf /sys/dev/qlnx
parent0c13880cccd75655c878ce31e767bce04b1d6e85 (diff)
Diffstat (limited to 'sys/dev/qlnx')
-rw-r--r--sys/dev/qlnx/qlnxr/qlnxr_verbs.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/dev/qlnx/qlnxr/qlnxr_verbs.c b/sys/dev/qlnx/qlnxr/qlnxr_verbs.c
index 9c0087c1b76d..861db52044f8 100644
--- a/sys/dev/qlnx/qlnxr/qlnxr_verbs.c
+++ b/sys/dev/qlnx/qlnxr/qlnxr_verbs.c
@@ -3543,22 +3543,6 @@ qlnxr_modify_qp(struct ib_qp *ibqp,
new_qp_state = old_qp_state;
if (QLNX_IS_ROCE(dev)) {
-#if __FreeBSD_version >= 1100000
- if (!ib_modify_qp_is_ok(old_qp_state,
- new_qp_state,
- ibqp->qp_type,
- attr_mask,
- IB_LINK_LAYER_ETHERNET)) {
- QL_DPRINT12(ha,
- "invalid attribute mask=0x%x"
- " specified for qpn=0x%x of type=0x%x \n"
- " old_qp_state=0x%x, new_qp_state=0x%x\n",
- attr_mask, qp->qp_id, ibqp->qp_type,
- old_qp_state, new_qp_state);
- rc = -EINVAL;
- goto err;
- }
-#else
if (!ib_modify_qp_is_ok(old_qp_state,
new_qp_state,
ibqp->qp_type,
@@ -3572,8 +3556,6 @@ qlnxr_modify_qp(struct ib_qp *ibqp,
rc = -EINVAL;
goto err;
}
-
-#endif /* #if __FreeBSD_version >= 1100000 */
}
/* translate the masks... */
if (attr_mask & IB_QP_STATE) {