> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of Michal > Swiatkowski > Sent: Thursday, June 6, 2024 1:25 PM > To: [email protected] > Cc: [email protected]; Fijalkowski, Maciej <[email protected]>; > [email protected]; Samudrala, Sridhar <[email protected]>; > Polchlopek, Mateusz <[email protected]>; [email protected]; > [email protected]; [email protected]; Kubiak, Michal > <[email protected]>; [email protected]; Kitszel, Przemyslaw > <[email protected]>; Keller, Jacob E <[email protected]>; > Drewek, Wojciech <[email protected]> > Subject: [Intel-wired-lan] [iwl-next v5 08/15] ice: make representor code > generic > > Keep the same flow of port representor creation, but instead of general attach > function create helpers for specific representor type. > > Store function pointer for add and remove representor. > > Type of port representor can be also known based on VSI type, but it is more > clean to have it directly saved in port representor structure. > > Add devlink lock for whole port representor creation and destruction. > > Reviewed-by: Simon Horman <[email protected]> > Reviewed-by: Wojciech Drewek <[email protected]> > Signed-off-by: Michal Swiatkowski <[email protected]> > --- > .../ethernet/intel/ice/devlink/devlink_port.h | 2 + > drivers/net/ethernet/intel/ice/ice_eswitch.c | 74 +++++++++++----- > drivers/net/ethernet/intel/ice/ice_eswitch.h | 11 +-- > drivers/net/ethernet/intel/ice/ice_repr.c | 88 +++++++++---------- > drivers/net/ethernet/intel/ice/ice_repr.h | 16 +++- > drivers/net/ethernet/intel/ice/ice_sriov.c | 4 +- > drivers/net/ethernet/intel/ice/ice_vf_lib.c | 4 +- > 7 files changed, 122 insertions(+), 77 deletions(-) > > diff --git a/drivers/net/ethernet/intel/ice/devlink/devlink_port.h > b/drivers/net/ethernet/intel/ice/devlink/devlink_port.h > index 97b21b58c300..479d2b976745 100644 > --- a/drivers/net/ethernet/intel/ice/devlink/devlink_port.h > +++ b/drivers/net/ethernet/intel/ice/devlink/devlink_port.h > @@ -14,6 +14,7 @@
Tested-by: Rafal Romanowski <[email protected]>
