linux/drivers/infiniband/hw
Michael J. Ruhl d7d626179f IB/hfi1: Fix incorrect available receive user context count
The addition of the VNIC contexts to num_rcv_contexts changes the
meaning of the sysfs value nctxts from available user contexts, to
user contexts + reserved VNIC contexts.

User applications that use nctxts are now broken.

Update the calculation so that VNIC contexts are used only if there are
hardware contexts available, and do not silently affect nctxts.

Update code to use the calculated VNIC context number.

Update the sysfs value nctxts to be available user contexts only.

Fixes: 2280740f01 ("IB/hfi1: Virtual Network Interface Controller (VNIC) HW support")
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Niranjana Vishwanathapura <Niranjana.Vishwanathapura@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Cc: <Stable@vger.kernel.org> #v4.12+
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-10-04 15:39:44 -04:00
..
bnxt_re First -rc update for 4.14 kernel 2017-09-23 05:47:04 -10:00
cxgb3 RDMA/cxgb3: remove redundant first assignement of sqp 2017-09-27 08:54:19 -04:00
cxgb4 iw_cxgb4: add referencing to wait objects 2017-09-29 11:46:41 -04:00
hfi1 IB/hfi1: Fix incorrect available receive user context count 2017-10-04 15:39:44 -04:00
hns RDMA/hns: return 0 rather than return a garbage status value 2017-10-04 14:40:07 -04:00
i40iw i40iw: Do not allow posting WR after QP is flushed 2017-10-04 15:29:39 -04:00
mlx4 IB/mlx4: fix sprintf format warning 2017-09-13 18:53:15 -07:00
mlx5 IB/mlx5:: pr_err() and mlx5_ib_dbg() strings should end with newlines 2017-09-27 09:17:52 -04:00
mthca RDMA/mthca: Make explicit conversion to 64bit value 2017-08-24 16:27:10 -04:00
nes RDMA/nes: Remove zeroed parameter from port query callback 2017-08-24 16:44:48 -04:00
ocrdma IB/ocrdma: pr_err() strings should end with newlines 2017-09-27 10:13:14 -04:00
qedr RDMA/qedr: Fix rdma_type initialization 2017-09-29 11:18:56 -04:00
qib IB/qib: Use setup_timer and mod_timer 2017-09-29 11:18:56 -04:00
usnic lib/interval_tree: fast overlap detection 2017-09-08 18:26:49 -07:00
vmw_pvrdma RDMA/vmw_pvrdma: Fix reporting correct opcodes for completion 2017-09-22 13:32:22 -04:00
Makefile RDMA/bnxt_re: Add bnxt_re driver build support 2017-02-14 09:51:28 -05:00