From: "Michael S. Tsirkin" <mst@redhat.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: [RFC] about "net: orphan frags on receive" insanity
Date: Wed, 26 Jun 2013 12:56:42 +0300 [thread overview]
Message-ID: <20130626095642.GA20982@redhat.com> (raw)
In-Reply-To: <1372235039.3301.126.camel@edumazet-glaptop>
On Wed, Jun 26, 2013 at 01:23:59AM -0700, Eric Dumazet wrote:
> Michael
>
> Following commit added 400 bytes into __netif_receive_skb_core()
>
> Could we revert it, and fix the problem into the callers instead ?
>
> Thanks
>
>
>
> commit 1080e512d44d4f67b8beb8edf25a1bbcb1066dc7
> Author: Michael S. Tsirkin <mst@redhat.com>
> Date: Fri Jul 20 09:23:17 2012 +0000
>
> net: orphan frags on receive
>
> zero copy packets are normally sent to the outside
> network, but bridging, tun etc might loop them
> back to host networking stack. If this happens
> destructors will never be called, so orphan
> the frags immediately on receive.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> Signed-off-by: David S. Miller <davem@davemloft.net>
Please don't just revert it.
Packets can cross e.g. the bridge and end up on the external
interface, in which case that NIC guarantees that
they will get transmitted eventually, so it's safe
to transmit from guest memory, or they can end up
in the host stack where they can stay indefinitely,
in this case we need to orphan frags so guest networking
can keep going.
What do you suggest exactly?
Also, I'll have to look at the generated binary - when I
coded this up, compiler seemed to only put a
conditional branch on the fast path, this shouldn't
be all that expensive.
--
MST
next prev parent reply other threads:[~2013-06-26 9:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-26 8:23 [RFC] about "net: orphan frags on receive" insanity Eric Dumazet
2013-06-26 9:56 ` Michael S. Tsirkin [this message]
2013-06-26 10:12 ` Eric Dumazet
2013-06-26 18:56 ` Michael S. Tsirkin
2013-06-26 19:09 ` Eric Dumazet
2013-06-26 19:22 ` Michael S. Tsirkin
2013-06-26 19:44 ` Eric Dumazet
2013-06-27 7:09 ` Michael S. Tsirkin
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=20130626095642.GA20982@redhat.com \
--to=mst@redhat.com \
--cc=eric.dumazet@gmail.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).