From: Ben Hutchings <bhutchings@solarflare.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Michal Schmidt <mschmidt@redhat.com>,
David Miller <davem@davemloft.net>,
netdev@vger.kernel.org, linux-net-drivers@solarflare.com
Subject: Re: [PATCH] GRO: fix merging a paged skb after non-paged skbs
Date: Tue, 08 Feb 2011 15:04:44 +0000 [thread overview]
Message-ID: <1297177484.3325.1.camel@bwh-desktop> (raw)
In-Reply-To: <20110208084928.GA27505@gondor.apana.org.au>
On Tue, 2011-02-08 at 19:49 +1100, Herbert Xu wrote:
> On Mon, Feb 07, 2011 at 08:39:20PM +0000, Ben Hutchings wrote:
> >
> > That is indeed the case; commit da3bc07171dff957906cbe2ad5abb443eccf57c4
> > made the following deletions:
> >
> > - /* Both our generic-LRO and SFC-SSR support skb and page based
> > - * allocation, but neither support switching from one to the
> > - * other on the fly. If we spot that the allocation mode has
> > - * changed, then flush the LRO state.
> > - */
> > - if (unlikely(channel->rx_alloc_pop_pages != (rx_buf->page != NULL))) {
> > - efx_flush_lro(channel);
> > - channel->rx_alloc_pop_pages = (rx_buf->page != NULL);
> > - }
>
> Oops, sorry about that.
>
> How about changing skb_gro_receive to detect such switches and
> simply return an error, which should have the same effect as
> flushing that flow?
That would work, though it looks like Michal has managed to make it
tolerate switches. (I haven't yet tested the result myself.)
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
next prev parent reply other threads:[~2011-02-08 15:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 17:47 [PATCH] GRO: fix merging a paged skb after non-paged skbs Michal Schmidt
2011-01-24 18:44 ` Eric Dumazet
2011-01-24 22:08 ` [PATCH v2] " Michal Schmidt
2011-01-24 22:22 ` Eric Dumazet
2011-01-24 22:27 ` David Miller
2011-01-25 1:24 ` [PATCH] " Ben Hutchings
2011-02-07 20:39 ` Ben Hutchings
2011-02-08 8:49 ` Herbert Xu
2011-02-08 15:04 ` Ben Hutchings [this message]
2011-02-08 20:54 ` Herbert Xu
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=1297177484.3325.1.camel@bwh-desktop \
--to=bhutchings@solarflare.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-net-drivers@solarflare.com \
--cc=mschmidt@redhat.com \
--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).