aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_devlink.c
diff options
context:
space:
mode:
authorIvan Vecera <[email protected]>2024-04-27 07:26:06 +0000
committerTony Nguyen <[email protected]>2024-04-30 16:33:07 +0000
commit6c8e355ea5fccf686703d71219f3b96ec7ec923f (patch)
tree211ee8ce26c38ed4c1c20763f2dc2763c904018a /drivers/net/ethernet/intel/i40e/i40e_devlink.c
parenti40e: Add helper to access main VSI (diff)
downloadkernel-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_devlink.c')
0 files changed, 0 insertions, 0 deletions