From: annie li <annie.li@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: KonradRzeszutekWilk <konrad@kernel.org>,
xen-devel <xen-devel@lists.xen.org>
Subject: Re: netchannel vs MAX_SKB_FRAGS (Was: Re: [PATCH] xen/netfront: handle compound page fragments on transmit)
Date: Fri, 23 Nov 2012 23:08:48 +0800 [thread overview]
Message-ID: <50AF9180.7020701@oracle.com> (raw)
In-Reply-To: <1353662328.13542.173.camel@zakaz.uk.xensource.com>
On 2012-11-23 17:18, Ian Campbell wrote:
> On Fri, 2012-11-23 at 01:30 +0000, ANNIE LI wrote:
>
>> It is hard to negotiate this between netfront and netback for different
>> packets.
>>
> You wouldn't negotiate for each packet, you would negotiate at start of
> day.
>
> You'd also need some sort of fallback for the case where you end up
> negotiating something smaller than the maximum your upper layer network
> stack might give you. I suppose you'd have to do segmentation somewhere
> along the line. (We have this problem now, and the Linux implementation
> just ignores it and drops the frames.)
What I am thinking is, this negotiation would be implemented during
xenbus communication.
* netback provides its default value in xenstore
* netfront read out this value and compared this value with itself, then
write back the larger one
netback = netfront, use the same value
netback > netfront, use netfront value and netfront does not need
more slots
netback < netfront, use netfront value and netfront does not need to
do segmentation. But if netfront's total frag numbers exceed the max
frag number of dom0(like linux's MAX_SKB_FRAGS), segmentation is needed
for this kind of packets?
* netback read out the negotiated value from xenstore
It seems changing current netback to per-VIF is necessary(persistent
grant benefit from it too), and every different vif in netback maintains
its own value.
Thanks
Annie
next prev parent reply other threads:[~2012-11-23 15:08 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1349790467.21847.185.camel@zakaz.uk.xensource.com>
2012-10-09 13:54 ` compound skb frag pages appearing in start_xmit Eric Dumazet
[not found] ` <1349790863.21172.4406.camel@edumazet-glaptop>
2012-10-09 14:01 ` Eric Dumazet
2012-10-09 14:17 ` Ian Campbell
[not found] ` <1349791305.21172.4425.camel@edumazet-glaptop>
2012-10-09 14:23 ` Ian Campbell
[not found] ` <1349792617.21847.205.camel@zakaz.uk.xensource.com>
2012-10-09 14:33 ` Eric Dumazet
[not found] ` <1349793217.21172.4497.camel@edumazet-glaptop>
2012-10-09 14:54 ` Ian Campbell
[not found] ` <1349792241.21847.199.camel@zakaz.uk.xensource.com>
2012-10-09 14:27 ` Eric Dumazet
[not found] ` <1349792847.21172.4479.camel@edumazet-glaptop>
2012-10-09 14:40 ` Ian Campbell
[not found] ` <1349793630.21847.208.camel@zakaz.uk.xensource.com>
2012-10-09 14:51 ` Eric Dumazet
2012-10-10 10:13 ` Ian Campbell
[not found] ` <1349863984.10070.26.camel@zakaz.uk.xensource.com>
2012-10-10 12:24 ` Sander Eikelenboom
2012-10-10 12:29 ` Ian Campbell
[not found] ` <1349872149.10070.31.camel@zakaz.uk.xensource.com>
2012-10-10 13:31 ` Sander Eikelenboom
2012-10-10 13:09 ` Ian Campbell
[not found] ` <1349874598.10070.39.camel@zakaz.uk.xensource.com>
2012-10-10 14:49 ` Sander Eikelenboom
[not found] ` <748966751.20121010164949@eikelenboom.it>
2012-10-11 8:02 ` Ian Campbell
[not found] ` <1349942546.14806.7.camel@zakaz.uk.xensource.com>
2012-10-11 10:00 ` Sander Eikelenboom
[not found] ` <151954917.20121011120004@eikelenboom.it>
2012-10-11 10:05 ` Eric Dumazet
[not found] ` <1349949924.21172.8462.camel@edumazet-glaptop>
2012-10-11 10:14 ` Ian Campbell
[not found] ` <1349950494.14806.29.camel@zakaz.uk.xensource.com>
2012-10-11 10:20 ` Sander Eikelenboom
2012-11-15 2:31 ` ANNIE LI
[not found] ` <50A4540E.1010601@oracle.com>
2012-11-19 15:43 ` Sander Eikelenboom
2012-11-20 8:30 ` Stefan Bader
[not found] ` <50AB3F9D.4070905@canonical.com>
2012-11-20 9:21 ` Ian Campbell
2012-11-20 11:36 ` Ian Campbell
2012-11-20 11:40 ` [PATCH] xen/netfront: handle compound page fragments on transmit Ian Campbell
[not found] ` <1353411606-15940-1-git-send-email-ian.campbell@citrix.com>
2012-11-20 12:28 ` Jan Beulich
2012-11-20 13:30 ` Stefan Bader
[not found] ` <50AB856D02000078000A9EFD@nat28.tlf.novell.com>
2012-11-20 13:35 ` Ian Campbell
[not found] ` <1353418516.13542.38.camel@zakaz.uk.xensource.com>
2012-11-20 13:51 ` Jan Beulich
[not found] ` <50AB990602000078000A9F5B@nat28.tlf.novell.com>
2012-11-20 14:14 ` Ian Campbell
[not found] ` <1353420865.13542.44.camel@zakaz.uk.xensource.com>
2012-11-20 14:32 ` Jan Beulich
[not found] ` <50ABA29902000078000A9FB1@nat28.tlf.novell.com>
2012-11-20 15:06 ` Ian Campbell
[not found] ` <1353424014.13542.49.camel@zakaz.uk.xensource.com>
2012-11-20 15:28 ` Eric Dumazet
2012-11-20 15:44 ` Jan Beulich
[not found] ` <1353425308.2590.11.camel@edumazet-glaptop>
2012-11-20 15:54 ` Ian Campbell
[not found] ` <1353426878.13542.59.camel@zakaz.uk.xensource.com>
2012-11-20 16:04 ` netchannel vs MAX_SKB_FRAGS (Was: Re: [PATCH] xen/netfront: handle compound page fragments on transmit) Ian Campbell
2012-11-23 1:30 ` ANNIE LI
2012-11-23 2:10 ` James Harper
2012-11-23 6:49 ` ANNIE LI
2012-11-23 9:22 ` Paul Durrant
2012-11-23 9:26 ` James Harper
2012-11-23 9:34 ` Ian Campbell
2012-11-23 9:18 ` Ian Campbell
2012-11-23 15:08 ` annie li [this message]
[not found] ` <50ABB38202000078000AA0FD@nat28.tlf.novell.com>
2012-11-20 16:14 ` [PATCH] xen/netfront: handle compound page fragments on transmit Eric Dumazet
[not found] ` <50AB860E.3090106@canonical.com>
2012-11-20 13:45 ` Sander Eikelenboom
2012-11-20 14:45 ` Eric Dumazet
[not found] ` <1353422735.2590.6.camel@edumazet-glaptop>
2012-11-20 15:05 ` Ian Campbell
2012-11-21 2:52 ` ANNIE LI
[not found] ` <50AC41F7.7080609@oracle.com>
2012-11-21 11:09 ` Ian Campbell
[not found] ` <1353411413.13542.31.camel@zakaz.uk.xensource.com>
2012-11-21 2:42 ` compound skb frag pages appearing in start_xmit ANNIE LI
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=50AF9180.7020701@oracle.com \
--to=annie.li@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=konrad@kernel.org \
--cc=xen-devel@lists.xen.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).