[<prev] [next>] [day] [month] [year] [list]
Message-ID: <538E4625.3080804@citrix.com>
Date: Tue, 3 Jun 2014 23:03:17 +0100
From: Zoltan Kiss <zoltan.kiss@...rix.com>
To: "xen-devel@...ts.xenproject.org" <xen-devel@...ts.xenproject.org>,
Paul Durrant <Paul.Durrant@...rix.com>
CC: Ian Campbell <Ian.Campbell@...rix.com>,
Wei Liu <wei.liu2@...rix.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
David Vrabel <david.vrabel@...rix.com>,
Malcolm Crossley <malcolm.crossley@...rix.com>,
David Miller <davem@...emloft.net>
Subject: netfront: Compound pages problem
Hi,
There were already discussions on this list and at Xen Hackathon about a
netback/netfront issue:
http://lists.xenproject.org/archives/html/xen-devel/2014-06/msg00300.html
In a nutshell: due to compound pages an skb can consume more slots than
we can transfer for a single packet. Lots of ideas came up about how to
solve this problem, the preferred short term one is to poke the buffer
layout of the affected skbs so they will finally fit onto the ring.
That might sound simple, but after 2 days of implementing an algorithm,
which is:
- handle all the possible weird scenarios
- try to do as few memcpy's as possible
I can tell that it's not :). Now I'm at 110 lines without comments, and
it's not ready yet.
Paul came up with an idea today: we can call dev_gso_segment() which
will slice up the problematic skb into MTU size chunks. Then we can add
this list of skbs to our queues and transmit them separately.
Pros:
- it already exists and works
- doesn't copy the payload apart from the headers
Cons:
- it is also very complicated, but at least a well tested code
- it creates new skbs and copies the header there, worst case
max_gso_size / MTU times
I tend to say this could be a good solution for us, but I want to hear
other opinions as well.
Regards,
Zoli
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists