]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 230587, 230916
authorken <ken@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 14 Feb 2012 18:00:37 +0000 (18:00 +0000)
committerken <ken@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 14 Feb 2012 18:00:37 +0000 (18:00 +0000)
commitae5e0db8edb333b1db58700ccbcffd5ac3e0632e
tree995595b257d2601f548ecbe2d8b24a4ec12999e0
parent04e9e09165422a36b8210df5fe81a2ad589860d2
MFC 230587, 230916

Xen netback driver rewrite.

  r230587 | ken | 2012-01-26 09:35:09 -0700 (Thu, 26 Jan 2012) | 38 lines

  Xen netback driver rewrite.

  share/man/man4/Makefile,
  share/man/man4/xnb.4,
  sys/dev/xen/netback/netback.c,
  sys/dev/xen/netback/netback_unit_tests.c:

  Rewrote the netback driver for xen to attach properly via newbus
and work properly in both HVM and PVM mode (only HVM is tested).
Works with the in-tree FreeBSD netfront driver or the Windows
netfront driver from SuSE.  Has not been extensively tested with
a Linux netfront driver.  Does not implement LRO, TSO, or
polling.  Includes unit tests that may be run through sysctl
after compiling with XNB_DEBUG defined.

  sys/dev/xen/blkback/blkback.c,
  sys/xen/interface/io/netif.h:

Comment elaboration.

  sys/kern/uipc_mbuf.c:

Fix page fault in kernel mode when calling m_print() on a
null mbuf.  Since m_print() is only used for debugging, there
are no performance concerns for extra error checking code.

  sys/kern/subr_scanf.c:

Add the "hh" and "ll" width specifiers from C99 to scanf().
A few callers were already using "ll" even though scanf()
was handling it as "l".

  Submitted by: Alan Somers <alans@spectralogic.com>
  Submitted by: John Suykerbuyk <johns@spectralogic.com>
  Sponsored by: Spectra Logic
  Reviewed by: ken

  r230916 | ken | 2012-02-02 10:54:35 -0700 (Thu, 02 Feb 2012) | 13 lines

  Fix the netback driver build for i386.

  netback.c: Add missing VM includes.

  xen/xenvar.h,
  xen/xenpmap.h: Move some XENHVM macros from <machine/xen/xenpmap.h> to
<machine/xen/xenvar.h> on i386 to match the amd64 headers.

  conf/files: Add netback to the build.

  Submitted by:   jhb

git-svn-id: svn://svn.freebsd.org/base/stable/9@231697 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
share/man/man4/Makefile
share/man/man4/xnb.4 [new file with mode: 0644]
sys/conf/files
sys/dev/xen/blkback/blkback.c
sys/dev/xen/netback/netback.c
sys/dev/xen/netback/netback_unit_tests.c [new file with mode: 0644]
sys/i386/include/xen/xenpmap.h
sys/i386/include/xen/xenvar.h
sys/kern/subr_scanf.c
sys/kern/uipc_mbuf.c
sys/xen/interface/io/netif.h