diff options
author | Ivan Vecera <ivecera@redhat.com> | 2024-04-27 10:26:06 +0300 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2024-04-30 19:33:07 +0300 |
commit | 6c8e355ea5fccf686703d71219f3b96ec7ec923f (patch) | |
tree | 211ee8ce26c38ed4c1c20763f2dc2763c904018a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 43f4466ca91debe63a07a80250282cf3210de1aa (diff) | |
download | linux-6c8e355ea5fccf686703d71219f3b96ec7ec923f.tar.xz |
i40e: Consolidate checks whether given VSI is main
In the driver code there are 3 types of checks whether given
VSI is main or not:
1. vsi->type ==/!= I40E_VSI_MAIN
2. vsi ==/!= pf->vsi[pf->lan_vsi]
3. vsi->seid ==/!= pf->vsi[pf->lan_vsi]->seid
All of them are equivalent and can be consolidated. Convert cases
2 and 3 to case 1.
Reviewed-by: Michal Schmidt <mschmidt@redhat.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions