summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2022-12-21 14:38:17 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2023-02-03 20:54:18 +0300
commita696d61528f08d2fac221dcb618495f43cccdcb3 (patch)
tree0875716088e601d233cf01bc5e16bf80a33e1005 /tools/perf/scripts/python/export-to-sqlite.py
parent6624e780a577fc59678853be7959a153558e11b1 (diff)
downloadlinux-a696d61528f08d2fac221dcb618495f43cccdcb3.tar.xz
ice: stop hard coding the ICE_VSI_CTRL location
When allocating the ICE_VSI_CTRL, the allocated struct ice_vsi pointer is stored into the PF's pf->vsi array at a fixed location. This was historically done on the basis that it could provide an O(1) lookup for the special control VSI. Since we store the ctrl_vsi_idx, we already have O(1) lookup regardless of where in the array we store this VSI. Simplify the logic in ice_vsi_alloc by using the same method of storing the control VSI as other types of VSIs. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions