]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoDon't export the unused __use_pts() routine.
Ed Schouten [Tue, 17 Jun 2008 14:05:03 +0000 (14:05 +0000)]
Don't export the unused __use_pts() routine.

The __use_pts() routine was once probably used by libutil to determine
if we are using BSD or UNIX98 style PTY device names. It doesn't seem to
be used outside grantpt.c, which means we can make it static and remove
it from the Symbol.map.

Reviewed by: cognet, kib
Approved by: philip (mentor)

16 years agoBack out rev. 1.352 (SVN rev 179842) as phk pointed out that
Bjoern A. Zeeb [Tue, 17 Jun 2008 11:08:49 +0000 (11:08 +0000)]
Back out rev. 1.352  (SVN rev 179842) as phk pointed out that
SRCCONF was omitted here to be able to build non standard trees
with universe as well.

16 years agoFor make universe, in addition to make.conf, also ignore a
Bjoern A. Zeeb [Tue, 17 Jun 2008 09:06:46 +0000 (09:06 +0000)]
For make universe, in addition to make.conf, also ignore a
src.conf with possibe non-default options.

Reviewed by: ru
MFC after: 10 days

16 years agoStyle fix.
David Xu [Tue, 17 Jun 2008 08:23:45 +0000 (08:23 +0000)]
Style fix.

16 years agoChange my email address to the one from the FreeBSD project.
Ed Schouten [Tue, 17 Jun 2008 07:09:58 +0000 (07:09 +0000)]
Change my email address to the one from the FreeBSD project.

Approved by: philip (mentor, implicit), davidxu

16 years agoAdd POSIX routines called posix_spawn() and posix_spawnp(), which
David Xu [Tue, 17 Jun 2008 06:26:29 +0000 (06:26 +0000)]
Add POSIX routines called posix_spawn() and posix_spawnp(), which
can be used as replacements for exec/fork in a lot of cases. This
change also added execvpe() which allows environment variable
PATH to be used for searching executable file, it is used for
implementing posix_spawnp().

PR: standards/122051

16 years ago- Move ether_ifdetach earlier.
Benno Rice [Tue, 17 Jun 2008 05:48:42 +0000 (05:48 +0000)]
- Move ether_ifdetach earlier.
- Drain callouts after ether_ifdetach.

Suggested by: jhb

16 years agoRemove support for RELENG_4 (__FreeBSD_version < 500039).
Florent Thoumie [Mon, 16 Jun 2008 23:41:11 +0000 (23:41 +0000)]
Remove support for RELENG_4 (__FreeBSD_version < 500039).

MFC after: 1 day

16 years agoInstall extra include files that were forgotten in original GCC 4.2.x
Alexander Kabaev [Mon, 16 Jun 2008 22:49:30 +0000 (22:49 +0000)]
Install extra include files that were forgotten in original GCC 4.2.x
import changes.

PR: 124647
Submitted by: Vlad GALU
MFC after: 2 days

16 years agoChange incorrect stale cookie detection in syncookie_lookup() that prematurely
Stephan Uphoff [Mon, 16 Jun 2008 20:08:22 +0000 (20:08 +0000)]
Change incorrect stale cookie detection in syncookie_lookup() that prematurely
declared a cookie as expired.

Reviewed by: andre@, silby@
Reported by:    Yahoo!

16 years agoFix a check in SYN cache expansion (syncache_expand()) to accept packets that arrive...
Stephan Uphoff [Mon, 16 Jun 2008 19:56:59 +0000 (19:56 +0000)]
Fix a check in SYN cache expansion (syncache_expand()) to accept packets that arrive in the receive window instead of just on the left edge of the receive window.
This is needed for correct behavior when packets are lost or reordered.

PR: kern/123950
Reviewed by: andre@, silby@
Reported by: Yahoo!, Wang Jin
MFC after: 1 week

16 years agoAdd another 8139D variant.
Remko Lodder [Mon, 16 Jun 2008 18:32:20 +0000 (18:32 +0000)]
Add another 8139D variant.

PR: 124622
Submitted by: Evgeny Zhirnov <jirnov at gmail dot com>
Approved by: imp (mentor, implicit)
MFC after: 3 days

16 years agoRecord my roots.
Ermal Luçi [Mon, 16 Jun 2008 17:38:48 +0000 (17:38 +0000)]
Record my roots.

Reviewed by: mlaier (mentor)

16 years agoAdd my birthday to the calendar.
Ermal Luçi [Mon, 16 Jun 2008 17:35:34 +0000 (17:35 +0000)]
Add my birthday to the calendar.

Approved by: mlaier (mentor)

16 years agoStruct cdev is always the member of the struct cdev_priv. When devfs
Konstantin Belousov [Mon, 16 Jun 2008 17:34:59 +0000 (17:34 +0000)]
Struct cdev is always the member of the struct cdev_priv. When devfs
needed to promote cdev to cdev_priv, the si_priv pointer was followed.

Use member2struct() to calculate address of the wrapping cdev_priv.
Rename si_priv to __si_reserved.

Tested by: pho
Reviewed by: ed
MFC after: 2 weeks

16 years agoAdd the member2struct() macro, that returns pointer to the containing
Konstantin Belousov [Mon, 16 Jun 2008 17:25:20 +0000 (17:25 +0000)]
Add the member2struct() macro, that returns pointer to the containing
structure given pointer to some structure member.

MFC after: 2 weeks

16 years agoAdd $FreeBSD$ since we now have local changes.
David E. O'Brien [Mon, 16 Jun 2008 17:06:17 +0000 (17:06 +0000)]
Add $FreeBSD$ since we now have local changes.

16 years agoImplement a workaround for a long-standing problem in
Oliver Fromme [Mon, 16 Jun 2008 17:04:04 +0000 (17:04 +0000)]
Implement a workaround for a long-standing problem in
libi386's time(), caused by a qemu bug.  The bug might
be present in other BIOSes, too.

qemu either does not simulate the AT RTC correctly or
has a broken BIOS 1A/02 implementation, and will return
an incorrect value if the RTC is read while it is being
updated.

The effect is worsened by the fact that qemu's INT 15/86
function ("wait" a.k.a. usleep) is non-implmeneted or
broken and returns immediately, causing beastie.4th to
spin in a tight loop calling the "read RTC" function
millions of times, triggering the problem quickly.

Therefore, we keep reading the BIOS value until we get
the same result twice.  This change fixes beastie.4th's
countdown under qemu.

Approved by: des (mentor)

16 years agoMake it clearer that privilege is needed to reduce as well as
Tony Finch [Mon, 16 Jun 2008 14:50:21 +0000 (14:50 +0000)]
Make it clearer that privilege is needed to reduce as well as
increase group membership.

16 years agoUpdate to include the Camellia algorithm which is in the code but
George V. Neville-Neil [Mon, 16 Jun 2008 14:33:54 +0000 (14:33 +0000)]
Update to include the Camellia algorithm which is in the code but
which was accidentally left undocumented in the manual page.

16 years agoStyle fix (use naked commands).
Florent Thoumie [Mon, 16 Jun 2008 09:15:27 +0000 (09:15 +0000)]
Style fix (use naked commands).

Reported by: obrien

16 years agoInclude bsd.own.mk to pick up the definition of MK_GNU_CPIO
Doug Barton [Mon, 16 Jun 2008 07:24:05 +0000 (07:24 +0000)]
Include bsd.own.mk to pick up the definition of MK_GNU_CPIO

16 years agoProperly alphabetize the BSD_CPIO option
Doug Barton [Mon, 16 Jun 2008 07:23:12 +0000 (07:23 +0000)]
Properly alphabetize the BSD_CPIO option

16 years agoRegenerate to add the definitions of WITHOUT_BSD_CPIO WITH_GNU_CPIO
Doug Barton [Mon, 16 Jun 2008 05:50:21 +0000 (05:50 +0000)]
Regenerate to add the definitions of WITHOUT_BSD_CPIO WITH_GNU_CPIO
and WITHOUT_GNU_GREP

16 years ago1. Make the BSD version of cpio the default [1]
Doug Barton [Mon, 16 Jun 2008 05:48:15 +0000 (05:48 +0000)]
1. Make the BSD version of cpio the default [1]
a. The BSD version will be built and installed unless
WITHOUT_BSD_CPIO is defined.
b. The GNU version will not be built or installed unless
WITH_GNU_CPIO is defined. If this is defined, the symlink
in /usr/bin will be to the GNU version whether the BSD
version is present or not.

When these changes are MFCed the defaults should be flipped.

2. Add a knob to disable the building of GNU grep. This will
make it easier for those that want to test the BSD version in
the ports.

Approved by: kientzle [1]

16 years agoRegenerate using svn $FreeBSD$ tags. There is no change in the actual
Doug Barton [Mon, 16 Jun 2008 05:33:16 +0000 (05:33 +0000)]
Regenerate using svn $FreeBSD$ tags. There is no change in the actual
man page text other than the date.

16 years agoRemove code that isn't required. It actually breaks the case where KDTRACE_HOOKS
John Birrell [Mon, 16 Jun 2008 04:44:29 +0000 (04:44 +0000)]
Remove code that isn't required. It actually breaks the case where KDTRACE_HOOKS
is defined and KDB isn't. This is the case that it was intended for.

16 years agoDo not redo the vnode tear-down work already done by insmntque() when
Konstantin Belousov [Sun, 15 Jun 2008 18:40:58 +0000 (18:40 +0000)]
Do not redo the vnode tear-down work already done by insmntque() when
vnode cannot be put on the vnode list for mount.

Reported and tested by: marck
Guilty party: me
MFC after: 3 days

16 years agoSilence warning about missing IoGetDeviceObjectPointer by implementing
Coleman Kane [Sun, 15 Jun 2008 13:37:29 +0000 (13:37 +0000)]
Silence warning about missing IoGetDeviceObjectPointer by implementing
a simple stub that always returns STATUS_SUCCESS.

Submitted by: Paul B. Mahol <onemda@gmail.com>
Reviewed by: thompsa
MFC after: 1 week

16 years agoremove incorrect comment that I missed in my last change
Kip Macy [Sun, 15 Jun 2008 13:26:25 +0000 (13:26 +0000)]
remove incorrect comment that I missed in my last change

16 years agoStop moused on a detach event. Remove incorrect comment.
Kip Macy [Sun, 15 Jun 2008 13:25:23 +0000 (13:25 +0000)]
Stop moused on a detach event. Remove incorrect comment.

This fixes frequent problems with usb mice and kvm switches caused by moused hanging around.

Suggested by: Matthew Dodd

MFC after: 2 weeks

16 years ago More prep for Vimage:
Randall Stewart [Sun, 15 Jun 2008 12:31:23 +0000 (12:31 +0000)]
 More prep for Vimage:
 - only one functino to destroy an SCTP stack sctp_finish()
 - Make it so this function also arranges for any threads
   created by the image to do a kthread_exit()

16 years agoRework the my_mbtowc_utf8() support function to fully match the mbtowc()
Tim Kientzle [Sun, 15 Jun 2008 11:28:56 +0000 (11:28 +0000)]
Rework the my_mbtowc_utf8() support function to fully match the mbtowc()
calling convention, not the mbrtowc() convention.

16 years agoSince wctomb() returns int, temporaries should be int, not size_t.
Tim Kientzle [Sun, 15 Jun 2008 11:15:12 +0000 (11:15 +0000)]
Since wctomb() returns int, temporaries should be int, not size_t.

16 years agoA number of minor corrections to the support for external compression
Tim Kientzle [Sun, 15 Jun 2008 10:45:57 +0000 (10:45 +0000)]
A number of minor corrections to the support for external compression
programs:
  * Support platforms that have fork() but not vfork()
  * Don't write(), select(), or poll() against closed file descriptors

16 years agoBe a little more careful about closing file descriptors that may not exist.
Tim Kientzle [Sun, 15 Jun 2008 10:43:59 +0000 (10:43 +0000)]
Be a little more careful about closing file descriptors that may not exist.

16 years agoMfP4: test harness improvements.
Tim Kientzle [Sun, 15 Jun 2008 10:35:22 +0000 (10:35 +0000)]
MfP4: test harness improvements.

16 years agoFix a bad cast.
Tim Kientzle [Sun, 15 Jun 2008 10:26:08 +0000 (10:26 +0000)]
Fix a bad cast.

16 years agoMfP4: Minor portability fix.
Tim Kientzle [Sun, 15 Jun 2008 10:08:16 +0000 (10:08 +0000)]
MfP4: Minor portability fix.

16 years agoMfP4: test harness cleanup.
Tim Kientzle [Sun, 15 Jun 2008 10:07:54 +0000 (10:07 +0000)]
MfP4: test harness cleanup.

16 years agoFix reading TOC from zip archives with unsupported
Tim Kientzle [Sun, 15 Jun 2008 05:15:53 +0000 (05:15 +0000)]
Fix reading TOC from zip archives with unsupported
compression.  We can't read the body, but we
shouldn't try to skip the body twice.

16 years agoMark hardlinks that lack any other interesting filetype information
Tim Kientzle [Sun, 15 Jun 2008 05:14:01 +0000 (05:14 +0000)]
Mark hardlinks that lack any other interesting filetype information
with an 'h'.

16 years agoPortability: We can get away with the older and better-supported
Tim Kientzle [Sun, 15 Jun 2008 05:12:47 +0000 (05:12 +0000)]
Portability:  We can get away with the older and better-supported
wctomb() here; we don't need wcrtomb().  In particular, this fixes
libarchive building on FreeBSD 4.

16 years agoPortability: wchar_t is defined in stdlib.h on some systems.
Tim Kientzle [Sun, 15 Jun 2008 05:11:08 +0000 (05:11 +0000)]
Portability:  wchar_t is defined in stdlib.h on some systems.

16 years agoarchive.h is no longer constructed from archive.h.in,
Tim Kientzle [Sun, 15 Jun 2008 05:05:53 +0000 (05:05 +0000)]
archive.h is no longer constructed from archive.h.in,
so we can rename it and drop some no-longer-necessary
build magic from the Makefile.

16 years agoFix the new generic link resolver in libarchive to never match
Tim Kientzle [Sun, 15 Jun 2008 04:31:43 +0000 (04:31 +0000)]
Fix the new generic link resolver in libarchive to never match
dirs as hardlinks.  In particular, this fixes some recent ports
build failures.

Thanks to: Kris Kennaway

16 years agoWhen NETATALK is compiled into the kernel, at_rmx.c is required regardless
Robert Watson [Sat, 14 Jun 2008 15:17:02 +0000 (15:17 +0000)]
When NETATALK is compiled into the kernel, at_rmx.c is required regardless
of whether NETATALKDEBUG is enabled, so make building it conditional on
NETATALK instead.  This problem appears to have been present from the time
that the netatalk implementation was imported.

PR: 124456
Submitted by: Nathan Whitehorn <whitehorn at wisc dot edu>
MFC after: 3 days

16 years ago- Fixes foobar on my part. Some missing virtualization macros from
Randall Stewart [Sat, 14 Jun 2008 13:24:49 +0000 (13:24 +0000)]
- Fixes foobar on my part. Some missing virtualization macros from
  specific logging cases.

16 years agoRemove obselete PECOFF image activator support.
Wojciech A. Koszek [Sat, 14 Jun 2008 12:51:44 +0000 (12:51 +0000)]
Remove obselete PECOFF image activator support.

PRs assigned at the time of removal:    kern/80742

Discussed on:   freebsd-current (silence), IRC
Tested by:      make universe
Approved by:    cognet (mentor)

16 years agoTurn sgtty into a binary-only compatibility interface.
Ed Schouten [Sat, 14 Jun 2008 10:42:18 +0000 (10:42 +0000)]
Turn sgtty into a binary-only compatibility interface.

sgtty was the original interface to configure terminal attributes on my
UNIX-like operating systems. It has been deprecated by the POSIX termios
interface, which is implemented in almost any modern system.

An advantage of turning this into a binary compatibility interface, is
that we can now eventually remove the COMPAT_43TTY switch from kernel
configurations. This removes many ioctl()'s from the TTY layer.

While there, increase the __FreeBSD_version, which may be useful for the
people working on the Ports tree.

Reviewed by: kib
Approved by: philip (mentor)

16 years ago- Macro-izes the packed declaration in all headers.
Randall Stewart [Sat, 14 Jun 2008 07:58:05 +0000 (07:58 +0000)]
- Macro-izes the packed declaration in all headers.
- Vimage prep - these are major restructures to move
  all global variables to be accessed via a macro or two.
  The variables all go into a single structure.
- Asconf address addition tweaks (add_or_del Interfaces)
- Fix rwnd calcualtion to be more conservative.
- Support SACK_IMMEDIATE flag to skip delayed sack
  by demand of peer.
- Comment updates in the sack mapping calculations
- Invarients panic added.
- Pre-support for UDP tunneling (we can do this on
  MAC but will need added support from UDP to
  get a "pipe" of UDP packets in.
- clear trace buffer sysctl added when local tracing on.

Note the majority of this huge patch is all the vimage prep stuff :-)

16 years agoThe TrustedBSD MAC Framework named struct ipq instances 'ipq', which is the
Robert Watson [Fri, 13 Jun 2008 22:14:15 +0000 (22:14 +0000)]
The TrustedBSD MAC Framework named struct ipq instances 'ipq', which is the
same as the global variable defined in ip_input.c.  Instead, adopt the name
'q' as found in about 1/2 of uses in ip_input.c, preventing a collision on
the name.  This is non-harmful, but means that search and replace on the
global works less well (as in the virtualization work), as well as indexing
tools.

MFC after: 1 week
Reported by: julian

16 years agoFix spelling.
Andrew Thompson [Fri, 13 Jun 2008 21:49:21 +0000 (21:49 +0000)]
Fix spelling.

PR: docs/124561
Submitted by: Sam Banks

16 years ago It's Friday the 13th, not the 10th and I can't travel in time. Yet.
Oleksandr Tymoshenko [Fri, 13 Jun 2008 19:45:12 +0000 (19:45 +0000)]
It's Friday the 13th, not the 10th and I can't travel in time. Yet.

16 years ago Add "fast" versions of macros and functions to taskqueue(9) API
Oleksandr Tymoshenko [Fri, 13 Jun 2008 19:35:17 +0000 (19:35 +0000)]
  Add "fast" versions of macros and functions to taskqueue(9) API
  description: TASKQUEUE_FAST_DEFINE(9), TASKQUEUE_FAST_DEFINE_THREAD(9),
  taskqueue_create_fast(9). They deal with taskqueues intended for use
  in fast interrupt handlers.

  Approved by: cognet (mentor)
  Reviewed by: keramida

16 years agoTweak the promotion test in pmap_promote_pde(). Specifically, test PG_A
Alan Cox [Fri, 13 Jun 2008 19:33:56 +0000 (19:33 +0000)]
Tweak the promotion test in pmap_promote_pde().  Specifically, test PG_A
before PG_M.  This sometimes prevents unnecessary removal of write access
from a PTE.  Overall, the net result is fewer demotions and promotion
failures.

16 years agoMake ex(4) MPSAFE:
John Baldwin [Fri, 13 Jun 2008 12:14:22 +0000 (12:14 +0000)]
Make ex(4) MPSAFE:
- Add a mutex to the softc to protect the softc and device hardware.
- Use a private watchdog timer.
- Setup interrupt handler after ether_ifattach().
- Use bus_foo() rather than bus_space_foo() and remove bus space tag and
  handle from softc.

Tested by: imp

16 years agoAdd the D-Link DWA-111
Kevin Lo [Fri, 13 Jun 2008 02:02:21 +0000 (02:02 +0000)]
Add the D-Link DWA-111

16 years ago- Added support for BCM5709 and BCM5716.
David Christensen [Fri, 13 Jun 2008 01:20:29 +0000 (01:20 +0000)]
- Added support for BCM5709 and BCM5716.

MFC after: 2 weeks

16 years ago- Added support for BCM5709 and BCM5716 controllers.
David Christensen [Fri, 13 Jun 2008 01:16:37 +0000 (01:16 +0000)]
- Added support for BCM5709 and BCM5716 controllers.

MFC after: 2 weeks

16 years agoUse callout_init_mtx to simplify locking somewhat. While we're here, rearrange
Benno Rice [Fri, 13 Jun 2008 00:48:09 +0000 (00:48 +0000)]
Use callout_init_mtx to simplify locking somewhat.  While we're here, rearrange
some operations in smc_detach to remove the need for the smc_shutdown variable.

Suggested by: jhb

16 years agoImplement the -l and -r options for gpart show.
Marcel Moolenaar [Fri, 13 Jun 2008 00:04:10 +0000 (00:04 +0000)]
Implement the -l and -r options for gpart show.
The -l option changes the output to show the partition label, if applicable
and when present. The -r option changes the output to show the raw (i.e.
scheme-specific) partition types.

16 years agoBring missing getsockopt(2) options: SO_LABEL SO_PEERLABEL SO_LISTENQLIMIT
Wojciech A. Koszek [Thu, 12 Jun 2008 22:58:35 +0000 (22:58 +0000)]
Bring missing getsockopt(2) options: SO_LABEL SO_PEERLABEL SO_LISTENQLIMIT
SO_LISTENQLEN SO_LISTENINCQLEN to the manual page.

Till now those were only present in sys/socket.h file.

Reviewed by: rwatson, gnn, keramida (with mdoc hat)

16 years agoRecord my place in the universe.
Ivan Voras [Thu, 12 Jun 2008 22:53:27 +0000 (22:53 +0000)]
Record my place in the universe.

Approved by: gnn (mentor)

16 years agoAdd myself to the calendar.
Ivan Voras [Thu, 12 Jun 2008 22:52:11 +0000 (22:52 +0000)]
Add myself to the calendar.

Approved by: gnn (mentor)

16 years agoFix vm object creation locking to allow SHARED vnode locking for vnode_create_vobject.
Stephan Uphoff [Thu, 12 Jun 2008 20:46:47 +0000 (20:46 +0000)]
Fix vm object creation locking to allow SHARED vnode locking for vnode_create_vobject.
(Not currently used)

Noticed by: kib@

16 years agoFinish the support for partition labels and add it to the XML.
Marcel Moolenaar [Thu, 12 Jun 2008 19:34:07 +0000 (19:34 +0000)]
Finish the support for partition labels and add it to the XML.

16 years agoDocument more tmpfs mount options that are already
Remko Lodder [Thu, 12 Jun 2008 18:49:24 +0000 (18:49 +0000)]
Document more tmpfs mount options that are already
available.

PR: 124488
Submitted by: gahr

16 years ago- add: Keep dependent packages too if -K is specified.
Florent Thoumie [Thu, 12 Jun 2008 15:21:13 +0000 (15:21 +0000)]
- add: Keep dependent packages too if -K is specified.
- updating: terminating '\n' is not part of the package origin.
- bump PKG_INSTALL_VERSION to 20080612.

PR: bin/119368 [1], bin/124459 [2]
Submitted by: gcooper [1], Beat Gatzi <beat@chruetertee.ch> [2]
MFC after: 3 days

16 years agoFix build of fstat after minor() changes.
Ed Schouten [Thu, 12 Jun 2008 10:15:14 +0000 (10:15 +0000)]
Fix build of fstat after minor() changes.

Even though I ran a `make universe' to see whether the changes to the
device minor number macro's broke the build, I was not expecting `make
universe' to silently continue if build errors occured, thus causing me
to overlook the build error.

Approved by: philip (mentor)
Pointyhat to: me

16 years agoRemove the $FreeBSD$ tag again, now I know fbsd:nokeywords exists.
Ed Schouten [Thu, 12 Jun 2008 08:53:54 +0000 (08:53 +0000)]
Remove the $FreeBSD$ tag again, now I know fbsd:nokeywords exists.

Requested by: pjd
Approved by: philip (mentor)

16 years agoTurn dev2unit(), minor(), unit2minor() and minor2unit() into macro's.
Ed Schouten [Thu, 12 Jun 2008 08:30:54 +0000 (08:30 +0000)]
Turn dev2unit(), minor(), unit2minor() and minor2unit() into macro's.

Now that we got rid of the minor-to-unit conversion and the constraints
on device minor numbers, we can convert the functions that operate on
minor and unit numbers to simple macro's. The unit2minor() and
minor2unit() macro's are now no-ops.

The ZFS code als defined a macro named `minor'. Change the ZFS code to
use umajor() and uminor() here, as it is the correct approach to do
this. Also add $FreeBSD$ to keep SVN happy.

Approved by: philip (mentor), pjd

16 years agoAdd the raw partition type to the XML.
Marcel Moolenaar [Thu, 12 Jun 2008 06:34:14 +0000 (06:34 +0000)]
Add the raw partition type to the XML.

16 years agoAdd the raw partition type to the XML.
Marcel Moolenaar [Thu, 12 Jun 2008 06:26:36 +0000 (06:26 +0000)]
Add the raw partition type to the XML.

16 years agoAdd the raw partition type to the XML.
Marcel Moolenaar [Thu, 12 Jun 2008 05:56:03 +0000 (05:56 +0000)]
Add the raw partition type to the XML.

16 years agoAdd the raw partiton type to the XML.
Marcel Moolenaar [Thu, 12 Jun 2008 05:28:47 +0000 (05:28 +0000)]
Add the raw partiton type to the XML.

16 years agoAdd the raw partition type to the XML.
Marcel Moolenaar [Thu, 12 Jun 2008 05:27:23 +0000 (05:27 +0000)]
Add the raw partition type to the XML.

16 years agoReverse the direction of pmap_promote_pde()'s traversal over the specified
Alan Cox [Thu, 12 Jun 2008 05:18:09 +0000 (05:18 +0000)]
Reverse the direction of pmap_promote_pde()'s traversal over the specified
page table page.  The direction of the traversal can matter if
pmap_promote_pde() has to remove write access (PG_RW) from a PTE that hasn't
been modified (PG_M).  In general, if there are two or more such PTEs to
choose among, it is better to write protect the one nearer the high end of
the page table page rather than the low end.  This is because most programs
access memory in an ascending direction.  The net result of this change is a
sometimes significant reduction in the number of failed promotion attempts
and the number of pages that are write protected by pmap_promote_pde().

16 years agoAdd the partition label and the raw partition type to the XML.
Marcel Moolenaar [Thu, 12 Jun 2008 04:43:34 +0000 (04:43 +0000)]
Add the partition label and the raw partition type to the XML.

16 years agoDefine APM_ENT_NAMELEN and APM_ENT_TYPELEN for general use.
Marcel Moolenaar [Thu, 12 Jun 2008 04:37:37 +0000 (04:37 +0000)]
Define APM_ENT_NAMELEN and APM_ENT_TYPELEN for general use.

16 years agoReturn an error code rather than ENXIO when both rman_init() and
Kevin Lo [Thu, 12 Jun 2008 02:28:58 +0000 (02:28 +0000)]
Return an error code rather than ENXIO when both rman_init() and
rman_manage_region() failed.

Reviewed by: marcel

16 years agoFix a typo: i80321_pci_probe -> i81342_pci_probe
Kevin Lo [Thu, 12 Jun 2008 01:46:06 +0000 (01:46 +0000)]
Fix a typo: i80321_pci_probe -> i81342_pci_probe

16 years agoMake sure we drain our taskqueues and stop our callouts in detach.
Benno Rice [Thu, 12 Jun 2008 00:38:54 +0000 (00:38 +0000)]
Make sure we drain our taskqueues and stop our callouts in detach.

16 years agoChange include to reflect tcp_lro.h move.
Jack F Vogel [Wed, 11 Jun 2008 22:29:47 +0000 (22:29 +0000)]
Change include to reflect tcp_lro.h move.

16 years agoRemove the tcp_lro.[ch] files as they are now in netinet.
Jack F Vogel [Wed, 11 Jun 2008 22:26:27 +0000 (22:26 +0000)]
Remove the tcp_lro.[ch] files as they are now in netinet.

16 years agoRemove compile of tcp_lro since its now in netinet
Jack F Vogel [Wed, 11 Jun 2008 22:18:50 +0000 (22:18 +0000)]
Remove compile of tcp_lro since its now in netinet

16 years agoAdd generic TCP LOR into netinet
Jack F Vogel [Wed, 11 Jun 2008 22:12:50 +0000 (22:12 +0000)]
Add generic TCP LOR into netinet

16 years agoAdd LRO into kernel build
Jack F Vogel [Wed, 11 Jun 2008 22:10:10 +0000 (22:10 +0000)]
Add LRO into kernel build

16 years agoDuh, wrong directory, needed to be in netinet
Jack F Vogel [Wed, 11 Jun 2008 22:08:13 +0000 (22:08 +0000)]
Duh, wrong directory, needed to be in netinet

16 years agoAdd generic TCP LRO code, moved from the ixgbe driver into net
Jack F Vogel [Wed, 11 Jun 2008 22:00:29 +0000 (22:00 +0000)]
Add generic TCP LRO code, moved from the ixgbe driver into net

16 years agoFix a typo in a comment.
Wojciech A. Koszek [Wed, 11 Jun 2008 20:05:25 +0000 (20:05 +0000)]
Fix a typo in a comment.

16 years agoDon't enforce unique device minor number policy anymore.
Ed Schouten [Wed, 11 Jun 2008 18:55:19 +0000 (18:55 +0000)]
Don't enforce unique device minor number policy anymore.

Except for the case where we use the cloner library (clone_create() and
friends), there is no reason to enforce a unique device minor number
policy. There are various drivers in the source tree that allocate unr
pools and such to provide minor numbers, without using them themselves.

Because we still need to support unique device minor numbers for the
cloner library, introduce a new flag called D_NEEDMINOR. All cdevsw's
that are used in combination with the cloner library should be marked
with this flag to make the cloning work.

This means drivers can now freely use si_drv0 to store their own flags
and state, making it effectively the same as si_drv1 and si_drv2. We
still keep the minor() and dev2unit() routines around to make drivers
happy.

The NTFS code also used the minor number in its hash table. We should
not do this anymore. If the si_drv0 field would be changed, it would no
longer end up in the same list.

Approved by: philip (mentor)

16 years agoDocument the AUTO_UPGRADE (-U) knob for .mergemasterrc
Doug Barton [Wed, 11 Jun 2008 18:54:06 +0000 (18:54 +0000)]
Document the AUTO_UPGRADE (-U) knob for .mergemasterrc

Submitted by: mezz
No Cookie For: gordon  :)

16 years agoAdd man page for ixgbe driver
Jack F Vogel [Wed, 11 Jun 2008 18:49:55 +0000 (18:49 +0000)]
Add man page for ixgbe driver

16 years agoConvert ndis_spinlock to ndis_mtx and start using the sleepable
Coleman Kane [Wed, 11 Jun 2008 13:40:15 +0000 (13:40 +0000)]
Convert ndis_spinlock to ndis_mtx and start using the sleepable
mtx interface for NDIS_LOCK/UNLOCK. This should result in less
CPU utilization on behalf of the ndis driver. Additionally, this
commit also fixes a potential LOR in the ndis_tick code, by
not locking inside the ndis_tick function, but instead delegating
that work to the helpers called through IoQueueWorkItem. The
way that this is currently set up for NDIS prevents us from
simply implementing a callout_init_mtx mechanism.

However, the helper functions that handle the various timeout
cases implement fine-grained locking using the spinlocks provided
by the NDIS-compat layer, and using the mtx that is added with
this commit. This leaves the following ndis_softc members operated
on in ndis_tick in an unlocked context:

  * ndis_hang_timer - Only modified outside of ndis_tick once, before
                      the first callout_reset to schedule ndis_tick
  * ifp->if_oerrors - Only incremented in two places, which should be
                      an atomic op
  * ndis_tx_timer   - Assigned to 5 (when guaranteed to be 0) or 0
                      (in txeof), to indicate to ndis_tick what to
                      do. This is the only member of which I was
                      suspicious for needing the NDIS_LOCK here. My
                      testing (and another's) have been fine so far.
  * ndis_stat_callout - Only uses a simple set of callout routines,
                        callout_reset only called by ndis_tick after
                        the initial reset, and then callout_drain is
                        used exactly once in shutdown code.

The benefit is that ndis_tick doesn't acquire NDIS_LOCK unless one of
the timeout conditions is flagged, and it still obeys the locking
order semantics that are dictated by the NDIS layer at the moment. I
have been investigating a more thorough s/spinlock/mtx/ of the NDIS
layer, but the simplest naive approach (replace KeAcquireSpinLock
with an mtx implementation) has anti-succeeded for me so far. This
is a good first step though.

Tested by: onemda@gmail.com
Reviewed by: current@, jhb, thompsa
Proposed by: jhb

16 years agoIn cd9660_readdir vop, always initialize the idp->uio_off member.
Konstantin Belousov [Wed, 11 Jun 2008 12:46:09 +0000 (12:46 +0000)]
In cd9660_readdir vop, always initialize the idp->uio_off member.

The while loop that is assumed to initialize the uio_off later, may
be not entered at all, causing uninitialized value to be returned in
uio->uio_offset.

PR:  122925
Submitted by: Jaakko Heinonen <jh saunalahti fi>
MFC after: 1 weeks

16 years agoWait up to 1S for the TFD data to signal un-busy before fetching the signature.
Søren Schmidt [Wed, 11 Jun 2008 08:48:25 +0000 (08:48 +0000)]
Wait up to 1S for the TFD data to signal un-busy before fetching the signature.
This at least helps a few slow devices out there.

Submitted by: Andrey V. Elsukov

16 years agofix a page fault that it occurred during ifp is NULL. This bug happens
Weongyo Jeong [Wed, 11 Jun 2008 07:55:07 +0000 (07:55 +0000)]
fix a page fault that it occurred during ifp is NULL.  This bug happens
when NDIS driver's initialization is failed and NDIS driver's trying to
call NdisWriteErrorLogEntry().

16 years agoSwitch to using a normal mutex instead of a spin mutex.
Benno Rice [Wed, 11 Jun 2008 07:26:02 +0000 (07:26 +0000)]
Switch to using a normal mutex instead of a spin mutex.

We still use the interrupt filter due to performance problems that show up if
we don't.  The main problem seen is that, due to the interrupt being edge
triggered, we occasionally miss interrupts which leads us to not notice that
we can transmit more packets.  Using the new approach, which just schedules
a task on a taskqueue, we are guaranteed to have the task run even if the
interrupt arrived while we were already executing.  If we were to use an
ithread the system would mask the interrupt while the handler is run and we'd
miss interrupts.

16 years agoConvert bus_space_{read,write}_* calls to bus_{read,write}_* calls.
Benno Rice [Wed, 11 Jun 2008 06:53:55 +0000 (06:53 +0000)]
Convert bus_space_{read,write}_* calls to bus_{read,write}_* calls.

Suggested by: jhb