summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorHarshitha Ramamurthy <harshitha.ramamurthy@intel.com>2018-08-28 20:16:05 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-09-25 23:05:37 +0300
commited277c50c0752e11631bc79363385db0e1bb010a (patch)
tree0341e9689a04a28c0cf7fa29d41b58e090bb8c0b /tools/perf/scripts/python/export-to-sqlite.py
parente7bac7afa612f911a9fe0a035007592e1b86c8d4 (diff)
downloadlinux-ed277c50c0752e11631bc79363385db0e1bb010a.tar.xz
i40e: add a helper function to validate a VF based on the vf id
When we are trying to change VF settings, it is possible for 2 race conditions to happen. One, when the VF is created but not yet enabled. Second, the VF is enabled but the VSI is still not created or not yet re-created in the VF reset flow. This patch introduces a helper function to validate that the VF is enabled and that the VSI is set up. This patch also calls this function from other functions which could get into these race conditions. While we are poking around here, remove unnecessary parenthesis that checkpatch was complaining about. Signed-off-by: Harshitha Ramamurthy <harshitha.ramamurthy@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions