]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitcfb1d572c986a39fd288f48a6305d81e6f8d04a3
treeae068a65fc608509e2de8f7f49b6e96b15c5abc3
parentc25af830ab2608ef1dd5e4dada702ce1437ea8e7
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