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>
This commit is contained in:
Henry Orosco
2016-11-09 21:30:28 -06:00
committed by Doug Ledford
父節點 e7f9774af5
當前提交 85a87c90ee
共有 5 個文件被更改,包括 26 次插入6 次删除

查看文件

@@ -303,6 +303,10 @@ struct i40iw_device {
u32 mr_stagmask;
u32 mpa_version;
bool dcb;
u32 used_pds;
u32 used_cqs;
u32 used_mrs;
u32 used_qps;
};
struct i40iw_ib_device {