> -----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 06/15] ice: base subfunction aux > driver > > From: Piotr Raczynski <[email protected]> > > Implement subfunction driver. It is probe when subfunction port is activated. > > VSI is already created. During the probe VSI is being configured. > MAC unicast and broadcast filter is added to allow traffic to pass. > > Store subfunction pointer in VSI struct. The same is done for VF pointer. Make > union of subfunction and VF pointer as only one of them can be set with one > VSI. > > Reviewed-by: Simon Horman <[email protected]> > Reviewed-by: Jiri Pirko <[email protected]> > Signed-off-by: Piotr Raczynski <[email protected]> > Signed-off-by: Michal Swiatkowski <[email protected]> > --- > drivers/net/ethernet/intel/ice/Makefile | 1 + > drivers/net/ethernet/intel/ice/ice.h | 7 +- > drivers/net/ethernet/intel/ice/ice_main.c | 10 ++ > drivers/net/ethernet/intel/ice/ice_sf_eth.c | 139 ++++++++++++++++++++ > drivers/net/ethernet/intel/ice/ice_sf_eth.h | 9 ++ > 5 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 > drivers/net/ethernet/intel/ice/ice_sf_eth.c > > diff --git a/drivers/net/ethernet/intel/ice/Makefile > b/drivers/net/ethernet/intel/ice/Makefile > index b4f6fa4ba13d..81acb590eac6 100644 > --- a/drivers/net/ethernet/intel/ice/Makefile > +++ b/drivers/net/ethernet/intel/ice/Makefile > @@ -33,6 +33,7 @@ ice-y := ice_main.o \ > ice_idc.o \ > devlink/devlink.o \ > devlink/devlink_port.o \ > + ice_sf_eth.o \ > ice_ddp.o \ > ice_fw_update.o \ > ice_lag.o \ > diff --git a/drivers/net/ethernet/intel/ice/ice.h > b/drivers/net/ethernet/intel/ice/ice.h > index 6b39b6be9727..848d8bac5d25 100644 > --- a/drivers/net/ethernet/intel/ice/ice.h > +++ b/drivers/net/ethernet/intel/ice/ice.h > @@ -449,7 +449,12 @@ struct ice_vsi {
Tested-by: Rafal Romanowski <[email protected]>
