freebsd-skq/sys/dev/xen
ken 7aeb20c5a4 A number of netfront fixes and stability improvements:
- Re-enable TSO.  This was broken previously due to CSUM_TSO clearing the
   CSUM_TCP flag, so our checksum flags were incorrectly set going to the
   netback driver.  That was fixed in r206844 in tcp_output.c, so we can
   turn TSO back on here.

 - Fix the way transmit slots are calculated, so that we can't overfill
   the ring.

 - Avoid sending packets with more fragments/segments than netback can
   handle.  The Linux netback code can only handle packets of
   MAX_SKB_FRAGS, which turns out to be 18 on machines with 4K pages.  We
   can easily generate packets with 32 or so fragments with TSO turned on.
   Right now the solution is just to drop the packets (since netback
   doesn't seem to handle it gracefully), but we should come up with a way
   to allow a driver to tell the TCP stack the maximum number of fragments
   it can handle in a single packet.

 - Fix the way the consumer is tracked in the receive path.  It could get
   out of sync fairly easily.

 - Use standard Xen ring macros to make it clearer how netfront is using
   the rings.

 - Get rid of Linux-ish negative errno return values.

 - Added more documentation to the driver.

 - Refactored code to make it easier to read.

 - Some other minor fixes.

Reviewed by:	gibbs

Reviewed by:	gibbs
Sponsored by:	Spectra Logic
MFC after:	7 days
2010-06-08 03:13:26 +00:00
..
balloon Fix the Xen build for i386 PV mode. 2009-04-01 17:06:28 +00:00
blkback Temporarily revert the new-bus locking for 8.0 release. It will be 2009-08-20 19:17:53 +00:00
blkfront In blkif_queue_cb(), test the return value from gnttab_claim_grant_reference() 2009-12-29 23:31:21 +00:00
console remove annoying printf that cripples kdb on PV guests 2009-11-24 07:18:38 +00:00
evtchn merge 186535, 186537, and 186538 from releng_7_xen 2008-12-29 06:31:03 +00:00
netback The proper fix for the delayed SCTP checksum is to 2010-03-12 22:58:52 +00:00
netfront A number of netfront fixes and stability improvements: 2010-06-08 03:13:26 +00:00
pcifront
xenpci Merge in support for Xen HVM on amd64 architecture. 2009-03-11 15:30:12 +00:00