]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Limit VNIC use of SDMA engines to the available count
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Wed, 28 Nov 2018 18:19:25 +0000 (10:19 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 7 Dec 2018 02:50:08 +0000 (19:50 -0700)
commit3b9419349f773ab995fdf11e5ca204dbb2d3b1b3
tree114a535843a9685187d0982a2deac8c956451461
parent29c9356bbb35f10f06efbde92a5a0f21c6fa9bea
IB/hfi1: Limit VNIC use of SDMA engines to the available count

VNIC assumes that all SDMA engines have been configured for use.  This is
not necessarily true (i.e. if the count was constrained by the module
parameter).

Update VNICs usage to use the configured count, rather than the hardware
count.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Gary Leshner <gary.s.leshner@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/vnic_main.c