]> git.baikalelectronics.ru Git - kernel.git/commit
i40iw: Query device accounts for internal rsrc
authorHenry Orosco <henry.orosco@intel.com>
Thu, 10 Nov 2016 03:30:28 +0000 (21:30 -0600)
committerDoug Ledford <dledford@redhat.com>
Mon, 5 Dec 2016 21:09:35 +0000 (16:09 -0500)
commit2c68bb5ce17caf9ce3223ab0b707319a1efe1481
treebae620dd58d1f85d924cd4c64cca04e0d3188453
parentfd0fa8bb0edbe8aa89f186a0fc9fde516d25cec3
i40iw: Query device accounts for internal rsrc

Some resources are consumed internally and not available to the user.
After hw is initialized, figure out how many resources are consumed
and subtract those numbers from the initial max device capability in
i40iw_query_device().

Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw.h
drivers/infiniband/hw/i40iw/i40iw_hw.c
drivers/infiniband/hw/i40iw/i40iw_main.c
drivers/infiniband/hw/i40iw/i40iw_user.h
drivers/infiniband/hw/i40iw/i40iw_verbs.c