From: Steffen Klassert <steffen.klassert@secunet.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: David Miller <davem@davemloft.net>, <netdev@vger.kernel.org>,
"Sowmini Varadhan" <sowmini.varadhan@oracle.com>,
Ilan Tayari <ilant@mellanox.com>
Subject: Re: [PATCH RFC ipsec-next 4/5] net: Prepare for IPsec GRO
Date: Mon, 9 Jan 2017 10:59:35 +0100 [thread overview]
Message-ID: <20170109095935.GD3541@gauss.secunet.com> (raw)
In-Reply-To: <20170104132609.GZ3541@gauss.secunet.com>
On Wed, Jan 04, 2017 at 02:26:09PM +0100, Steffen Klassert wrote:
> On Wed, Jan 04, 2017 at 04:34:15AM -0800, Eric Dumazet wrote:
> > >
> > > @@ -4843,7 +4853,12 @@ static int process_backlog(struct napi_struct *napi, int quota)
> > >
> > > while ((skb = __skb_dequeue(&sd->process_queue))) {
> > > rcu_read_lock();
> > > - __netif_receive_skb(skb);
> > > +
> > > + if (skb_xfrm_gro(skb))
> > > + napi_gro_receive(napi, skb);
> > > + else
> > > + __netif_receive_skb(skb);
> > > +
> >
> >
> > But napi here is device independent. It is a fake NAPI, per cpu.
> >
> > I am not sure of the various implications of using it at this point,
> > this looks quite dangerous/invasive to me, compared to the gro_cells
> > infra which was designed to have no impact on core code paths.
> >
> > To me, the caller should call napi_gro_receive() skb, instead of letting
> > core networking stack add this extra skb bit and extra conditional.
>
> I had a quick look at the gro_cells, it looks like I could avoid
> at least the extra codition with this.
On a second view, it does not look so promising. I don't
have a netdevice where I can hang this off. Looks like I
need such a fake per cpu NAPI as the backlog is. I could
create my own one, then I would not have to add this
condition to core networking.
next prev parent reply other threads:[~2017-01-09 9:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-04 8:23 [PATCH RFC ipsec-next] IPsec offload, part one Steffen Klassert
2017-01-04 8:23 ` [PATCH RFC ipsec-next 1/5] esp4: Avoid skb_cow_data whenever possible Steffen Klassert
2017-01-04 8:23 ` [PATCH RFC ipsec-next 2/5] esp6: " Steffen Klassert
2017-01-04 8:23 ` [PATCH RFC ipsec-next 3/5] esp: Introduce a helper to setup the trailer Steffen Klassert
2017-01-04 8:23 ` [PATCH RFC ipsec-next 4/5] net: Prepare for IPsec GRO Steffen Klassert
2017-01-04 12:34 ` Eric Dumazet
2017-01-04 13:26 ` Steffen Klassert
2017-01-09 9:59 ` Steffen Klassert [this message]
2017-01-04 8:23 ` [PATCH RFC ipsec-next 5/5] esp: Add a software GRO codepath Steffen Klassert
2017-01-18 7:59 ` [PATCH RFC ipsec-next] IPsec offload, part one Steffen Klassert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170109095935.GD3541@gauss.secunet.com \
--to=steffen.klassert@secunet.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=ilant@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=sowmini.varadhan@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).