Re: Blogpost evaluation this [PATCH v4 net-next RFC] net: Generic XDP

2017-04-25 Thread David Miller
From: Andy Gospodarek Date: Tue, 25 Apr 2017 13:25:49 -0400 > On Mon, Apr 24, 2017 at 06:26:43PM -0400, David Miller wrote: >> Andy, how goes it? :) > > Sorry for the delayed response. I was AFK yesterday, but based on > testing from Friday and what I wrapped up today all looks good to me. > >

Re: Blogpost evaluation this [PATCH v4 net-next RFC] net: Generic XDP

2017-04-25 Thread Andy Gospodarek
On Mon, Apr 24, 2017 at 06:26:43PM -0400, David Miller wrote: > From: Jesper Dangaard Brouer > Date: Mon, 24 Apr 2017 16:24:05 +0200 > > > I've done a very detailed evaluation of this patch, and I've created a > > blogpost like report here: > > > > > > https://prototype-kernel.readthedocs.io/e

Re: Blogpost evaluation this [PATCH v4 net-next RFC] net: Generic XDP

2017-04-25 Thread Jesper Dangaard Brouer
On Mon, 24 Apr 2017 18:26:43 -0400 (EDT) David Miller wrote: > From: Jesper Dangaard Brouer > Date: Mon, 24 Apr 2017 16:24:05 +0200 > > > I've done a very detailed evaluation of this patch, and I've created a > > blogpost like report here: > > > > > > https://prototype-kernel.readthedocs.io/

Re: Blogpost evaluation this [PATCH v4 net-next RFC] net: Generic XDP

2017-04-24 Thread David Miller
From: Jesper Dangaard Brouer Date: Mon, 24 Apr 2017 16:24:05 +0200 > I've done a very detailed evaluation of this patch, and I've created a > blogpost like report here: > > > https://prototype-kernel.readthedocs.io/en/latest/blogposts/xdp25_eval_generic_xdp_tx.html Thanks for doing this Jespe

Blogpost evaluation this [PATCH v4 net-next RFC] net: Generic XDP

2017-04-24 Thread Jesper Dangaard Brouer
I've done a very detailed evaluation of this patch, and I've created a blogpost like report here: https://prototype-kernel.readthedocs.io/en/latest/blogposts/xdp25_eval_generic_xdp_tx.html I didn't evaluate the adjust_head part, so I hope Andy is still planning to validate that part? --Jesper

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-24 Thread Jesper Dangaard Brouer
On Thu, 20 Apr 2017 16:30:34 +0200 Jesper Dangaard Brouer wrote: > On Wed, 19 Apr 2017 10:29:03 -0400 > Andy Gospodarek wrote: > > > I ran this on top of a card that uses the bnxt_en driver on a desktop > > class system with an i7-6700 CPU @ 3.40GHz, sending a single stream of > > UDP traffic

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-20 Thread Andy Gospodarek
On Wed, Apr 19, 2017 at 09:40:49PM -0400, David Miller wrote: > From: Andy Gospodarek > Date: Wed, 19 Apr 2017 10:29:03 -0400 > > > So I tried a variety of things and the simplest change on top of yours that > > works well for xdp1, xdp2, and xdp_tx_iptunnel. > > > > diff --git a/net/core/dev.c

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-20 Thread Jesper Dangaard Brouer
On Wed, 19 Apr 2017 10:29:03 -0400 Andy Gospodarek wrote: > I ran this on top of a card that uses the bnxt_en driver on a desktop > class system with an i7-6700 CPU @ 3.40GHz, sending a single stream of > UDP traffic with flow control disabled and saw the following (all stats > in Million PPS). >

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-19 Thread David Miller
From: Andy Gospodarek Date: Wed, 19 Apr 2017 10:29:03 -0400 > So I tried a variety of things and the simplest change on top of yours that > works well for xdp1, xdp2, and xdp_tx_iptunnel. > > diff --git a/net/core/dev.c b/net/core/dev.c > index b3d3a6e..1bab3dc 100644 > --- a/net/core/dev.c > +

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-19 Thread Alexei Starovoitov
On Wed, Apr 19, 2017 at 04:25:43PM -0400, Andy Gospodarek wrote: > On Wed, Apr 19, 2017 at 10:44:59AM -0700, John Fastabend wrote: > > On 17-04-19 10:17 AM, Alexei Starovoitov wrote: > > > On Wed, Apr 19, 2017 at 10:29:03AM -0400, Andy Gospodarek wrote: > > >> > > >> I ran this on top of a card tha

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-19 Thread Andy Gospodarek
On Wed, Apr 19, 2017 at 10:44:59AM -0700, John Fastabend wrote: > On 17-04-19 10:17 AM, Alexei Starovoitov wrote: > > On Wed, Apr 19, 2017 at 10:29:03AM -0400, Andy Gospodarek wrote: > >> > >> I ran this on top of a card that uses the bnxt_en driver on a desktop > >> class system with an i7-6700 CP

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-19 Thread John Fastabend
On 17-04-19 10:17 AM, Alexei Starovoitov wrote: > On Wed, Apr 19, 2017 at 10:29:03AM -0400, Andy Gospodarek wrote: >> >> I ran this on top of a card that uses the bnxt_en driver on a desktop >> class system with an i7-6700 CPU @ 3.40GHz, sending a single stream of >> UDP traffic with flow control d

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-19 Thread Alexei Starovoitov
On Wed, Apr 19, 2017 at 10:29:03AM -0400, Andy Gospodarek wrote: > > I ran this on top of a card that uses the bnxt_en driver on a desktop > class system with an i7-6700 CPU @ 3.40GHz, sending a single stream of > UDP traffic with flow control disabled and saw the following (all stats > in Million

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-19 Thread Andy Gospodarek
On Tue, Apr 18, 2017 at 03:29:16PM -0400, David Miller wrote: > From: David Miller > Date: Tue, 18 Apr 2017 15:07:08 -0400 (EDT) > > > From: Andy Gospodarek > > Date: Tue, 18 Apr 2017 15:05:35 -0400 > > > >> On Fri, Apr 14, 2017 at 05:59:51PM -0700, Alexei Starovoitov wrote: > >>> On Thu, Apr 1

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-18 Thread Jesper Dangaard Brouer
On Tue, 18 Apr 2017 15:05:35 -0400 Andy Gospodarek wrote: > On Fri, Apr 14, 2017 at 05:59:51PM -0700, Alexei Starovoitov wrote: > > On Thu, Apr 13, 2017 at 04:23:15PM -0400, David Miller wrote: > > > + > > > + switch (act) { > > > + case XDP_TX: > > > + __skb_push(skb, skb->mac_len);

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-18 Thread Andy Gospodarek
On Tue, Apr 18, 2017 at 03:29:16PM -0400, David Miller wrote: > From: David Miller > Date: Tue, 18 Apr 2017 15:07:08 -0400 (EDT) > > > From: Andy Gospodarek > > Date: Tue, 18 Apr 2017 15:05:35 -0400 > > > >> On Fri, Apr 14, 2017 at 05:59:51PM -0700, Alexei Starovoitov wrote: > >>> On Thu, Apr 1

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-18 Thread David Miller
From: David Miller Date: Tue, 18 Apr 2017 15:07:08 -0400 (EDT) > From: Andy Gospodarek > Date: Tue, 18 Apr 2017 15:05:35 -0400 > >> On Fri, Apr 14, 2017 at 05:59:51PM -0700, Alexei Starovoitov wrote: >>> On Thu, Apr 13, 2017 at 04:23:15PM -0400, David Miller wrote: >>> > + >>> > + switch (act)

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-18 Thread David Miller
From: Andy Gospodarek Date: Tue, 18 Apr 2017 15:05:35 -0400 > On Fri, Apr 14, 2017 at 05:59:51PM -0700, Alexei Starovoitov wrote: >> On Thu, Apr 13, 2017 at 04:23:15PM -0400, David Miller wrote: >> > + >> > + switch (act) { >> > + case XDP_TX: >> > + __skb_push(skb, skb->mac_len); >>

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-18 Thread Andy Gospodarek
On Fri, Apr 14, 2017 at 05:59:51PM -0700, Alexei Starovoitov wrote: > On Thu, Apr 13, 2017 at 04:23:15PM -0400, David Miller wrote: > > + > > + switch (act) { > > + case XDP_TX: > > + __skb_push(skb, skb->mac_len); > > s/skb->mac_len/mac_len/ > I was away from my keyboard for a few

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-15 Thread David Ahern
On 4/14/17 6:59 PM, Alexei Starovoitov wrote: > I'll test it next week unless people beat me to it. > I have run the xdp1 example from samples/bpf. I have a patch that modifies set_link_xdp_fd to take a flags argument which it adds to the request as the IFLA_XDP_FLAGS attribute. That's used by c

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-14 Thread Alexei Starovoitov
On Thu, Apr 13, 2017 at 04:23:15PM -0400, David Miller wrote: > + > + switch (act) { > + case XDP_TX: > + __skb_push(skb, skb->mac_len); s/skb->mac_len/mac_len/ > + HARD_TX_UNLOCK(dev, txq); > + if (free_skb) { > + trace_xdp_exception(dev, xdp_prog, XDP_TX)

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-14 Thread William Tu
On Thu, Apr 13, 2017 at 9:09 AM, David Miller wrote: > [snip] > +static u32 netif_receive_generic_xdp(struct sk_buff *skb, > +struct bpf_prog *xdp_prog) > +{ > + struct xdp_buff xdp; > + u32 act = XDP_DROP; > + void *orig_data; > + int

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-13 Thread David Miller
From: Michael Chan Date: Thu, 13 Apr 2017 13:16:43 -0700 > On Thu, Apr 13, 2017 at 9:09 AM, David Miller wrote: >> >> --- >> >> v4: >> - Fix MAC header adjustmnet before calling prog (David Ahern) >> - Disable LRO when generic XDP is installed (Michael Chan) > > I don't see where you are disa

Re: [PATCH v4 net-next RFC] net: Generic XDP

2017-04-13 Thread Michael Chan
On Thu, Apr 13, 2017 at 9:09 AM, David Miller wrote: > > --- > > v4: > - Fix MAC header adjustmnet before calling prog (David Ahern) > - Disable LRO when generic XDP is installed (Michael Chan) I don't see where you are disabling LRO in the patch. > - Bypass qdisc et al. on XDP_TX and record

[PATCH v4 net-next RFC] net: Generic XDP

2017-04-13 Thread David Miller
This provides a generic SKB based non-optimized XDP path which is used if either the driver lacks a specific XDP implementation, or the user requests it via a new IFLA_XDP_FLAGS value named XDP_FLAGS_SKB_MODE. It is arguable that perhaps I should have required something like this as part of the i