]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years ago+ move MKGet()/MKFree() into the only file that can use them.
luigi [Sun, 18 Apr 2004 11:48:35 +0000 (11:48 +0000)]
+ move MKGet()/MKFree() into the only file that can use them.

+ remove useless wrappers around bcmp(), bcopy(), bzero().
  The code assumes that bcmp() returns 0 if the size is 0, but
  this is true for both the libc and the libkern versions.

+ nuke Bcmp, Bzero, Bcopy from radix.h now that nobody uses them anymore.

20 years ago+ replace Bcmp/Bzero with 'the real thing' as in the rest of the file.
luigi [Sun, 18 Apr 2004 11:47:04 +0000 (11:47 +0000)]
+ replace Bcmp/Bzero with 'the real thing' as in the rest of the file.
+ remember to check and fix or explain a strange cast in route_output()

20 years agoreplace Bcopy with bcopy as in the rest of the file.
luigi [Sun, 18 Apr 2004 11:46:29 +0000 (11:46 +0000)]
replace Bcopy with bcopy as in the rest of the file.

20 years agoReplace Bcopy with 'the real thing' as in the rest of the file.
luigi [Sun, 18 Apr 2004 11:45:49 +0000 (11:45 +0000)]
Replace Bcopy with 'the real thing' as in the rest of the file.

20 years agoReplace Bcopy/Bzero with 'the real thing' as in the rest of the file.
luigi [Sun, 18 Apr 2004 11:45:28 +0000 (11:45 +0000)]
Replace Bcopy/Bzero with 'the real thing' as in the rest of the file.

20 years agoreplace Bcmp() with the same bcmp() used in the rest of the file.
luigi [Sun, 18 Apr 2004 11:01:15 +0000 (11:01 +0000)]
replace Bcmp() with the same bcmp() used in the rest of the file.

20 years agoMFamd64
alc [Sun, 18 Apr 2004 08:10:04 +0000 (08:10 +0000)]
MFamd64
 Simplify the sf_buf implementation.  In short, make it a veneer
 over the direct virtual-to-physical mapping.

20 years agoMiscellaneous style fixes, including yet another attempt to get the
bde [Sun, 18 Apr 2004 07:36:41 +0000 (07:36 +0000)]
Miscellaneous style fixes, including yet another attempt to get the
0x1393/0x1041 entry and its bad templates right.

20 years agoMFamd64
alc [Sun, 18 Apr 2004 07:11:12 +0000 (07:11 +0000)]
MFamd64
 Simplify the sf_buf implementation.  In short, make it a veneer
 over the direct virtual-to-physical mapping.

20 years agoFixed some style bugs in rev.1.1 (only 2 entries were misformatted).
bde [Sun, 18 Apr 2004 07:06:45 +0000 (07:06 +0000)]
Fixed some style bugs in rev.1.1 (only 2 entries were misformatted).

20 years agoFixed some style bugs (perfect tab lossage on every line) in rev.1.4.
bde [Sun, 18 Apr 2004 06:49:26 +0000 (06:49 +0000)]
Fixed some style bugs (perfect tab lossage on every line) in rev.1.4.

20 years agoFixed some style bugs (misformatting) in rev.1.9.
bde [Sun, 18 Apr 2004 06:42:27 +0000 (06:42 +0000)]
Fixed some style bugs (misformatting) in rev.1.9.

20 years agoOops, fixed some more style bugs (tab lossage) in rev.1.28. Fixed the
bde [Sun, 18 Apr 2004 06:36:12 +0000 (06:36 +0000)]
Oops, fixed some more style bugs (tab lossage) in rev.1.28.  Fixed the
same style bug in revs.1.20, 1.18, 1.15 and 1.12.

20 years agoMFamd64
alc [Sun, 18 Apr 2004 06:24:51 +0000 (06:24 +0000)]
MFamd64
 Simplify the sf_buf implementation.  In short, make it a veneer
 over the direct virtual-to-physical mapping.

20 years agoFixed some style bugs in rev.1.24. Almost every line was misformatted,
bde [Sun, 18 Apr 2004 05:52:35 +0000 (05:52 +0000)]
Fixed some style bugs in rev.1.24.  Almost every line was misformatted,
and Oxford was misspelled.

20 years agoFixed some style bugs (formatting errors) in rev.1.25.
bde [Sun, 18 Apr 2004 05:46:37 +0000 (05:46 +0000)]
Fixed some style bugs (formatting errors) in rev.1.25.

20 years agoScript for downloading and printing in hex, the offical vendor ID's from
obrien [Sun, 18 Apr 2004 05:37:34 +0000 (05:37 +0000)]
Script for downloading and printing in hex, the offical vendor ID's from
USB.org.

20 years agoSimplify the sf_buf implementation. In short, make it a trivial veneer
alc [Sun, 18 Apr 2004 05:36:37 +0000 (05:36 +0000)]
Simplify the sf_buf implementation.  In short, make it a trivial veneer
over the direct virtual-to-physical mapping.

20 years agoFixed some style bugs (tab lossage) in rev.1.26.
bde [Sun, 18 Apr 2004 05:30:02 +0000 (05:30 +0000)]
Fixed some style bugs (tab lossage) in rev.1.26.

Removed the requirement for a particular subvendor/subproduct in
rev.1.26 (VScom PCI-800L card).  While the BARs, etc., may depend on
the sub-ids, this is not known to be so, and I think it is better to
guess that they don't.  The decision to check sub-id checks in this
file is apparently random; for VScom cards they were checked in 3 of
8 cases.

Reviewed by: timeout by committer (joerg) after 6 months

20 years agoInstead of using a static, check for the FADT revision before using it.
njl [Sun, 18 Apr 2004 05:21:36 +0000 (05:21 +0000)]
Instead of using a static, check for the FADT revision before using it.
This fixes a bug where acpidump -d crashed (but not -t -d).

Submitted by: Alex Vasylenko <lxv@omut.org>

20 years agoFixed some style bugs in rev.1.28. Almost every line was misindented.
bde [Sun, 18 Apr 2004 04:48:53 +0000 (04:48 +0000)]
Fixed some style bugs in rev.1.28.  Almost every line was misindented.

20 years agoFixed a style bug (insertion sort error) in rev.1.29. This file should
bde [Sun, 18 Apr 2004 04:44:28 +0000 (04:44 +0000)]
Fixed a style bug (insertion sort error) in rev.1.29.  This file should
be sorted in the same order as misc/pci_vendors (on vendor/device id),
and already partly is.

20 years agoFixed some style bugs in previous commit. Almmost every line was
bde [Sun, 18 Apr 2004 04:31:58 +0000 (04:31 +0000)]
Fixed some style bugs in previous commit.  Almmost every line was
misformatted.

20 years agoFix typos (s/NetGraph/Netgraph/).
hrs [Sun, 18 Apr 2004 03:18:00 +0000 (03:18 +0000)]
Fix typos (s/NetGraph/Netgraph/).

20 years agomove the cleanup of the control device into ciss_free and add some
ps [Sun, 18 Apr 2004 02:39:01 +0000 (02:39 +0000)]
move the cleanup of the control device into ciss_free and add some
ifdefs for the diffrent kthread_create API between -current and
-stable

20 years ago+ rename and document an unused field in struct arpcom (field is still
luigi [Sun, 18 Apr 2004 01:15:32 +0000 (01:15 +0000)]
+ rename and document an unused field in struct arpcom (field is still
  there so there are no ABI changes);
+ replace 5 redefinitions of the IPF2AC macro with one in if_arp.h

Eventually (but before freezing the ABI) we need to get rid of
struct arpcom (initially with the help of some smart #defines
to avoid having to touch each and every driver, see below).

Apart from the struct ifnet, struct arpcom now only stores a copy
of the MAC address (ac_enaddr, but we already have another copy in
the struct ifnet -- if_addrhead), and a netgraph-specific field
which is _always_ accessed through the ifp, so it might well go
into the struct ifnet too (where, besides, there is already an entry
for AF_NETGRAPH data...)

Too bad ac_enaddr is widely referenced by all drivers. But
this can be fixed as follows:

#define ac_enaddr       ac_if.the_original_ac_enaddr_in_struct_ifnet

(note that the right hand side would likely be a pointer rather than
the base address of an array.)

20 years agoAdd my birthday.
marius [Sun, 18 Apr 2004 01:05:55 +0000 (01:05 +0000)]
Add my birthday.

Approved by: marcel (mentor)

20 years agoUse IFF_ALLMULTI instead of if_amcount to decide if all multicast should
onoe [Sun, 18 Apr 2004 01:05:02 +0000 (01:05 +0000)]
Use IFF_ALLMULTI instead of if_amcount to decide if all multicast should
be received.  Pointed out by Luigi Rizzo.

20 years agoMinor changes to improve code readability (no actual code changes):
luigi [Sun, 18 Apr 2004 00:56:44 +0000 (00:56 +0000)]
Minor changes to improve code readability (no actual code changes):
+ replace 0 with NULL where appropriate (not complete)
+ remove register declaration while there
+ add argument names to function prototypes to have a better idea of
  what they are used for
+ add 'const' qualifiers in 3 places

20 years agoDon't give up if sending to one link fails, continue.
ru [Sat, 17 Apr 2004 23:52:57 +0000 (23:52 +0000)]
Don't give up if sending to one link fails, continue.

Suggested by: jmallett

20 years agouse native names for if_link, ifa_link, if_addrhead.
luigi [Sat, 17 Apr 2004 23:29:25 +0000 (23:29 +0000)]
use native names for if_link, ifa_link, if_addrhead.
Change for (...) to TAILQ_FOREACH(...)

Ok'ed by: sam

20 years agoAdd 354k and 512k support.
fjoe [Sat, 17 Apr 2004 20:30:05 +0000 (20:30 +0000)]
Add 354k and 512k support.
Fix quality stats.

Submitted by: Stanislav A Svirid <count@riss-telecom.ru>

20 years agoAdd a Davies-Meyer style hash to the output. This is still pure
markm [Sat, 17 Apr 2004 19:26:53 +0000 (19:26 +0000)]
Add a Davies-Meyer style hash to the output. This is still pure
Nehemiah chip, but the work is all done in hardware.

There are three opportunities to add other entropy; the Data
Buffer, the Cipher's IV and the Cipher's key. A future commit
will exploit these opportunities.

20 years agoMore removal of the abortive locking code; malloc buffers when
markm [Sat, 17 Apr 2004 19:23:15 +0000 (19:23 +0000)]
More removal of the abortive locking code; malloc buffers when
needed, rather than potentially reusing contents.

20 years agosendmail_submit_enable and sendmail_outbound_enable checks were reverted.
fjoe [Sat, 17 Apr 2004 19:09:09 +0000 (19:09 +0000)]
sendmail_submit_enable and sendmail_outbound_enable checks were reverted.

Found by: Morten Rodal <morten@rodal.no>

20 years agoCheck -s option source address for validity.
pb [Sat, 17 Apr 2004 18:44:23 +0000 (18:44 +0000)]
Check -s option source address for validity.

PR: bin/29026
MFC after: 1 week

20 years agoBack out a change (s/IPsec/IPSec/) in rev.1.716->1.717.
hrs [Sat, 17 Apr 2004 18:31:25 +0000 (18:31 +0000)]
Back out a change (s/IPsec/IPSec/) in rev.1.716->1.717.

Pointed out by: simon
Pointy hat to: hrs

20 years agoFix some typos:
hrs [Sat, 17 Apr 2004 17:38:47 +0000 (17:38 +0000)]
Fix some typos:
s/IPsec/IPSec/
s/ids/IDs/
s/didn't/did not/

20 years agoSort entries in alphabetical order.
hrs [Sat, 17 Apr 2004 17:35:18 +0000 (17:35 +0000)]
Sort entries in alphabetical order.

20 years agoNew release note:
hrs [Sat, 17 Apr 2004 17:26:47 +0000 (17:26 +0000)]
New release note:
ng_hub(4) added, and
less-381 import.

20 years agoUpdate release note:
hrs [Sat, 17 Apr 2004 17:15:43 +0000 (17:15 +0000)]
Update release note:
All drivers that support polling(4) now also support
per-interface polling(4).

Pointed out by: ru

20 years agoNew release note:
hrs [Sat, 17 Apr 2004 17:06:28 +0000 (17:06 +0000)]
New release note:
SA-04:07.cvs.

20 years agomake route_init() static
luigi [Sat, 17 Apr 2004 15:10:20 +0000 (15:10 +0000)]
make route_init() static

20 years agomisc cleanup in sysctl_ifmalist():
luigi [Sat, 17 Apr 2004 15:09:36 +0000 (15:09 +0000)]
misc cleanup in sysctl_ifmalist():
 + remove a partly incorrect comment that i introduced in the last commit;
 + deal with the correct part of the above comment by cleaning up the
   updates of 'info' -- rti_addrs needd not to be updated,
   rti_info[RTAX_IFP] can be set once outside the loop.
While at it, correct a few misspelling of NULL as 0, but there are
way too many in this file, and i did not want to clutter the
important part of this commit.

20 years agoA simple packet distribution node type that acts like an Ethernet hub.
ru [Sat, 17 Apr 2004 12:42:17 +0000 (12:42 +0000)]
A simple packet distribution node type that acts like an Ethernet hub.

20 years agoAdd support for Exsys EX-41098 cards.
cperciva [Sat, 17 Apr 2004 11:57:34 +0000 (11:57 +0000)]
Add support for Exsys EX-41098 cards.

PR: kern/65040
Submitted by: Stefan Grundmann <sg-sendpr@waset.de>
Tested by: buildkernel
"Just commit it" by: phk

20 years agoDon't check for device_get_softc() returning NULL, it can't happen.
mux [Sat, 17 Apr 2004 10:25:04 +0000 (10:25 +0000)]
Don't check for device_get_softc() returning NULL, it can't happen.

20 years agoRestore old value of LESSKEYFILE_SYS.
tjr [Sat, 17 Apr 2004 07:48:21 +0000 (07:48 +0000)]
Restore old value of LESSKEYFILE_SYS.

20 years agoRegenerate with less 381 configure script.
tjr [Sat, 17 Apr 2004 07:46:08 +0000 (07:46 +0000)]
Regenerate with less 381 configure script.

20 years agoMerge vendor changes onto mainline.
tjr [Sat, 17 Apr 2004 07:24:09 +0000 (07:24 +0000)]
Merge vendor changes onto mainline.

20 years agoThis commit was generated by cvs2svn to compensate for changes in r128345,
tjr [Sat, 17 Apr 2004 07:16:34 +0000 (07:16 +0000)]
This commit was generated by cvs2svn to compensate for changes in r128345,
which included commits to RCS files with non-trunk default branches.

20 years agoImport less v381.
tjr [Sat, 17 Apr 2004 07:16:34 +0000 (07:16 +0000)]
Import less v381.

20 years agoSuspend my interest in maintaining libalias(3) and natd(8).
ru [Sat, 17 Apr 2004 06:15:16 +0000 (06:15 +0000)]
Suspend my interest in maintaining libalias(3) and natd(8).

20 years agoNew release notes: ports/UPDATING and ports/CHANGES.
bmah [Sat, 17 Apr 2004 05:21:40 +0000 (05:21 +0000)]
New release notes:  ports/UPDATING and ports/CHANGES.

MF4S:  GNOME 2.6, KDE 3.2.1.

20 years agoActually install preseedrandom.
brooks [Sat, 17 Apr 2004 04:12:27 +0000 (04:12 +0000)]
Actually install preseedrandom.

Reported by: bde

20 years agoFixed some style bugs in previous commit (mainly an insertion sort error
bde [Sat, 17 Apr 2004 02:46:05 +0000 (02:46 +0000)]
Fixed some style bugs in previous commit (mainly an insertion sort error
for declarations, and poorly worded messages).

Fixed some nearby style bugs (unsorted declarations).

20 years agoAdd a missing memcpy (*blush*!)
brian [Sat, 17 Apr 2004 00:29:17 +0000 (00:29 +0000)]
Add a missing memcpy (*blush*!)

Suggested by: James P Scully <scully@CS.Arizona.EDU>, Perianayagam Somasundaram <somu@CS.Arizona.EDU>
MFC after: 10 days

20 years agoAdd support for the HP Modular Smart Array 20 & 500 storage arrays.
ps [Fri, 16 Apr 2004 23:00:01 +0000 (23:00 +0000)]
Add support for the HP Modular Smart Array 20 & 500 storage arrays.
Logical volumes on these devices show up as LUNs behind another
controller (also known as proxy controller).  In order to issue
firmware commands for a volume on a proxy controller, they must be
targeted at the address of the proxy controller it is attached to,
not the Host/PCI controller.

A proxy controller is defined as a device listed in the INQUIRY
PHYSICAL LUNS command who's L2 and L3 SCSI addresses are zero.  The
corresponding address returned defines which "bus" the controller
lives on and we use this to create a virtual CAM bus.

A logical volume's addresses first byte defines the logical drive
number.  The second byte defines the bus that it is attached to
which corresponds to the BUS of the proxy controller's found or the
Host/PCI controller.

Change event notification to be handled in its own kernel thread.
This is needed since some events may require the driver to sleep
on some operations and this cannot be done during interrupt context.
With this change, it is now possible to create and destroy logical
volumes from FreeBSD, but it requires a native application to
construct the proper firmware commands which is not publicly
available.

Special thanks to John Cagle @ HP for providing remote access to
all the hardware and beating on the storage engineers at HP to
answer my questions.

20 years agoBring describtion of a sysctl in line with the source:
brueffer [Fri, 16 Apr 2004 22:53:51 +0000 (22:53 +0000)]
Bring describtion of a sysctl in line with the source:

kern.acct_chkfreq is specified in seconds, not minutes.

Cluebat provided by: kensmith

20 years agoRemove unnecessary .Pp macro and bump document date
brueffer [Fri, 16 Apr 2004 22:38:54 +0000 (22:38 +0000)]
Remove unnecessary .Pp macro and bump document date

Submitted by: ru

20 years agoWhitespace cleanup.
ps [Fri, 16 Apr 2004 21:03:38 +0000 (21:03 +0000)]
Whitespace cleanup.

20 years agoForced commit to note, that the last commit also added a reference to accton.8
brueffer [Fri, 16 Apr 2004 20:39:10 +0000 (20:39 +0000)]
Forced commit to note, that the last commit also added a reference to accton.8

20 years agoList some sysctl variables that influence accounting
brueffer [Fri, 16 Apr 2004 20:32:56 +0000 (20:32 +0000)]
List some sysctl variables that influence accounting

PR: 65070
Submitted by: Marc Silver <marcs@draenor.org>
X-MFC after: re approval

20 years ago- Enable (unmask) interrupt sources earlier in the ithread loop.
jhb [Fri, 16 Apr 2004 20:25:40 +0000 (20:25 +0000)]
- Enable (unmask) interrupt sources earlier in the ithread loop.
  Specifically, we used to enable the source after locking sched_lock
  and just before we had already decided to do a context switch.
  This meant that an ithread could never process more than one interrupt
  per context switch.  Enabling earlier in the loop before sched_lock is
  acquired allows an ithread to handle multiple interrupts per context
  switch if interrupts fire very rapidly.  For the case of heavy interrupt
  load this can reduce the number of context switches (and thus overhead)
  as well as reduce interrupt latency.
- Now that we can handle multiple interrupts per context switch, add simple
  interrupt storm protection to threaded interrupts.  If X number of
  consecutive interrupts are triggered before the itherad voluntarily
  yields to another thread, then the interrupt thread will sleep with the
  associated interrupt source disabled (masked) for 1/10th of a second.
  The default value of X is 500, but it can be tweaked via the tunable/
  sysctl hw.intr_storm_threshold.  If an interrupt storm is detected, then
  a message is output to the kernel console on the first occurrence per
  interrupt thread.  Interrupt storm protection can be disabled completely
  by setting this value to 0.  There is no scientific reasoning for the
  1/10th of a second or 500 interrupts values, so they may require tweaking
  at some point in the future.

Tested by: rwatson (an earlier version w/o the storm protection)
Tested by: mux (reportedly made a machine with two PCI interrupts
storming usable rather than hard locked)
Reviewed by: imp

20 years agoWhitespace fix.
jhb [Fri, 16 Apr 2004 20:09:53 +0000 (20:09 +0000)]
Whitespace fix.

20 years agoRevert part of the "BIOS brain damage" from rev 1.10. It seems that
jhb [Fri, 16 Apr 2004 19:46:30 +0000 (19:46 +0000)]
Revert part of the "BIOS brain damage" from rev 1.10.  It seems that
different BIOSs use the same exact settings to mean two very different and
incompatible things for the SCI.  Thus, if the SCI is remapped to a PCI
interrupt, we now trust the trigger/polarity that the MADT provides by
default.  However, the SCI can be forced to level/lo as 1.10 did by setting
the tunable "hw.acpi.force_sci_lo" to a non-zero value from the loader.

Thus, if rev 1.10 caused an interrupt storm, it should nwo fix your
machine.  If rev 1.10 fixed an interrupt storm on your machine, you
probably need to set the aforementioned tunable in /boot/loader.conf to
prevent the interrupt storm.

The more general problem of getting the SCI's trigger/polarity programmed
"correctly" (for some value of correctly meaning several workarounds for
broken BIOSs and inconsistent "implementations" of the ACPI standard) is
going to require more work, but this band-aid should improve the current
situation somewhat.

Requested by: njl

20 years agoUse %eax rather than %ax when loading segment registers to avoid partial
jhb [Fri, 16 Apr 2004 19:26:37 +0000 (19:26 +0000)]
Use %eax rather than %ax when loading segment registers to avoid partial
register stalls.

Reviewed by: bde (a while ago, and I think an earlier version)

20 years agoDon't call the BIOS to route a link that has already been routed by the
jhb [Fri, 16 Apr 2004 18:54:05 +0000 (18:54 +0000)]
Don't call the BIOS to route a link that has already been routed by the
BIOS during POST as it apparently makes some machines unhappy.

Tested by: mux

20 years agoNew release note:
hrs [Fri, 16 Apr 2004 18:38:04 +0000 (18:38 +0000)]
New release note:
acpi_toshiba(4) video switching support,
getvfsent(3) removed,
sx driver added,
pci(4) bus resource and power management updated,
per-interface polling(4) support,
ata(4) early support for Promise SX4/SX4000,
dump(8) and restore(8) -P option,
make(1) .warning directive,
ACPI-CA 20040402 import, and
CVS 1.11.15 import.

Update release note:
Use &man.twa.4;.

20 years agoI added preseedrandom yesterday, not last month.
brooks [Fri, 16 Apr 2004 18:36:52 +0000 (18:36 +0000)]
I added preseedrandom yesterday, not last month.

Reported by: Dmitry Morozovsky <marck at rinet.ru>

20 years agoDocument changes in /dev/random initalization. Suggest running
brooks [Fri, 16 Apr 2004 17:13:10 +0000 (17:13 +0000)]
Document changes in /dev/random initalization.  Suggest running
/etc/rc.d/preseedrandom to seed the PRNG in the upgrade instructions.

20 years agoAttempts to make this device Giant-free were ill-conceived as
markm [Fri, 16 Apr 2004 17:10:54 +0000 (17:10 +0000)]
Attempts to make this device Giant-free were ill-conceived as
uiomove(9) is not properly locked. So, return to NEEDGIANT
mode. Later, when uiomove is finely locked, I'll revisit.

While I'm here, provide some temporary debugging output to
help catch blocking startups.

20 years agoDefault to harvesting everything. This is to help give a faster
markm [Fri, 16 Apr 2004 17:07:11 +0000 (17:07 +0000)]
Default to harvesting everything. This is to help give a faster
startup. harvesting can be turned OFF in etc/rc.d/* if it is a
burden.

20 years agoDisable the new wake GPE behavior. With it enabled, my laptop won't stay
njl [Fri, 16 Apr 2004 16:27:37 +0000 (16:27 +0000)]
Disable the new wake GPE behavior.  With it enabled, my laptop won't stay
suspended after the second try.  Intel is working on a fix to properly
differentiate the non-standard wake/runtime GPEs from wake-only GPEs.

20 years agoooops. I disabled pci_enable_io_modes not pci_do_powerstate in the last
imp [Fri, 16 Apr 2004 15:01:54 +0000 (15:01 +0000)]
ooops.  I disabled pci_enable_io_modes not pci_do_powerstate in the last
commit.  That was in error.

Noticed by: sos

20 years agoAt some point during the history of m_getcl(), MAC support began to
rwatson [Fri, 16 Apr 2004 14:35:11 +0000 (14:35 +0000)]
At some point during the history of m_getcl(), MAC support began to
unconditionally initialize the mbuf header even if cluster allocation
failed, which could result in a NULL pointer dereference in low-memory
conditions.

PR: kern/65548
Submitted by: Stephan Uphoff <ups@tree.com>

20 years agoUse if_link instead of the alias if_list, and change a for() into
luigi [Fri, 16 Apr 2004 10:32:13 +0000 (10:32 +0000)]
Use if_link instead of the alias if_list, and change a for() into
the TAILQ_FOREACH() form.

Comment the need to store the same info (mac address for ethernet-type
devices) in two different places.

No functional changes. Even the compiler output should be unmodified
by this change.

20 years agoDocumented the intended usage of if_addrhead and ifaddr_byindex()
luigi [Fri, 16 Apr 2004 10:28:54 +0000 (10:28 +0000)]
Documented the intended usage of if_addrhead and ifaddr_byindex()
This commit only changes comments. Nothing to recompile.

20 years agoo split a sentence to make it more understandable
brueffer [Fri, 16 Apr 2004 09:31:17 +0000 (09:31 +0000)]
o split a sentence to make it more understandable
o mention that the acctfile has to exist for accton to work [1]
o add reference to acct.5

PR:             65071 [1] (slightly modified)
Submitted by:   Marc Silver <marcs@draenor.org>
X-MFC after: re approval

20 years agoImprove comment (SMB bus -> System Management Bus)
eivind [Fri, 16 Apr 2004 09:29:45 +0000 (09:29 +0000)]
Improve comment (SMB bus -> System Management Bus)

20 years agoConsistently use ifaddr_byindex() to access the link-level address
luigi [Fri, 16 Apr 2004 08:15:37 +0000 (08:15 +0000)]
Consistently use ifaddr_byindex() to access the link-level address
of an interface. No functional change.

On passing, comment an useless invocation of TAILQ_INIT(&ifp->if_addrhead)
which could probably be removed in the interest of clarity.

20 years agoConsistently use ifaddr_byindex() to access the link-level address
luigi [Fri, 16 Apr 2004 08:14:34 +0000 (08:14 +0000)]
Consistently use ifaddr_byindex() to access the link-level address
of an interface. No functional change.

On passing, comment a likely bug in net/rtsock.c:sysctl_ifmalist()
which, if confirmed, would deserve to be fixed and MFC'ed

20 years agoRemoved local bits that are now part of the standard mdoc(7) package.
ru [Fri, 16 Apr 2004 07:19:13 +0000 (07:19 +0000)]
Removed local bits that are now part of the standard mdoc(7) package.

20 years agoPull up latest mdoc(7) changes:
ru [Fri, 16 Apr 2004 07:08:33 +0000 (07:08 +0000)]
Pull up latest mdoc(7) changes:

: 2004-04-14  Thomas Klausner <wiz@netbsd.org>
:
:  * tmac/doc-common (doc-volume-as-*): Use lowercase names.
:  (doc-operating-system-*): Updated.
:  * tmac/doc-syms (doc-str-St-*): Various small fixes.
:  (doc-str-Lb-*): Add more library names.

20 years agoRemove two variables that became unused because of last commit.
luigi [Fri, 16 Apr 2004 06:58:39 +0000 (06:58 +0000)]
Remove two variables that became unused because of last commit.

Reported by: tinderbox

20 years agoMake whatis(1) happy.
ru [Fri, 16 Apr 2004 06:26:09 +0000 (06:26 +0000)]
Make whatis(1) happy.

20 years agoMove ENABLE_ALART to proper place.
obrien [Fri, 16 Apr 2004 05:59:08 +0000 (05:59 +0000)]
Move ENABLE_ALART to proper place.

Submitted by: bde

20 years agoFix building on L64 machines.
obrien [Fri, 16 Apr 2004 05:34:14 +0000 (05:34 +0000)]
Fix building on L64 machines.

20 years agoAdd support for the ADMtek AN8513 USB Ethernet adapter.
obrien [Fri, 16 Apr 2004 05:24:45 +0000 (05:24 +0000)]
Add support for the ADMtek AN8513 USB Ethernet adapter.

Submitted by: taxman <taxman@freedombi.com>

20 years agoCorrect $FreeBSD$ style.
obrien [Fri, 16 Apr 2004 05:22:11 +0000 (05:22 +0000)]
Correct $FreeBSD$ style.

20 years agomake the bad bar warning less scary, and toss it behind a bootverbose.
imp [Fri, 16 Apr 2004 04:53:19 +0000 (04:53 +0000)]
make the bad bar warning less scary, and toss it behind a bootverbose.
It is harmless, but freaking people out.

20 years agoTurn off the power stuff for a little while longer. There appears to be
imp [Fri, 16 Apr 2004 04:50:54 +0000 (04:50 +0000)]
Turn off the power stuff for a little while longer.  There appears to be
something subtle wrong with it.

20 years agoForced commit to acknowledge Julian Elischer as the source of the previous fix.
kientzle [Fri, 16 Apr 2004 03:51:37 +0000 (03:51 +0000)]
Forced commit to acknowledge Julian Elischer as the source of the previous fix.

20 years ago--help is only supported if you have getopt_long().
kientzle [Fri, 16 Apr 2004 03:50:04 +0000 (03:50 +0000)]
--help is only supported if you have getopt_long().
This allows bsdtar to compile on FreeBSD 4.x.

20 years agoSet the "global" attribute on the page table entries for the kernel and
alc [Fri, 16 Apr 2004 03:45:28 +0000 (03:45 +0000)]
Set the "global" attribute on the page table entries for the kernel and
direct mappings.  This shaves a few seconds off of my buildworld times.

Discussed with: peter@

20 years agoOnly enable the ACL restore logic on FreeBSD versions >= 5.0.
kientzle [Fri, 16 Apr 2004 01:20:58 +0000 (01:20 +0000)]
Only enable the ACL restore logic on FreeBSD versions >= 5.0.
Earlier versions of FreeBSD don't support ACLs.

Note that the ACL support code in archive_entry is standalone code and
unaffected by this.  (In particular, it should be possible to
manipulate archives containing ACLs even if the ACLs cannot be
restored on the current system.)

20 years ago- Use memory barrier with atomic operations in ntoskrnl_lock_dpc() and
wpaul [Fri, 16 Apr 2004 00:04:28 +0000 (00:04 +0000)]
- Use memory barrier with atomic operations in ntoskrnl_lock_dpc() and
  ntoskrnl_unlocl_dpc().
- hal_raise_irql(), hal_lower_irql() and hal_irql() didn't work right
  on SMP (priority inheritance makes things... interesting). For now,
  use only two states: DISPATCH_LEVEL (PI_REALTIME) and PASSIVE_LEVEL
  (everything else). Tested on a dual PIII box.
- Use ndis_thsuspend() in ndis_sleep() instead of tsleep(). (I added
  ndis_thsuspend() and ndis_thresume() to replace kthread_suspend()
  and kthread_resume(); the former will preserve a thread's priority
  when it wakes up, the latter will not.)
- Change use of tsleep() in ndis_stop_thread() to prevent priority
  change on wakeup.

20 years agoAs suggested by Julian Elischer, use a self-sizing hash
kientzle [Thu, 15 Apr 2004 22:37:54 +0000 (22:37 +0000)]
As suggested by Julian Elischer, use a self-sizing hash
table for the hardlink cache.  This dramatically improves
performance when archiving millions of hardlinked files.

While I'm here, clean up some style bugs (per Bruce Evans)
and clarify some comments.

20 years agoRemove improper use of if_addrhead in device drivers to check
luigi [Thu, 15 Apr 2004 20:31:10 +0000 (20:31 +0000)]
Remove improper use of if_addrhead in device drivers to check
if the link-level address has been initialized already.

The majority of modern drivers never does this and works fine, which
makes me think that the check is totally unnecessary and a residue
of cut&paste from other drivers.

This change is done to simplify locking because now almost none of the
drivers uses this field. The exceptions are "ct" "ctau" and "cx"
where i am not sure if i can remove that part.

20 years agoDocument the way if_addrhead and struct ifaddr are used.
luigi [Thu, 15 Apr 2004 19:45:59 +0000 (19:45 +0000)]
Document the way if_addrhead and struct ifaddr are used.
Remove a member from 'struct ifaddr' which has been in an
#ifdef notdef block since rev 1.1

No ABI changes -- no need to recompile anything.