]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoCleanup after previous commit.
Christian Brueffer [Fri, 25 May 2007 16:05:17 +0000 (16:05 +0000)]
Cleanup after previous commit.

17 years agoAdd a new option for ppp.conf: rad_port_id. It allows to
Roman Bogorodskiy [Fri, 25 May 2007 13:45:49 +0000 (13:45 +0000)]
Add a new option for ppp.conf: rad_port_id. It allows to
change the way of what ppp submits to the RADIUS server
as NAS-Port-Id. Possible options are: the PID of the process
owning the corresponding interface, tun(4) interface number,
interface index (as it would get returned by if_nametoindex(3)),
or it's possible to keep the default behavior. Check the ppp(8)
manual page for details.

PR: bin/112764
Submitted by: novel (myself)
Reviewed by: flz
Approved by: flz
MFC after: 1 month

17 years agoInclude string.h for memcpy() and memcmp().
Xin LI [Fri, 25 May 2007 13:43:14 +0000 (13:43 +0000)]
Include string.h for memcpy() and memcmp().

17 years agoMake the comparsion more obvious.
Xin LI [Fri, 25 May 2007 13:13:12 +0000 (13:13 +0000)]
Make the comparsion more obvious.

17 years agoConst'ify and ANSIfy the internal interfaces of regex(3).
Xin LI [Fri, 25 May 2007 12:44:58 +0000 (12:44 +0000)]
Const'ify and ANSIfy the internal interfaces of regex(3).
This is the final change that makes libc to compile with
WERROR on my amd64 crashbox.

17 years agoANSIfy function definitions, reduces diff against OpenBSD.
Xin LI [Fri, 25 May 2007 10:40:33 +0000 (10:40 +0000)]
ANSIfy function definitions, reduces diff against OpenBSD.

17 years agoAlso fix the misspelling of hes_resolve().
Ruslan Ermilov [Fri, 25 May 2007 09:58:25 +0000 (09:58 +0000)]
Also fix the misspelling of hes_resolve().

Submitted by: Danny Braniss

17 years agoThe usage of "info" in init_hash() is read-only, so constify
Xin LI [Fri, 25 May 2007 09:57:48 +0000 (09:57 +0000)]
The usage of "info" in init_hash() is read-only, so constify
the internal interface instead of casting away the constant
constraint upon calling.

17 years ago(MFp4)
Kip Macy [Fri, 25 May 2007 09:48:20 +0000 (09:48 +0000)]
(MFp4)
        - upgrade to reflect state of 1.0.0.86
        - move from firmware rev 3.2 to 4.0.0
        - import driver bits for offload functionality
- remove binary distribution clause from top level files as it
  runs counter to the intent of purely supporting the hardware

MFC after: 3 days

17 years agoUpdate for the 4.21 import (manuals didn't change).
Ruslan Ermilov [Fri, 25 May 2007 09:25:05 +0000 (09:25 +0000)]
Update for the 4.21 import (manuals didn't change).

17 years agoRe-add support for NIS netgroups (heavily modified from patch in PR)
Dag-Erling Smørgrav [Fri, 25 May 2007 07:50:18 +0000 (07:50 +0000)]
Re-add support for NIS netgroups (heavily modified from patch in PR)

PR: bin/112955
Submitted by: A. Blake Cooper <blake@cluebie.net>
MFC after: 3 weeks

17 years agodo not directly call rtfree() to meet an assumption in the callee.
JINMEI Tatuya [Fri, 25 May 2007 06:44:00 +0000 (06:44 +0000)]
do not directly call rtfree() to meet an assumption in the callee.
(this fix suppresses a warning message appearing in the boot time on
IPv6-enabled systems)

Approved by: gnn (mentor)

17 years agoAdd a sysctl, 'debug.acpi.suspend_bounce', that causes the system to bounce
Nate Lawson [Fri, 25 May 2007 05:26:21 +0000 (05:26 +0000)]
Add a sysctl, 'debug.acpi.suspend_bounce', that causes the system to bounce
back in a simulated resume instead of entering the requested suspend state.
This helps in testing drivers separately from the acpi suspend code.  To
test your drivers, set debug.acpi.suspend_bounce=1 and then run
acpiconf -s3 (or 4).

MFC after: 1 day

17 years agoInclude stand.h for loader.
Hidetoshi Shimokawa [Fri, 25 May 2007 05:00:39 +0000 (05:00 +0000)]
Include stand.h for loader.

MFC after: 3 days

17 years ago- When I introduce wide character enabled ncurses into base, all headers
Rong-En Fan [Fri, 25 May 2007 02:27:46 +0000 (02:27 +0000)]
- When I introduce wide character enabled ncurses into base, all headers
  are installed twice (once in non-widec version, onec in widec version).
  Headers with widec enabled are compatible with non-widec version
  for libraries. However, if you do a repeat build/install, the curses.h
  is always overwritten. The reason is that headers and statics libraries
  are installed with -S option to preserve their mtime if no actual changes,
  which saves time when doing incremental builds. The curses.h is installed
  by non-widec ncurses first, then by widec ncurses. So next time, it happens
  again. You see something like this:

  # pwd
  /usr/src/lib/ncurses
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  install: curses.h -> /usr/include/curses.h
  ===> ncursesw (installincludes)
  install: curses.h -> /usr/include/curses.h
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  install: curses.h -> /usr/include/curses.h
  ===> ncursesw (installincludes)
  install: curses.h -> /usr/include/curses.h

  The solution is to disable installing headers in non-widec version. Now
  you see this:

  # pwd
  /usr/src/lib/ncurses
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  ===> ncursesw (installincludes)
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  ===> ncursesw (installincludes)

  For form/panel/menu libraries, the headers are the same for both version.
  To be consistent with ncurses, I also disable the installation in non-widec
  version.

Reported by: des
Reviewed by: ru
Thanks to: ru
Approved by: delphij (mentor)
MFC after: 2 weeks

17 years agoremove unneccessary curcpu reference in setting mmfsa
Kip Macy [Fri, 25 May 2007 01:55:51 +0000 (01:55 +0000)]
remove unneccessary curcpu reference in setting mmfsa

17 years agomove trap table initialization for cpu0 into sparc64_init
Kip Macy [Fri, 25 May 2007 01:21:40 +0000 (01:21 +0000)]
move trap table initialization for cpu0 into sparc64_init

17 years agoFreeBSD has <limits.h>.
David E. O'Brien [Thu, 24 May 2007 22:10:22 +0000 (22:10 +0000)]
FreeBSD has <limits.h>.

17 years agos/X11R6/local/g
Dag-Erling Smørgrav [Thu, 24 May 2007 22:04:07 +0000 (22:04 +0000)]
s/X11R6/local/g

17 years agoUpdate for the 'file' 4.21 import.
David E. O'Brien [Thu, 24 May 2007 22:02:49 +0000 (22:02 +0000)]
Update for the 'file' 4.21 import.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r169962,
David E. O'Brien [Thu, 24 May 2007 21:59:38 +0000 (21:59 +0000)]
This commit was generated by cvs2svn to compensate for changes in r169962,
which included commits to RCS files with non-trunk default branches.

17 years agoVirgin import of Christos Zoulas's FILE 4.21.
David E. O'Brien [Thu, 24 May 2007 21:59:38 +0000 (21:59 +0000)]
Virgin import of Christos Zoulas's FILE 4.21.

17 years agoTemporarily add 'WITH_GCC3' that removes -Wno-pointer-sign from the
David E. O'Brien [Thu, 24 May 2007 21:53:42 +0000 (21:53 +0000)]
Temporarily add 'WITH_GCC3' that removes -Wno-pointer-sign from the
compiler invocation.  This is just to help get over the hump of people
tracking down bugs that may cross the GCC 4.2 upgrade.
It is envisioned that this option goes away after a suitable amount
of time.

17 years agoEnable FTP_COMBINE_CWDS.
Dag-Erling Smørgrav [Thu, 24 May 2007 20:28:14 +0000 (20:28 +0000)]
Enable FTP_COMBINE_CWDS.

17 years agoFix handling of filenames containing whitespace.
Lukas Ertl [Thu, 24 May 2007 18:28:08 +0000 (18:28 +0000)]
Fix handling of filenames containing whitespace.

PR:      bin/112860
MFC in:  3 days

17 years agoFix for PR 112937, thanks to Ruslan Ermilov. I am still
Jack F Vogel [Thu, 24 May 2007 18:11:11 +0000 (18:11 +0000)]
Fix for PR 112937, thanks to Ruslan Ermilov. I am still
a bit confused how the 'link flap' was connected to the
'get' rather than 'set' address, but this seems the right
thing to do here.

17 years agoSearch for a proper ucode image to use by incrementing the minor
Sam Leffler [Thu, 24 May 2007 16:31:22 +0000 (16:31 +0000)]
Search for a proper ucode image to use by incrementing the minor
release number up to the max.  This should eliminate the need to
tweak the default imageid define for later releases that are found
on the Intel web site.

MFC after: 1 month

17 years agoo add hints for avila boards; brings back i2c devices lost when iicbus
Sam Leffler [Thu, 24 May 2007 16:27:48 +0000 (16:27 +0000)]
o add hints for avila boards; brings back i2c devices lost when iicbus
  started using hints instead of wired down device enumeration
o add usb commented out; will enable when support works

MFC after: 1 month

17 years agoMove to hints for configuring numerous devices so we can eliminate various
Sam Leffler [Thu, 24 May 2007 16:25:49 +0000 (16:25 +0000)]
Move to hints for configuring numerous devices so we can eliminate various
quirky code: uarts, led, cf/ide, ixpqmgr, npe are now specified with hints.

May want to put some of these devices back in the code and just use hints
to override/specify configuration.

MFC after: 1 month

17 years agoDon't muck with the internal state of a uart during probe, all we
Sam Leffler [Thu, 24 May 2007 16:17:51 +0000 (16:17 +0000)]
Don't muck with the internal state of a uart during probe, all we
should setup is the class.  This corrects an issue where enabling
uart1 on the avila board caused uart0 to stop working during boot
(no msgs generated by rc scripts were displayed).

Reviewed by: imp
MFC after: 3 weeks

17 years agoFix interrupt setup; rev 1.3 switched the irq to GPIO_TYPE_ACT_LOW
Sam Leffler [Thu, 24 May 2007 16:15:20 +0000 (16:15 +0000)]
Fix interrupt setup; rev 1.3 switched the irq to GPIO_TYPE_ACT_LOW
but this does not work on avila boards; special case them to use
GPIO_TYPE_EDG_RISING.

MFC after: 3 weeks
Submitted by: jhay

17 years agoUpdate for the 'file' 4.19 import.
David E. O'Brien [Thu, 24 May 2007 16:14:38 +0000 (16:14 +0000)]
Update for the 'file' 4.19 import.

17 years agoVirgin import of Christos Zoulas's FILE 4.19.
David E. O'Brien [Thu, 24 May 2007 16:12:23 +0000 (16:12 +0000)]
Virgin import of Christos Zoulas's FILE 4.19.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r169942,
David E. O'Brien [Thu, 24 May 2007 16:12:23 +0000 (16:12 +0000)]
This commit was generated by cvs2svn to compensate for changes in r169942,
which included commits to RCS files with non-trunk default branches.

17 years agohesiod_resolv -> hesiod_resolve
Ruslan Ermilov [Thu, 24 May 2007 13:50:06 +0000 (13:50 +0000)]
hesiod_resolv -> hesiod_resolve

Submitted by: Danny Braniss

17 years agoDNLC_NO_VNODE can't be NULL.
Pawel Jakub Dawidek [Thu, 24 May 2007 13:44:45 +0000 (13:44 +0000)]
DNLC_NO_VNODE can't be NULL.

Reported by: ru

17 years agoFix a formatting error: the list of control packets ends earlier.
Yaroslav Tykhiy [Thu, 24 May 2007 09:43:41 +0000 (09:43 +0000)]
Fix a formatting error: the list of control packets ends earlier.

17 years agoFix the online usage for the "dump" command.
Ruslan Ermilov [Thu, 24 May 2007 09:21:20 +0000 (09:21 +0000)]
Fix the online usage for the "dump" command.

17 years agoInitialize ZFS a bit earlier and block root mounting until
Pawel Jakub Dawidek [Thu, 24 May 2007 07:43:00 +0000 (07:43 +0000)]
Initialize ZFS a bit earlier and block root mounting until
initialization is complete. This fixes some root-on-ZFS
configurations.

Reported by: Bruno Damour <freebsd.ruomad@free.fr>
Tested by: Bruno Damour <freebsd.ruomad@free.fr>

17 years agoAdd sparc64 regression test files.
Diomidis Spinellis [Thu, 24 May 2007 07:00:53 +0000 (07:00 +0000)]
Add sparc64 regression test files.

Submitted by: Carl Johan Gustavsson

17 years agoModify file generation instructions to remove the tty field:
Diomidis Spinellis [Thu, 24 May 2007 06:57:50 +0000 (06:57 +0000)]
Modify file generation instructions to remove the tty field:
the mapping from number to name differs between systems,
and will cause tests to fail.

17 years agoCleanup pax(1) sources a little bit while I poked around in them:
Ralf S. Engelschall [Thu, 24 May 2007 06:44:37 +0000 (06:44 +0000)]
Cleanup pax(1) sources a little bit while I poked around in them:
- remove a superfluous doubled trailing semicolon.
- remove the extra void casts on calls to void-function free(3).

17 years agoFix indentation.
Ralf S. Engelschall [Thu, 24 May 2007 06:01:06 +0000 (06:01 +0000)]
Fix indentation.

17 years agoRemove two superfluous trailing semicolons.
Ralf S. Engelschall [Thu, 24 May 2007 05:58:20 +0000 (05:58 +0000)]
Remove two superfluous trailing semicolons.

17 years agoRemove two unnecessary and useless sub-shell constructs.
Ralf S. Engelschall [Thu, 24 May 2007 05:54:37 +0000 (05:54 +0000)]
Remove two unnecessary and useless sub-shell constructs.

17 years agoUpdate the maintainer id for em driver.
Jack F Vogel [Wed, 23 May 2007 21:47:19 +0000 (21:47 +0000)]
Update the maintainer id for em driver.

17 years agoFix the procedure for generating the test summary files.
Diomidis Spinellis [Wed, 23 May 2007 21:35:45 +0000 (21:35 +0000)]
Fix the procedure for generating the test summary files.
Document the procedure for obtaining an appropriately old version of sa.

17 years agoFreeBSD's namecache works quite well with ZFS, so remove DNLC.
Pawel Jakub Dawidek [Wed, 23 May 2007 21:33:02 +0000 (21:33 +0000)]
FreeBSD's namecache works quite well with ZFS, so remove DNLC.

17 years agoAll objects we create using GFS are directories, so initialize d_type
Pawel Jakub Dawidek [Wed, 23 May 2007 21:27:47 +0000 (21:27 +0000)]
All objects we create using GFS are directories, so initialize d_type
properly, but add XXX comment saying that it can eventually change in
the future.

17 years agoTwo minor fixes, keep old 82542 from using jumbo frames, and add
Jack F Vogel [Wed, 23 May 2007 20:41:20 +0000 (20:41 +0000)]
Two minor fixes, keep old 82542 from using jumbo frames, and add
missing htole64 in encap code.

Reviewed by:Pdeuskar
Approved by:Pdeuskar

17 years agoAdd CWR back into the PRINT_TH_FLAGS list as gcc42 doesn't complain
Andre Oppermann [Wed, 23 May 2007 19:16:21 +0000 (19:16 +0000)]
Add CWR back into the PRINT_TH_FLAGS list as gcc42 doesn't complain
about \8 in a string anymore.

17 years agoIn tcp_log_addrs():
Andre Oppermann [Wed, 23 May 2007 19:07:53 +0000 (19:07 +0000)]
In tcp_log_addrs():
 o add the hex output of the th_flags field to the example log
   line in comments
 o simplify the log line length calculation and make it less
   evil
 o correct the test for the length panic; the line isn't on
   the stack but malloc'ed

17 years agoDon't set lo_name and clobber lo_flags in lock_profile_object_init().
John Baldwin [Wed, 23 May 2007 18:46:54 +0000 (18:46 +0000)]
Don't set lo_name and clobber lo_flags in lock_profile_object_init().
This was just wasteful when this was always called before lock_init()
(which overwrote both fields each time), but when
lock_profile_object_init() was moved into lock_init() the clearing of
lo_flags proved fatal (all locks became spin locks to _sleep(), etc.)

Reported by: kris

17 years agofix comment typo
Sam Leffler [Wed, 23 May 2007 17:28:21 +0000 (17:28 +0000)]
fix comment typo

17 years agoComment that tdsignal() may be entered from the debugger.
Robert Watson [Wed, 23 May 2007 17:27:42 +0000 (17:27 +0000)]
Comment that tdsignal() may be entered from the debugger.

17 years agoInitialize time_lock before calling cpu_initclocks(). This corrects a
Robert Watson [Wed, 23 May 2007 17:27:01 +0000 (17:27 +0000)]
Initialize time_lock before calling cpu_initclocks().  This corrects a
race condition in which hardclock fires before the mutex is initialized
leading to a "corrupt spinlock" panic.

Submitted by: attilio

17 years agoAdd support for "hardware" vlan tag insertion & removal emulation
Andrew Gallatin [Wed, 23 May 2007 16:25:40 +0000 (16:25 +0000)]
Add support for "hardware" vlan tag insertion & removal emulation
in the mxge driver so as to be able to do checksum offload
on vlans.  This is good enough to achieve 10GbE line rate on vlans.

17 years agoFix the dependency for the linux_support.s, explicitely add linux_assym.h.
Konstantin Belousov [Wed, 23 May 2007 15:45:52 +0000 (15:45 +0000)]
Fix the dependency for the linux_support.s, explicitely add linux_assym.h.

Reported by: rwatson
In collaboration with: rdivacky
Sponsored by: Google SoC 2007

17 years agoFix a typo in pcib_alloc_msi{x} which resulted in the
Andrew Gallatin [Wed, 23 May 2007 15:31:00 +0000 (15:31 +0000)]
Fix a typo in pcib_alloc_msi{x} which resulted in the
device's, not the bridge's, softc to be used to check the
PCIB_DISABLE_MSI flag.  This resulted in randomly allowing
or denying MSI interrupts based on whatever value the driver
happened to store at sizeof(device_t) bytes into its softc.

I noticed this when I stopped getting MSI interrupts
after slighly re-arranging mxge's softc yesterday.

17 years agoRemove duplicate includes.
Olivier Houchard [Wed, 23 May 2007 13:36:02 +0000 (13:36 +0000)]
Remove duplicate includes.

Submitted by:   Cyril Nguyen Huu <cyril ci0 org>

17 years agoRemove duplicate includes.
Olivier Houchard [Wed, 23 May 2007 13:21:57 +0000 (13:21 +0000)]
Remove duplicate includes.

Submitted by:   Cyril Nguyen Huu <cyril ci0 org>

17 years agoNit: avoid shadowing truncate(2) with a local variable.
Dag-Erling Smørgrav [Wed, 23 May 2007 12:09:33 +0000 (12:09 +0000)]
Nit: avoid shadowing truncate(2) with a local variable.

17 years agoEliminate VI_LOCK()/VI_UNLOCK() pair from getattr and close code paths.
Pawel Jakub Dawidek [Wed, 23 May 2007 11:06:09 +0000 (11:06 +0000)]
Eliminate VI_LOCK()/VI_UNLOCK() pair from getattr and close code paths.
It's hard to measure performance improvement on my test machine, but the
change won't degrade performance for sure. I can measure slight improvement
for debugging kernel and it can also be a win for machines where atomic
operation is more expensive.

Reviewed by: kib

17 years agoFix stupid braino in previous commit.
Dag-Erling Smørgrav [Wed, 23 May 2007 10:06:03 +0000 (10:06 +0000)]
Fix stupid braino in previous commit.

17 years agoNo need to force __inline__ of currecord(), as the compiler will usefully
Robert Watson [Wed, 23 May 2007 09:32:30 +0000 (09:32 +0000)]
No need to force __inline__ of currecord(), as the compiler will usefully
inline it when needed already, and the symbol is also required outside of
audit.c.  This silences a new gcc warning on the topic of using __inline__
instead of __inline.

MFC after: 3 days

17 years agoMove futex support code from <arch>/support.s into linux compat directory.
Konstantin Belousov [Wed, 23 May 2007 08:33:06 +0000 (08:33 +0000)]
Move futex support code from <arch>/support.s into linux compat directory.
Implement all futex atomic operations in assembler to not depend on the
fuword() that does not allow to distinguish between -1 and failure return.
Correctly return 0 from atomic operations on success.

In collaboration with: rdivacky
Tested by: Scot Hetzel <swhetzel gmail com>, Milos Vyletel <mvyletel mzm cz>
Sponsored by: Google SoC 2007

17 years agoIf (flags & O_TRUNC), don't truncate the file until we've successfully
Dag-Erling Smørgrav [Wed, 23 May 2007 08:12:34 +0000 (08:12 +0000)]
If (flags & O_TRUNC), don't truncate the file until we've successfully
locked it.

MFC after: 3 weeks

17 years agoAdd some early diagnostics under bootverbose
Kip Macy [Wed, 23 May 2007 05:22:58 +0000 (05:22 +0000)]
Add some early diagnostics under bootverbose
bootverbose is not getting set early enough so hardcode for the moment

17 years agoDo not attempt to load the kernel module when checking if an interface exists.
Andrew Thompson [Wed, 23 May 2007 00:18:44 +0000 (00:18 +0000)]
Do not attempt to load the kernel module when checking if an interface exists.

This would cause pseudo network modules to be reloaded again when trying to
unload the first time if any cloned interfaces exist.

MFC after: 2 weeks

17 years ago- Remove redundant initialization.
Pawel Jakub Dawidek [Tue, 22 May 2007 23:05:48 +0000 (23:05 +0000)]
- Remove redundant initialization.
- Compare pointer with NULL.

17 years agoLock vnode on lookup. This fixes ZIL replay for rmdir/unlink/rename.
Pawel Jakub Dawidek [Tue, 22 May 2007 21:22:25 +0000 (21:22 +0000)]
Lock vnode on lookup. This fixes ZIL replay for rmdir/unlink/rename.

Reported by: des

17 years agoFix runtime crash in OpenSSL with "Illegal instruction" by making some
Simon L. B. Nielsen [Tue, 22 May 2007 20:28:19 +0000 (20:28 +0000)]
Fix runtime crash in OpenSSL with "Illegal instruction" by making some
casts a bit less evil.

This was e.g. seen when using portsnap as:

  Fetching snapshot tag from portsnap3.FreeBSD.org... Illegal instruction

Note the patch is slightly different from kan's original patch to
match style in the OpenSSL source files a bit better.

Submitted by: kan
Tested by: many

17 years agoRemove an empty line.
Jung-uk Kim [Tue, 22 May 2007 20:24:07 +0000 (20:24 +0000)]
Remove an empty line.

17 years agoRemove BCM5704S specific tunable (hw.bge.fake_autoneg) and
Jung-uk Kim [Tue, 22 May 2007 19:35:34 +0000 (19:35 +0000)]
Remove BCM5704S specific tunable (hw.bge.fake_autoneg) and
auto-detect the condition.

17 years agoRearrange DMA read/write control register settings based on document snippet
Jung-uk Kim [Tue, 22 May 2007 19:22:58 +0000 (19:22 +0000)]
Rearrange DMA read/write control register settings based on document snippet
provided by davidch via glebius.

PR: kern/96806

17 years agoRemove stale alpha support code.
Jung-uk Kim [Tue, 22 May 2007 19:11:39 +0000 (19:11 +0000)]
Remove stale alpha support code.

17 years agoFix time out check in EEPROM read and move delays to give some settle time.
Jung-uk Kim [Tue, 22 May 2007 18:51:05 +0000 (18:51 +0000)]
Fix time out check in EEPROM read and move delays to give some settle time.

Submitted by: mjacob

17 years agoAdd delays in MI communication register R/W loops.
Jung-uk Kim [Tue, 22 May 2007 18:16:23 +0000 (18:16 +0000)]
Add delays in MI communication register R/W loops.

17 years agoFix typos.
Christian Brueffer [Tue, 22 May 2007 18:14:35 +0000 (18:14 +0000)]
Fix typos.

17 years agoAdd the -n flag for disabling automatic module loading, this will be used by
Andrew Thompson [Tue, 22 May 2007 17:41:09 +0000 (17:41 +0000)]
Add the -n flag for disabling automatic module loading, this will be used by
rc.d to stop it reloading the network module on unload.

17 years agoSome minor cleanups:
Gleb Smirnoff [Tue, 22 May 2007 16:17:31 +0000 (16:17 +0000)]
Some minor cleanups:
- In rt_check() remove the senderr() macro and the "bad" label. They
  used to simplify code, but now aren't.
- Remove extra RT_LOCK_ASSERT() in rt_setgate(). The RT_REMREF macro
  does this.
- In rtfree() convert panics to KASSERTs.
- Strict the routing API: rtfree() should be called only in a case
  when we are completely sure we've got the last reference on the
  rtentry. In all other cases RTFREE_LOCKED() macro should be used.
  If the reference isn't the last one spit out a warning printf.
  Correct the only(?) case for this in rt_check().
- Fix typos in comments.

17 years agomxge cleanups:
Andrew Gallatin [Tue, 22 May 2007 15:57:49 +0000 (15:57 +0000)]
mxge cleanups:

- Remove code to use the special wc_fifo.  It has been disabled by default
  in our other drivers as it actually slows down transmit by a small amount

- Dynamically determine the amount of space required for the rx_done
  ring rather than hardcoding it.

- Compute the number of tx descriptors we are willing to transmit per
  frame as the minimum of 128 or 1/4 the tx ring size.

- Fix a typo in the tx dma tag setup which could lead to unnecessary
  defragging of TSO packets (and potentially even dropping TSO packets
  due to EFBIG being returned).

- Add a counter to keep track of how many times we've needed to
  defragment a frame.  It should always be zero.

- Export new extended f/w counters via sysctl

Sponsored by: Myricom, Inc.

17 years agoReplace "sizeof(struct bucket[cache_size])" with
Colin Percival [Tue, 22 May 2007 15:37:58 +0000 (15:37 +0000)]
Replace "sizeof(struct bucket[cache_size])" with
"cache_size * sizeof(struct bucket)".  The former is valid in C99 but can
confuse earlier compilers, while the latter is a standard idiom which all
C compilers understand.

Approved by: kientzle

17 years agoHook mxge_lro.c to the build so that the if_mxge.ko module
Andrew Gallatin [Tue, 22 May 2007 14:38:17 +0000 (14:38 +0000)]
Hook mxge_lro.c to the build so that the if_mxge.ko module
will load.

17 years agobackout filter of Nil UUID as the boot loader code already filters out Nil UUIDs...
Ralf S. Engelschall [Tue, 22 May 2007 13:53:59 +0000 (13:53 +0000)]
backout filter of Nil UUID as the boot loader code already filters out Nil UUIDs (see src/sys/boot/i386/libi386/smbios.c:smbios_setuuid for details)

17 years agoAdd support for setmode and settarget messages.
Alexander Motin [Tue, 22 May 2007 12:23:39 +0000 (12:23 +0000)]
Add support for setmode and settarget messages.

Approved by: glebius (mentor)

17 years agoAllow node to bypass traffic while no alias address defined.
Alexander Motin [Tue, 22 May 2007 12:14:43 +0000 (12:14 +0000)]
Allow node to bypass traffic while no alias address defined.

Approved by: glebius (mentor)

17 years agoReturn back NETGRAPH_MPPC_COMPRESSION depends.
Alexander Motin [Tue, 22 May 2007 12:00:31 +0000 (12:00 +0000)]
Return back NETGRAPH_MPPC_COMPRESSION depends.

Reviewed by: ru, julian
Approved by: glebius (mentor)

17 years agoRemove the restore and chroot command to avoid disk-full error.
Yoshihiro Takahashi [Tue, 22 May 2007 11:32:55 +0000 (11:32 +0000)]
Remove the restore and chroot command to avoid disk-full error.

17 years agoSet .PATH before referring to the corresponding sources.
Diomidis Spinellis [Tue, 22 May 2007 10:49:42 +0000 (10:49 +0000)]
Set .PATH before referring to the corresponding sources.

17 years agoDon't forget to clean generated ssp.h.
Ruslan Ermilov [Tue, 22 May 2007 10:40:58 +0000 (10:40 +0000)]
Don't forget to clean generated ssp.h.

17 years agoDon't want a stray systrace_args.c in objdir.
Ruslan Ermilov [Tue, 22 May 2007 10:36:12 +0000 (10:36 +0000)]
Don't want a stray systrace_args.c in objdir.

17 years agoRemove the ugly csh(1) based UUID lower-case translation hack from
Ralf S. Engelschall [Tue, 22 May 2007 10:22:24 +0000 (10:22 +0000)]
Remove the ugly csh(1) based UUID lower-case translation hack from
/etc/rc.d/hostid now that we switched the origin of the UUID (variable
smbios.system.uuid as provided by the i386 BIOS code) to already provide
a standard conforming lower-case UUID text representation.

17 years agoIncrease precision of time values in the process accounting
Diomidis Spinellis [Tue, 22 May 2007 06:51:38 +0000 (06:51 +0000)]
Increase precision of time values in the process accounting
structure, while maintaining backward compatibility with legacy
file and record formats.

17 years agoRegression tests for sparc64 record formats.
Diomidis Spinellis [Tue, 22 May 2007 06:34:20 +0000 (06:34 +0000)]
Regression tests for sparc64 record formats.

Submitted by: Carl Johan Gustavsson

17 years agoRegression tests for amd64 file and record formats.
Diomidis Spinellis [Tue, 22 May 2007 06:30:48 +0000 (06:30 +0000)]
Regression tests for amd64 file and record formats.

Submitted by: Larry Rosenman (who also provided access to a testing host)

17 years agoRegression tests for the new and legacy process accounting formats.
Diomidis Spinellis [Tue, 22 May 2007 06:21:20 +0000 (06:21 +0000)]
Regression tests for the new and legacy process accounting formats.

17 years agorestore interrupts to working order after INTR_THREAD changes
Kip Macy [Tue, 22 May 2007 06:17:55 +0000 (06:17 +0000)]
restore interrupts to working order after INTR_THREAD changes

- ithread_wrapper was being treated as a wrapper for fast interrupts when
  in fact it was intended for ithread interrupts

17 years agoDocument the .in .out file naming conventions adopted in commit_prep.pl's
Diomidis Spinellis [Tue, 22 May 2007 06:11:44 +0000 (06:11 +0000)]
Document the .in .out file naming conventions adopted in commit_prep.pl's
exclusions list for header checking.

17 years agoTest the integer-arithmetic float conversions encode_timeval and encode_long
Diomidis Spinellis [Tue, 22 May 2007 05:52:04 +0000 (05:52 +0000)]
Test the integer-arithmetic float conversions encode_timeval and encode_long
in kern_acct.c.