]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Add ensurance of MacVlan resources for every trusted VF
authorKaren Sornek <karen.sornek@intel.com>
Thu, 17 Jun 2021 07:19:26 +0000 (09:19 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 7 Jan 2022 17:03:44 +0000 (09:03 -0800)
commit6b14f5e9fa6cedd815e2062e5b087beaef27a056
treeae068a65fc608509e2de8f7f49b6e96b15c5abc3
parent1f666145aa78354108b3b913a317ff37ecb15d7e
i40e: Add ensurance of MacVlan resources for every trusted VF

Trusted VF can use up every resource available, leaving nothing
to other trusted VFs.
Introduce define, which calculates MacVlan resources available based
on maximum available MacVlan resources, bare minimum for each VF and
number of currently allocated VFs.

Signed-off-by: Przemyslaw Patynowski <przemyslawx.patynowski@intel.com>
Signed-off-by: Karen Sornek <karen.sornek@intel.com>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c