diff options
author | Mustafa Ismail <mustafa.ismail@intel.com> | 2016-07-12 11:48:44 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-08-02 14:17:38 -0400 |
commit | c5d057d32bb563d105450459d5f4cae2da466038 (patch) | |
tree | 08d5f6e41e4c56b4f5b78d5cc2408c31683d3b32 /drivers/infiniband/hw/i40iw/i40iw_d.h | |
parent | b494c3e6777cc1b8100bf7abbaf3b1eca4559c26 (diff) | |
download | lwn-c5d057d32bb563d105450459d5f4cae2da466038.tar.gz lwn-c5d057d32bb563d105450459d5f4cae2da466038.zip |
i40iw: Remove unnecessary check for moving CQ head
In i40iw_cq_poll_completion, we always move the tail. So there is
no reason to check for overflow everytime we move the head.
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_d.h')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_d.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_d.h b/drivers/infiniband/hw/i40iw/i40iw_d.h index bd942da91a27..2fac1db0e0a0 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_d.h +++ b/drivers/infiniband/hw/i40iw/i40iw_d.h @@ -1557,6 +1557,9 @@ enum i40iw_alignment { #define I40IW_RING_MOVE_TAIL(_ring) \ (_ring).tail = ((_ring).tail + 1) % (_ring).size +#define I40IW_RING_MOVE_HEAD_NOCHECK(_ring) \ + (_ring).head = ((_ring).head + 1) % (_ring).size + #define I40IW_RING_MOVE_TAIL_BY_COUNT(_ring, _count) \ (_ring).tail = ((_ring).tail + (_count)) % (_ring).size |