Re: [PATCH 2/2] ixgbe: add support for XDP_TX action

2017-04-24 Thread John Fastabend
On 17-04-24 12:29 PM, Jesper Dangaard Brouer wrote: > On Sun, 23 Apr 2017 18:31:36 -0700 > John Fastabend wrote: > >> +static int ixgbe_xmit_xdp_ring(struct ixgbe_adapter *adapter, >> + struct xdp_buff *xdp) >> +{ >> +struct ixgbe_ring

Re: [PATCH 2/2] ixgbe: add support for XDP_TX action

2017-04-24 Thread Jesper Dangaard Brouer
On Sun, 23 Apr 2017 18:31:36 -0700 John Fastabend wrote: > +static int ixgbe_xmit_xdp_ring(struct ixgbe_adapter *adapter, > +struct xdp_buff *xdp) > +{ > + struct ixgbe_ring *ring = adapter->xdp_ring[smp_processor_id()]; I was about to

[PATCH 2/2] ixgbe: add support for XDP_TX action

2017-04-23 Thread John Fastabend
From: John Fastabend Add support for XDP_TX action. A couple design choices were made here. First I use a new ring pointer structure xdp_ring[] in the adapter struct instead of pushing the newly allocated xdp TX rings into the tx_ring[] structure. This means we have to