]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/i40iw: Correct STag mask to min of 14 bits
authorChien Tin Tung <Chien.Tin.Tung@intel.com>
Fri, 22 Apr 2016 19:14:24 +0000 (14:14 -0500)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 20:32:54 +0000 (16:32 -0400)
commit0f07ada1d092f7dc2b93c00eef684747dfaa0961
tree2d85d4d91c8f6e4fb79d9e159eacfa72589451f0
parent6ac6f12c472fabf64f716385c9d5c68c26f9dea0
RDMA/i40iw: Correct STag mask to min of 14 bits

STag index mask is calculated incorrectly, missing
the 14 bits minimum requirement. Add max macro to use
either # of MRs or 14 bits in the mask size calculation.

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_hw.c