i40iw: Refactor queue depth calculation
authorShiraz Saleem <shiraz.saleem@intel.com>
Mon, 16 Oct 2017 20:46:02 +0000 (15:46 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 18 Oct 2017 17:28:46 +0000 (13:28 -0400)
commit1196923838cf1d2b7abcb9a1007eede09ad93acd
tree9c700d31070fa07ecbe5464424a8a47223f1561c
parent5b4a1a8b87fda31c1a1d44aba7e6926167610a20
i40iw: Refactor queue depth calculation

Queue depth calculations use a mix of work requests
and actual number of bytes. Consolidate all calculations
using minimum WQE size to avoid confusion.

Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_d.h
drivers/infiniband/hw/i40iw/i40iw_uk.c
drivers/infiniband/hw/i40iw/i40iw_user.h
drivers/infiniband/hw/i40iw/i40iw_verbs.c