[Intel-wired-lan] [PATCH v2 07/10] igc: Add initial XDP support
andre.guedes at intel.com
Fri Oct 30 21:05:43 UTC 2020
Quoting Andre Guedes (2020-10-29 17:00:02)
> Quoting Maciej Fijalkowski (2020-10-29 07:13:46)
> > > diff --git a/drivers/net/ethernet/intel/igc/igc_xdp.c b/drivers/net/ethernet/intel/igc/igc_xdp.c
> > > new file mode 100644
> > > index 000000000000..faec0bedc550
> > > --- /dev/null
> > > +++ b/drivers/net/ethernet/intel/igc/igc_xdp.c
> > > +struct sk_buff *igc_xdp_run_prog(struct igc_adapter *adapter,
> > > + struct xdp_buff *xdp)
> > I would suggest to either have it in igc_main.c or in the header so that
> > compiler could take the decision whether to inline it or not. For control
> > plane related functions it's fine to have them in the separate file.
> Do you also mean to move all other xdp functions currently defined in igc_xdp.c
> that are called from igc_xdp_run_prog()?
FYI, in the v3 I just posted, I moved those functions to igc_main.c as well
since it makes more sense.
More information about the Intel-wired-lan