aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2014-12-07 09:10:05 -0500
committerRoland Dreier <roland@purestorage.com>2014-12-15 21:11:46 -0500
commit06c7fb6776ddb0ece4bcee8061eeda4ed4a771dc (patch)
tree65e2f56c9e1c11d4308078492254923351d559cd /drivers/infiniband
parent60e20908c53de4367e31aa65f4e5bcedf74ad410 (diff)
IB/iser: Micro-optimize iser_handle_wc
Use likely() for wc.status == IB_WC_SUCCESS Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/iser/iser_verbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c
index 5d69927e9efc..695a2704bd43 100644
--- a/drivers/infiniband/ulp/iser/iser_verbs.c
+++ b/drivers/infiniband/ulp/iser/iser_verbs.c
@@ -1230,7 +1230,7 @@ static void iser_handle_wc(struct ib_wc *wc)
1230 struct iser_rx_desc *rx_desc; 1230 struct iser_rx_desc *rx_desc;
1231 1231
1232 ib_conn = wc->qp->qp_context; 1232 ib_conn = wc->qp->qp_context;
1233 if (wc->status == IB_WC_SUCCESS) { 1233 if (likely(wc->status == IB_WC_SUCCESS)) {
1234 if (wc->opcode == IB_WC_RECV) { 1234 if (wc->opcode == IB_WC_RECV) {
1235 rx_desc = (struct iser_rx_desc *)(uintptr_t)wc->wr_id; 1235 rx_desc = (struct iser_rx_desc *)(uintptr_t)wc->wr_id;
1236 iser_rcv_completion(rx_desc, wc->byte_len, 1236 iser_rcv_completion(rx_desc, wc->byte_len,