]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: add support for no recv polling at all
authorEldad Zinger <eldadz@mellanox.co.il>
Thu, 26 Aug 2010 07:52:21 +0000 (10:52 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:20 +0000 (05:05 -0700)
Signed-off-by: Eldad Zinger <eldadz@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_main.c

index 9557b411e6e244325957ba40e7b2f8f32148539d..4f2127c044c438509d274c694956c979e587a426 100644 (file)
@@ -1357,12 +1357,12 @@ static inline int poll_recv_cq(struct sock *sk)
        if (unlikely(!sdp_sk(sk)->rx_ring.cq))
                return 0;
 
-       while (jiffies <= jiffies_end) {
+       do {
                if (sdp_process_rx(sdp_sk(sk))) {
                        SDPSTATS_COUNTER_INC(rx_poll_hit);
                        return 0;
                }
-       }
+       } while (jiffies < jiffies_end);
        SDPSTATS_COUNTER_INC(rx_poll_miss);
        return 1;
 }