[Intel-wired-lan] [PATCH v2 10/10] igc: Implement ndo_xdp_xmit callback

Andre Guedes andre.guedes at intel.com
Fri Oct 30 00:00:19 UTC 2020


Quoting Maciej Fijalkowski (2020-10-29 07:34:39)
> On Wed, Oct 28, 2020 at 01:19:43PM -0700, Andre Guedes wrote:
> > This patch introduces the helper igc_xdp_xmit() which implements the
> > ndo_xdp_xmit ops, enabling the igc driver to transmit packets forwarded
> > to it by xdp programs running on other interfaces.
> > 
> > This patch has been tested with the sample app "xdp_redirect_map"
> > located in samples/bpf/.
> > 
> > Signed-off-by: Andre Guedes <andre.guedes at intel.com>
> > ---
> >  drivers/net/ethernet/intel/igc/igc_main.c | 41 +++++++++++++++++++++++
> >  drivers/net/ethernet/intel/igc/igc_xdp.c  |  3 +-
> >  drivers/net/ethernet/intel/igc/igc_xdp.h  |  2 ++
> >  3 files changed, 44 insertions(+), 2 deletions(-)
> 
> I think that it should be squashed with previous patch? So you have
> XDP_REDIRECT support in a single patch.

Sure, makes sense.

Thanks,
Andre


More information about the Intel-wired-lan mailing list