> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of > Michal Schmidt > Sent: Tuesday, March 26, 2024 4:51 AM > To: [email protected] > Cc: Jiri Pirko <[email protected]>; Temerkhanov, Sergey > <[email protected]>; [email protected]; Richard Cochran > <[email protected]>; Kubalewski, Arkadiusz > <[email protected]>; Kolacinski, Karol > <[email protected]>; Marcin Szycik <[email protected]>; > Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw > <[email protected]>; Keller, Jacob E <[email protected]> > Subject: [Intel-wired-lan] [PATCH net-next v4 1/3] ice: add ice_adapter for > shared data across PFs on the same NIC > > There is a need for synchronization between ice PFs on the same physical > adapter. > > Add a "struct ice_adapter" for holding data shared between PFs of the same > multifunction PCI device. The struct is refcounted - each ice_pf holds a > reference to it. > > Its first use will be for PTP. I expect it will be useful also to improve the > ugliness that is ice_prot_id_tbl. > > Reviewed-by: Przemek Kitszel <[email protected]> > Signed-off-by: Michal Schmidt <[email protected]> > --- > drivers/net/ethernet/intel/ice/Makefile | 3 +- > drivers/net/ethernet/intel/ice/ice.h | 2 + > drivers/net/ethernet/intel/ice/ice_adapter.c | 114 +++++++++++++++++++ > drivers/net/ethernet/intel/ice/ice_adapter.h | 22 ++++ > drivers/net/ethernet/intel/ice/ice_main.c | 8 ++ > 5 files changed, 148 insertions(+), 1 deletion(-) create mode 100644 > drivers/net/ethernet/intel/ice/ice_adapter.c > create mode 100644 drivers/net/ethernet/intel/ice/ice_adapter.h >
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel)
