net/ice/base: add functions to get allocated resources
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 25 Mar 2019 05:44:25 +0000 (13:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Mar 2019 16:25:31 +0000 (17:25 +0100)
commitd781ccbdd15d422a65ed1794aa58a182ae870a54
tree1142d5dc64f78e71de2f82057e9eba635e7c3b2d
parent157d00901f97e3b77fe94938ef59cbe77d1c149a
net/ice/base: add functions to get allocated resources

1. ice_aq_get_res_alloc - get allocated resources.
2. ice_aq_get_res_descs - get allocated resource descriptors.

These APIs may help to PMD to enable some debug utilities to
dump the resource allocation status.

Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Reviewed-by: Qiming Yang <qiming.yang@intel.com>
Reviewed-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ice/base/ice_adminq_cmd.h
drivers/net/ice/base/ice_switch.c
drivers/net/ice/base/ice_switch.h