> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of Ivan > Vecera > Sent: Wednesday, September 27, 2023 2:01 PM > To: [email protected] > Cc: [email protected]; [email protected]; Brandeburg, Jesse > <[email protected]>; [email protected]; Nguyen, Anthony L > <[email protected]>; Kitszel, Przemyslaw > <[email protected]>; [email protected]; [email protected]; > [email protected] > Subject: [Intel-wired-lan] [PATCH net-next v2 1/9] i40e: Remove back pointer > from i40e_hw structure > > The .back field placed in i40e_hw is used to get pointer to i40e_pf > instance but it is not necessary as the i40e_hw is a part of i40e_pf > and containerof macro can be used to obtain the pointer to i40e_pf. > Remove .back field from i40e_hw structure, introduce i40e_hw_to_pf() > and i40e_hw_to_dev() helpers and use them. > > Signed-off-by: Ivan Vecera <[email protected]> > --- > drivers/net/ethernet/intel/i40e/i40e.h | 11 ++++++++++ > drivers/net/ethernet/intel/i40e/i40e_main.c | 22 ++++++++++++++------ > drivers/net/ethernet/intel/i40e/i40e_osdep.h | 8 +++---- > drivers/net/ethernet/intel/i40e/i40e_type.h | 1 - > 4 files changed, 31 insertions(+), 11 deletions(-) >
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel) _______________________________________________ Intel-wired-lan mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
