]> Git Repo - linux.git/commitdiff
IB/iser: Micro-optimize iser_handle_wc
authorSagi Grimberg <[email protected]>
Sun, 7 Dec 2014 14:10:05 +0000 (16:10 +0200)
committerRoland Dreier <[email protected]>
Tue, 16 Dec 2014 02:11:46 +0000 (18:11 -0800)
Use likely() for wc.status == IB_WC_SUCCESS

Signed-off-by: Sagi Grimberg <[email protected]>
Signed-off-by: Or Gerlitz <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
drivers/infiniband/ulp/iser/iser_verbs.c

index 5d69927e9efc1f8909f56312b6e799e2292cb8c2..695a2704bd4380acafbc04c4ae7f0ecd96bc95a0 100644 (file)
@@ -1230,7 +1230,7 @@ static void iser_handle_wc(struct ib_wc *wc)
        struct iser_rx_desc *rx_desc;
 
        ib_conn = wc->qp->qp_context;
-       if (wc->status == IB_WC_SUCCESS) {
+       if (likely(wc->status == IB_WC_SUCCESS)) {
                if (wc->opcode == IB_WC_RECV) {
                        rx_desc = (struct iser_rx_desc *)(uintptr_t)wc->wr_id;
                        iser_rcv_completion(rx_desc, wc->byte_len,
This page took 0.059709 seconds and 4 git commands to generate.