From: David Miller <davem@davemloft.net>
To: eric.dumazet@gmail.com
Cc: netdev@vger.kernel.org, herbert@gondor.apana.org.au
Subject: Re: [PATCH net-next-2.6] gro: __napi_gro_receive() optimizations
Date: Wed, 25 Aug 2010 13:57:26 -0700 (PDT) [thread overview]
Message-ID: <20100825.135726.189708768.davem@davemloft.net> (raw)
In-Reply-To: <1282768431.2681.144.camel@edumazet-laptop>
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Wed, 25 Aug 2010 22:33:51 +0200
> @@ -102,19 +102,9 @@ vlan_gro_common(struct napi_struct *napi, struct vlan_group *grp,
> if (vlan_dev)
> skb->dev = vlan_dev;
> else if (vlan_id)
> - goto drop;
> -
> - for (p = napi->gro_list; p; p = p->next) {
> - NAPI_GRO_CB(p)->same_flow =
> - p->dev == skb->dev && !compare_ether_header(
> - skb_mac_header(p), skb_gro_mac_header(skb));
> - NAPI_GRO_CB(p)->flush = 0;
> - }
> -
> - return dev_gro_receive(napi, skb);
> + return GRO_DROP;
>
> -drop:
> - return GRO_DROP;
> + return __napi_gro_receive(napi, skb);
I was looking at this the other day and considering something
similar but I didn't do it because this now makes the call chain
deeper.
And that can make a performance difference.
I don't want to add this hunk unless some GRO perf regression tests
are done.
Thanks.
next prev parent reply other threads:[~2010-08-25 20:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-25 20:33 [PATCH net-next-2.6] gro: __napi_gro_receive() optimizations Eric Dumazet
2010-08-25 20:45 ` Stephen Hemminger
2010-08-25 20:54 ` Eric Dumazet
2010-08-25 20:57 ` David Miller [this message]
2010-08-25 21:15 ` Eric Dumazet
2010-08-26 7:51 ` David Miller
2010-08-26 9:03 ` Eric Dumazet
2010-08-27 4:35 ` [PATCH net-next-2.6 v3] " Eric Dumazet
2010-08-27 4:38 ` David Miller
2010-08-27 4:42 ` Herbert Xu
2010-08-27 5:02 ` David Miller
2010-08-27 4:43 ` Eric Dumazet
2010-08-27 5:01 ` David Miller
2010-08-27 5:01 ` [PATCH net-next-2.6 v4] " Eric Dumazet
2010-08-27 5:03 ` David Miller
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=20100825.135726.189708768.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@vger.kernel.org \
/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).