From: David Miller <davem@davemloft.net>
To: therbert@google.com
Cc: eric.dumazet@gmail.com, netdev@vger.kernel.org
Subject: Re: [PATCH] net: Check skb->rxhash in gro_receive
Date: Mon, 13 Jan 2014 11:59:13 -0800 (PST) [thread overview]
Message-ID: <20140113.115913.1269834557058575064.davem@davemloft.net> (raw)
In-Reply-To: <CA+mtBx_c=we-13b0Vyrim0=kArhx0OYY1P99HwUeuR2w87hRFw@mail.gmail.com>
From: Tom Herbert <therbert@google.com>
Date: Fri, 10 Jan 2014 08:27:20 -0800
> On Thu, Jan 9, 2014 at 9:38 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
>> On Thu, 2014-01-09 at 20:54 -0800, Tom Herbert wrote:
>>> When initializing a gro_list for a packet, first check the rxhash of
>>> the incoming skb against that of the skb's in the list. This should be
>>> a very strong inidicator of whether the flow is going to be matched,
>>> and potentially allows a lot of other checks to be short circuited.
>>>
>>
>> Hmm... this idea was discussed in the past. I used it when attempting to
>> use a hash table instead of a gro_list last year.
>>
>> Unfortunately this added lot of cycles when rxhash is not provided by
>> hardware, and my tests found it was not a win.
>>
>> Remember : in most cases, gro_list contains one flow, so this test does
>> nothing special but adds overhead.
>
> I don't understand what your basis is that gro_list in most cases
> contains one flow
It also doesn't jive well with Eric's recent patch to adjust the GRO
overflow strategy (600adc18eba823f9fd8ed5fec8b04f11dddf3884 ("net:
gro: change GRO overflow strategy"))
:-)
I sort of like Tom's idea to optimistically compare the hash, if we
do in fact have one already.
Eric would the change be OK if Tom did it that way?
next prev parent reply other threads:[~2014-01-13 19:59 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 4:54 [PATCH] net: Check skb->rxhash in gro_receive Tom Herbert
2014-01-10 5:00 ` David Miller
2014-01-10 5:38 ` Eric Dumazet
2014-01-10 5:43 ` Eric Dumazet
2014-01-10 16:47 ` Tom Herbert
2014-01-10 16:27 ` Tom Herbert
2014-01-10 17:45 ` Eric Dumazet
2014-01-10 18:15 ` Tom Herbert
2014-01-10 18:54 ` Eric Dumazet
2014-01-10 19:42 ` Tom Herbert
2014-01-10 20:43 ` Eric Dumazet
2014-01-10 23:22 ` Tom Herbert
2014-01-13 19:59 ` David Miller [this message]
2014-01-13 20:13 ` Tom Herbert
2014-01-13 20:17 ` Eric Dumazet
2014-01-13 20:50 ` Ben Hutchings
2014-01-13 21:37 ` Eric Dumazet
2014-01-15 1:31 ` Ben Hutchings
2014-01-15 2:27 ` Eric Dumazet
2014-01-15 2:43 ` Ben Hutchings
2014-01-13 21:24 ` Tom Herbert
2014-01-13 21:36 ` Eric Dumazet
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=20140113.115913.1269834557058575064.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=therbert@google.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