]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Get resources per function
authorBrett Creeley <brett.creeley@intel.com>
Fri, 8 Feb 2019 20:50:57 +0000 (12:50 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 20 Mar 2019 00:00:54 +0000 (17:00 -0700)
commitbb8ca8f56ce3ba226212a54608ed5ce39b973ff9
tree0b6a3aa03e3dcee389626c3bef52f4caad7cf173
parent634af4eb2d937e63f08da956e630222c45e6eff7
ice: Get resources per function

ice_get_guar_num_vsi currently calculates the number of VSIs per PF.
Rework this into a general function ice_get_num_per_func, that can
calculate per PF allocations for not just VSIs but across multiple
resource types.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Reviewed-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c