diff options
| author | Ivan Vecera <[email protected]> | 2024-04-27 07:26:06 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-04-30 16:33:07 +0000 |
| commit | 6c8e355ea5fccf686703d71219f3b96ec7ec923f (patch) | |
| tree | 211ee8ce26c38ed4c1c20763f2dc2763c904018a /drivers/net/ethernet/intel/i40e/i40e_debug.h | |
| parent | i40e: Add helper to access main VSI (diff) | |
| download | kernel-6c8e355ea5fccf686703d71219f3b96ec7ec923f.tar.gz kernel-6c8e355ea5fccf686703d71219f3b96ec7ec923f.zip | |
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 <[email protected]>
Tested-by: Pucha Himasekhar Reddy <[email protected]>
Signed-off-by: Ivan Vecera <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_debug.h')
0 files changed, 0 insertions, 0 deletions
