OSDN Git Service

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)
commitdd6c6a5a2e1e7be615c81ca6d44c2e89e22cb463
tree114a535843a9685187d0982a2deac8c956451461
parentfe4dd4239277486ca3a468e7bbeafd7ef3a5634e
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