i40e: Add helpers to find VSI and VEB by SEID and use them
authorIvan Vecera <ivecera@redhat.com>
Fri, 24 Nov 2023 15:03:41 +0000 (16:03 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 16 Feb 2024 17:28:14 +0000 (09:28 -0800)
commitb7fac08db5e32a7de8c53e50dc7c841d123dda05
tree989f4a5fd40e0d4e5e19b333b1540b4ba73b6ed7
parentb1f1b46f466a0855b92bd191d8fea8bf297bc7ab
i40e: Add helpers to find VSI and VEB by SEID and use them

Add two helpers i40e_(veb|vsi)_get_by_seid() to find corresponding
VEB or VSI by their SEID value and use these helpers to replace
existing open-coded loops.

Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
drivers/net/ethernet/intel/i40e/i40e_main.c