summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2024-03-23 00:44:44 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2024-04-12 20:34:29 +0300
commitc22f7dacb8202779e60f45976443d979a749ab13 (patch)
treed684fee01aad91141646c255f07ecc77813444a0 /tools/testing/selftests/net/lib/py/utils.py
parentae67389c53928418975b46d13b51fde4e40ee15f (diff)
downloadlinux-c22f7dacb8202779e60f45976443d979a749ab13.tar.xz
ice: set vf->num_msix in ice_initialize_vf_entry()
Commit fe1c5ca2fe76 ("ice: implement num_msix field per VF") updated the driver to allow for per-VF MSI-X configuration. The initial defaults were set in ice_create_vf_entries(). This logic is better placed in ice_initialize_vf_entry(). Indeed, that function already sets vf->num_vf_qs, as well as initializes the allow list via calling ice_vc_set_default_allowlist(). Move this logic into ice_initialize_vf_entry(). This makes the code clear, and ensures that these VF fields will be initialized properly for both SR-IOV VFs and the upcoming Scalable IOV VFs. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Rafal Romanowski <rafal.romanowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions