]> git.karo-electronics.de Git - linux-beck.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)
commit85a87c90ee90217da1b05a77bbb47ebe31a2f124
treebae620dd58d1f85d924cd4c64cca04e0d3188453
parente7f9774af591d346990f1d6dfca0ee9caeb52756
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