From: Wei Liu <wei.liu2@citrix.com>
To: David Miller <davem@davemloft.net>
Cc: <zoltan.kiss@citrix.com>, <konrad.wilk@oracle.com>,
<boris.ostrovsky@oracle.com>, <david.vrabel@citrix.com>,
<wei.liu2@citrix.com>, <Ian.Campbell@citrix.com>,
<paul.durrant@citrix.com>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] xen-netfront: Fix handling packets on compound pages with skb_segment
Date: Fri, 1 Aug 2014 12:02:46 +0100 [thread overview]
Message-ID: <20140801110246.GB17947@zion.uk.xensource.com> (raw)
In-Reply-To: <20140731.132520.1889577477638334755.davem@davemloft.net>
On Thu, Jul 31, 2014 at 01:25:20PM -0700, David Miller wrote:
> From: Zoltan Kiss <zoltan.kiss@citrix.com>
> Date: Wed, 30 Jul 2014 14:25:30 +0100
[...]
> Secondly, for something like UDP you can't just split the packet up
> like this, or for any other datagram protocol for that matter.
>
> I know you're in a difficult situation, but I just can't see this
> being an acceptable approach to solving the problem right now.
>
> Where does the MAX_SKB_FRAGS + 1 limit really come from, the size of
> the TX queue?
>
It stems from the implicit transimit protocol since inception of
netfront / netback. Sigh.
> If you were to have a 64-slot TX queue, you ought to be able to handle
> this theoretical 51 slot SKB.
>
There's two problems:
1. IIRC a single page ring has 256 slots, allowing 64 slots packet
yields 4 in-flight packets in worst case.
2. Older netback could not handle this large number of slots and it's
likely to deem the frontend malicious.
For #1, we don't actually care that much if guest screws itself by
generating 64 slot packets. #2 is more concerning.
Wei.
> And I don't think it's so theoretical, a carefully crafted sequence of
> sendfile() calls during a TCP_CORK sequence should be able to do it.
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-08-01 11:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-30 13:25 Zoltan Kiss
2014-07-31 20:25 ` David Miller
2014-08-01 11:02 ` Wei Liu [this message]
2014-08-02 22:33 ` David Miller
2014-08-03 9:11 ` Wei Liu
2014-08-04 22:24 ` David Miller
2014-08-05 10:53 ` Wei Liu
2014-08-05 13:00 ` Zoltan Kiss
2014-08-05 23:45 ` David Miller
2014-08-04 17:29 ` Zoltan Kiss
2014-08-04 20:35 ` Wei Liu
2014-08-05 23:15 ` 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=20140801110246.GB17947@zion.uk.xensource.com \
--to=wei.liu2@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=davem@davemloft.net \
--cc=david.vrabel@citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=paul.durrant@citrix.com \
--cc=xen-devel@lists.xenproject.org \
--cc=zoltan.kiss@citrix.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
all inboxes | Powered by JetHome®