[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

netback behaviour (mirage under xen)



Hi,

Balraj and I are seeing some strange network transmit behaviour which is either a bug in our frontend or the linux backend -- does anyone know which is most likely? :-)

Most of our transmitted packets have been split into 2 fragments: one containing headers and the other containing application data. When we push the fragments to the netfront transmit ring, we include the whole packet length and set the "more data" bit on the first fragment. The vast majority of the time this works fine so I'm confident we've written the requests properly.

However if I put a "sleep 1" between writing the fragments then netback in dom0 will (from my PoV) prematurely transmit the packet with only the first fragment. The packet is the full requested size but there are zeroes where the second fragment should be. The second fragment is then transmitted afterwards and is obviously dropped pretty quickly because it has application data where the ethernet/IP/... headers should be.

The only thing I can see that we might be doing wrong is we're updating the shared request pointer per fragment rather than per packet. This will allow the backend to see the initial fragment by itself if it has time to look (hence the sleep 1 triggering the problem). However given the packet is clearly incomplete I'm surprised the backend is prepared to transmit it anyway.

I suspect a workaround will probably be to update the request pointer per packet rather than per fragment.

Anyone have any thoughts?

Cheers,
--
Dave Scott

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.