]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoaccess only has 2 esses.
jhb [Mon, 14 Aug 2006 19:29:45 +0000 (19:29 +0000)]
access only has 2 esses.

MFC after: 3 days

18 years agoImprove exception string format.
takawata [Mon, 14 Aug 2006 18:38:56 +0000 (18:38 +0000)]
Improve exception string format.
PR:100671
MFC after: 3 days

18 years agoRemove debug messages on notify handler.
takawata [Mon, 14 Aug 2006 18:24:22 +0000 (18:24 +0000)]
Remove debug messages on notify handler.

PR:100671

18 years agoDocument some files which should not get added here at all.
netchild [Mon, 14 Aug 2006 18:20:36 +0000 (18:20 +0000)]
Document some files which should not get added here at all.

Discussed with: kris, ru

18 years agoSeveral updates:
brueffer [Mon, 14 Aug 2006 18:04:01 +0000 (18:04 +0000)]
Several updates:

- Added missing file system/network/sound module entries
- Removed obsolete network module entries
- Capitalized (Fast|Gigabit) Ethernet

MFC after: 1 week

18 years agoDon't try to preserve PAT bits in pmap_enter(). We currently on pages that
jhb [Mon, 14 Aug 2006 15:39:41 +0000 (15:39 +0000)]
Don't try to preserve PAT bits in pmap_enter().  We currently on pages that
aren't mapped via pmap_enter() (KVA).  We will eventually support PAT bits
on user pages, but those will require some sort of MI caching mode stored
in the vm_page.

Reviewed by: alc

18 years agoFix alignment of RX bufs DMA map to be realistic. Maybe it works on
ru [Mon, 14 Aug 2006 15:35:43 +0000 (15:35 +0000)]
Fix alignment of RX bufs DMA map to be realistic.  Maybe it works on
i386 (I don't know) but on amd64 at hand here, it paniced early at
boot.

(I'm pretty sure that PAGE_SIZE here was miscopied from another place
during porting, where in OpenBSD bus_dmamem_alloc() is used, but there
PAGE_SIZE means completely different thing.)

18 years agoDon't use touch when what is really meant is :> (create an empty file, or
des [Mon, 14 Aug 2006 13:28:53 +0000 (13:28 +0000)]
Don't use touch when what is really meant is :> (create an empty file, or
truncate it if it exists) or :>> (ensure the file exists, but don't change
it if it already does)

Reviewed by: ru
MFC after: 2 weeks

18 years agoHow stupid of me. :>> doesn't change a modification time.
ru [Mon, 14 Aug 2006 13:02:01 +0000 (13:02 +0000)]
How stupid of me.  :>> doesn't change a modification time.

18 years ago- Include bsd.own.mk early so existsence check using ${SHAREDIR}
ru [Mon, 14 Aug 2006 12:21:57 +0000 (12:21 +0000)]
- Include bsd.own.mk early so existsence check using ${SHAREDIR}
  actually works.
- Touch /usr/share/tmac/man.local if it already exists.

MFC after: 3 days

18 years agoTouch `locale' and `se_locale' if they exist to stop people from
ru [Mon, 14 Aug 2006 12:10:54 +0000 (12:10 +0000)]
Touch `locale' and `se_locale' if they exist to stop people from
thinking they are obsolete.

Prodded by: kris
Submitted by: des
MFC after: 3 days

18 years agoChange hardcoded and incorrect number with correct define. This change is a
glebius [Mon, 14 Aug 2006 09:52:35 +0000 (09:52 +0000)]
Change hardcoded and incorrect number with correct define. This change is a
nop, since E1000_FDX_COLLISION_DISTANCE == E1000_HDX_COLLISION_DISTANCE.

PR: kern/101000
Submitted by: Doug Havir

18 years agoThe BUILDNAME variable need not be specified.
ru [Mon, 14 Aug 2006 09:34:32 +0000 (09:34 +0000)]
The BUILDNAME variable need not be specified.

18 years agoImprove wording for -f and -F.
dd [Mon, 14 Aug 2006 08:49:08 +0000 (08:49 +0000)]
Improve wording for -f and -F.

18 years agoImprove the wording. Remove the appositive about strcmp, putting the
dd [Mon, 14 Aug 2006 08:21:27 +0000 (08:21 +0000)]
Improve the wording. Remove the appositive about strcmp, putting the
first sentence back to the way it was. Add a second sentence that
explains the case when strcmp is called.

18 years agoPrint packet loss figures with one decimal place. ping6 already does
dd [Mon, 14 Aug 2006 07:54:17 +0000 (07:54 +0000)]
Print packet loss figures with one decimal place. ping6 already does
this, and OpenBSD and NetBSD pings do it too. This is primarily useful
for comparing low levels of packet loss.

18 years agoIt's not entirely obvious that PGEX_I must be zero if no-execute is neither
alc [Mon, 14 Aug 2006 06:15:16 +0000 (06:15 +0000)]
It's not entirely obvious that PGEX_I must be zero if no-execute is neither
supported nor enabled.  Just to be sure, verify that no-execute is enabled
before passing VM_PROT_EXECUTE to vm_fault().

Suggested by: tegge@

18 years agoFix 2KLOGIN code to specify *ibits* (not *obits*) so that the
mjacob [Mon, 14 Aug 2006 05:42:46 +0000 (05:42 +0000)]
Fix 2KLOGIN code to specify *ibits* (not *obits*) so that the
options field in register 10 will be deterministic, not random.

Correct the number of input bits for EXECUTE_FIRMWARE 0..1 to
0..2- the 2322 and 24XX cards use mailbox register 2 to specify
whether the f/w being executed is freshly loaded or not.

Correct the number of input bits for {READ,WRITE}_RAM_WORD_EXTENDED
so that register 8 gets picked up.

Fix the indexing and offset for the 2322 f/w download so that it
correctly puts the different code segments where they belong.

Move VERIFY_CHECKSUM to be the 'else' clause to 2322 f/w downloads-
the EXECUTE_FIRMWARE command for 2322 and 24XX cards will tell you
if the f/w checksum is incorrect and VERIFY_CHECKSUM only works for
RISC SRAM address < 64K so you can only do a VERIFY_CHECKSUM on the
first of the 3 f/w segments for the 2322.

Shorten the delay for the continuation mailbox commands- 1ms is
ridiculous (100us is more likely).

All of the more or less is really only for the 2322/6322 cards.

18 years agoThe register offset is within 4K, not 256 bytes, for some QLogic cards.
mjacob [Mon, 14 Aug 2006 05:36:26 +0000 (05:36 +0000)]
The register offset is within 4K, not 256 bytes, for some QLogic cards.

18 years agoThe macro IS_23XX should not mistakenly include 24XX cards.
mjacob [Mon, 14 Aug 2006 05:35:41 +0000 (05:35 +0000)]
The macro IS_23XX should not mistakenly include 24XX cards.

18 years agoMake em(4) handle too many fragmented frame with m_defrag(9).
yongari [Mon, 14 Aug 2006 02:21:26 +0000 (02:21 +0000)]
Make em(4) handle too many fragmented frame with m_defrag(9).
Previously em(4) requeued the failed mbuf chains from
bus_dmamap_load_mbuf_sg(9) failure to resend it later. However,
bus_dmamap_load_mbuf_sg(9) may never complete its request as the
fragmented frames can have more than EM_MAX_SCATTER segments.
To handle the above EFBIG case, defragment the frame with m_defrag(9)
and free the mbuf chain if it can't deframent the chain due to
resource shortage.

Reviewed by glebius (with improvements)

18 years agoOverhaul Rx path to recover from mbuf cluster allocation failure.
yongari [Mon, 14 Aug 2006 01:50:54 +0000 (01:50 +0000)]
Overhaul Rx path to recover from mbuf cluster allocation failure.
 o Create one more spare DMA map for Rx handler to recover from
   bus_dmamap_load_mbuf_sg(9) failure.
 o Make sure to update status bit in Rx descriptors even if we failed
   to allocate a new buffer. Previously it resulted in stuck condition
   and em_handle_rxtx task took up all available CPU cycles.
 o Don't blindly unload DMA map. Reuse loaded DMA map if received
   packet has errors. This would speed up Rx processing a bit under
   heavy load as it does not need to reload DMA map in case of error.
   (bus_dmamap_load_mbuf_sg(9) is the most expensive call in driver
    context.)
 o Update if_iqdrops counter if it can't allocate a mbuf cluster.
   With this change it's now possible to see queue dropped packets
   with netstat(1).
 o Update mbuf_cluster_failed counter if fixup code failed to
   allocate mbuf header.
 o Return ENOBUFS instead of ENOMEM in case of Rx fixup failure.
 o Make adapter->lmp NULL in case of Rx fixup failure. Strictly
   specking it's not necessary for correct operation but it makes
   the intention clear.
 o Remove now unused dropped_pkts member in softc.

With these changes em(4) should survive mbuf cluster allocation
failure on Rx path.

Reviewed by: pdeuskar, glebius (with improvements)

18 years agoApply alignment fixup only when programmed frame size is greater than
yongari [Mon, 14 Aug 2006 00:36:53 +0000 (00:36 +0000)]
Apply alignment fixup only when programmed frame size is greater than
MCLBYTES - ETHER_ALIGN. Previously it applied the alignment fixup code
for oversized frames which would result in reduced performance on
strict alignment archs.

18 years agoMinor white space tweaks.
rwatson [Sun, 13 Aug 2006 23:16:59 +0000 (23:16 +0000)]
Minor white space tweaks.

18 years agoCorrectly handle the case in calloc(num, size) where
cperciva [Sun, 13 Aug 2006 21:54:47 +0000 (21:54 +0000)]
Correctly handle the case in calloc(num, size) where
  (size_t)(num * size) == 0
but both num and size are nonzero.

Reported by: Ilja van Sprundel
Approved by: jasone
Security: Integer overflow; calloc was allocating 1 byte in
response to a request for a multiple of 2^32 (or 2^64)
bytes instead of returning NULL.

18 years agoDon't push a map on a master server which will fail anyway.
ru [Sun, 13 Aug 2006 19:57:32 +0000 (19:57 +0000)]
Don't push a map on a master server which will fail anyway.

PR: bin/72881
Submitted by: thomas (slightly coloured by me)

18 years agoConvert to the standard section 4 SYNOPSIS layout.
brueffer [Sun, 13 Aug 2006 18:44:18 +0000 (18:44 +0000)]
Convert to the standard section 4 SYNOPSIS layout.

MFC after: 3 days

18 years agoRevert previous commit. Pre-Nehemiah C3 CPUs do have 3DNow!; it doesn't
des [Sun, 13 Aug 2006 08:47:41 +0000 (08:47 +0000)]
Revert previous commit.  Pre-Nehemiah C3 CPUs do have 3DNow!; it doesn't
show up in dmesg because identcpu.c only looks for it on Intel and AMD
processors.

18 years agoUndefine __DATE__ in order to avoid placing a build timestamp into
cperciva [Sun, 13 Aug 2006 05:32:10 +0000 (05:32 +0000)]
Undefine __DATE__ in order to avoid placing a build timestamp into
/usr/sbin/{named, lwresd}.  Note that POSIX / C99 doesn't technically
allow __DATE__ to be (un|re)defined, but gcc does what we mean anyway.

Approved by: dougb
MFC after: 1 month

18 years agoReimplement the page's NOSYNC flag as an object-synchronized instead of a
alc [Sun, 13 Aug 2006 00:11:09 +0000 (00:11 +0000)]
Reimplement the page's NOSYNC flag as an object-synchronized instead of a
page queues-synchronized flag.  Reduce the scope of the page queues lock in
vm_fault() accordingly.

Move vm_fault()'s call to vm_object_set_writeable_dirty() outside of the
scope of the page queues lock.  Reviewed by: tegge
Additionally, eliminate an unnecessary dereference in computing the
argument that is passed to vm_object_set_writeable_dirty().

18 years agoAdd an extension to the UINT & ULONG types. The XINT & XLONG types behave
obrien [Sat, 12 Aug 2006 23:33:10 +0000 (23:33 +0000)]
Add an extension to the UINT & ULONG types.  The XINT & XLONG types behave
the same, except sysctl(8) will print out the values in hex.

18 years agoAdd the module version to fix the loading with if_bridge.
thompsa [Sat, 12 Aug 2006 20:30:58 +0000 (20:30 +0000)]
Add the module version to fix the loading with if_bridge.

Reported by: keramida
Tested by: keramida

18 years agoFix bug preventing the proper displaying of the CTLFLAG_WR option.
obrien [Sat, 12 Aug 2006 20:09:33 +0000 (20:09 +0000)]
Fix bug preventing the proper displaying of the CTLFLAG_WR option.

18 years agoReduce the scope of the page queues lock in vm_pgmoveco() now that
alc [Sat, 12 Aug 2006 19:47:49 +0000 (19:47 +0000)]
Reduce the scope of the page queues lock in vm_pgmoveco() now that
vm_page_sleep_if_busy() no longer requires the page queue lock to be held.

Correctly spell "TRUE".

18 years agoFix "pkg_version -Io" coredump, if some packages have no origin at
krion [Sat, 12 Aug 2006 18:32:51 +0000 (18:32 +0000)]
Fix "pkg_version -Io" coredump, if some packages have no origin at
all.

PR: bin/101932
Submitted by: novel, sat
MFC after: 5 days

18 years agoOops. Remove accidentally committed change.
pjd [Sat, 12 Aug 2006 18:29:49 +0000 (18:29 +0000)]
Oops. Remove accidentally committed change.

Noticed by: marck

18 years agoRestore the "plumb" compatibility command, which was lost
yar [Sat, 12 Aug 2006 18:07:17 +0000 (18:07 +0000)]
Restore the "plumb" compatibility command, which was lost
due to the recent change by sam@ to clone operations in ifconfig(8).

18 years agoFix incorrect .Xr syntax I introduced in the previous commit.
yar [Sat, 12 Aug 2006 17:11:43 +0000 (17:11 +0000)]
Fix incorrect .Xr syntax I introduced in the previous commit.

Noticed by: ru
X-MFC with: rev. 1.31

18 years agoHandle MSDOS file systems properly. Before the change file systems
pjd [Sat, 12 Aug 2006 15:34:15 +0000 (15:34 +0000)]
Handle MSDOS file systems properly. Before the change file systems
created on Windows XP (and others maybe) were not detected.
We detected only those created with newfs_msdos(8).

Submitted by: Tobias Reifenberger <treif@mayn.de>
style(9)ified by: pjd

18 years agoVerify if a label doesn't point to the parent directory.
pjd [Sat, 12 Aug 2006 15:30:24 +0000 (15:30 +0000)]
Verify if a label doesn't point to the parent directory.

18 years agoThe strstr() function is in the libkern now.
pjd [Sat, 12 Aug 2006 15:29:12 +0000 (15:29 +0000)]
The strstr() function is in the libkern now.

18 years agoAdd strstr() function to the libkern.
pjd [Sat, 12 Aug 2006 15:28:39 +0000 (15:28 +0000)]
Add strstr() function to the libkern.

18 years agoI don't know where I got the idea that the VIA C3 has 3DNow!; it doesn't.
des [Sat, 12 Aug 2006 09:46:43 +0000 (09:46 +0000)]
I don't know where I got the idea that the VIA C3 has 3DNow!; it doesn't.
It does have MMX (though MMX support is reputed to be incomplete in early
generations), and later generations have SSE.

MFC after: 2 weeks

18 years agoBatch of changes:
imp [Sat, 12 Aug 2006 09:06:55 +0000 (09:06 +0000)]
Batch of changes:
o when turning off the socket for a 16-bit card, write 0 to INTR register
  rather than just tying to just clear the rest bit.  this seems to fix
  card insert detection after an eject on TI bridges (ricoh bridges work
  either way, apparently).  This is a MFp4.
o Cope better with TOPIC95 bridges on powerup.  According to NetBSD driver,
  these bridges don't set POWER_STATE, so cope accordingly in our power
  code.  They also need a little extra time to settle, so do that as well.
o It appears that we need to turn on/off one of the clocks to the card
  when we power up/down that socket on a TOPIC97, also from NetBSD.
o TOPIC97 bridges need to specifically enable LV card support.  Unconditionally
  do this in the hopes that all laptops that have these chips support LV
  voltages (they should, since they are required for CardBus).
o TOPIC register name regularization.  Registers specific to models of TOPIC
  are now called out as such.

# I need a machine with a TOPIC95 for testing.

18 years agoThe TOPIC97 and TOPIC100 seem to have a special register in the exca
imp [Sat, 12 Aug 2006 08:53:54 +0000 (08:53 +0000)]
The TOPIC97 and TOPIC100 seem to have a special register in the exca
space that enables low voltage operation (and maybe other stuff).
Enable the bits in this register so low voltage 16-bit cards may work.

Existance noticed in NetBSD driver.

18 years agoDon't reset Tx threshold value whenever xl_init_locked() is called.
yongari [Sat, 12 Aug 2006 02:05:13 +0000 (02:05 +0000)]
Don't reset Tx threshold value whenever xl_init_locked() is called.
Instead the threshould is initialized in device attach. Later the
threshold could be increased in Tx underrun error and the new
threshold should be used in xl_init_locked().

18 years agoMake sure to check frames in Tx queue are empty before clearing
yongari [Sat, 12 Aug 2006 01:55:51 +0000 (01:55 +0000)]
Make sure to check frames in Tx queue are empty before clearing
watchdog timer.

18 years agoDue to the poor PHY documentation from RealTek I can't sure but I
yongari [Sat, 12 Aug 2006 01:38:49 +0000 (01:38 +0000)]
Due to the poor PHY documentation from RealTek I can't sure but I
think the RealTek PHY needs driver to set RGEPHY_BMCR_AUTOEN bit of
RGEPHY_MII_BMCR register and proper ANAR register setting for manual
media type selection.
This fixes long standing manual media type selection bug in rgephy(4).

Reported by: Jelte Jansen <jelte AT NLnetLabs DOT nl>
Tested by: Jelte Jansen <jelte AT NLnetLabs DOT nl>

18 years agoFix invalid reference of mbuf chains.
yongari [Sat, 12 Aug 2006 01:30:38 +0000 (01:30 +0000)]
Fix invalid reference of mbuf chains.
Use proper pointer dereference to inform modified mbuf chains to
caller.

While I'm here perform checksum offload setup after loading DMA
maps.

In collaboration with:  glebius

18 years agoFix invalid reference of mbuf chains.
yongari [Sat, 12 Aug 2006 01:24:37 +0000 (01:24 +0000)]
Fix invalid reference of mbuf chains.
Use proper pointer dereference to inform modified mbuf chains to
caller.

In collaboration with: glebius

18 years agoFix invalid reference of mbuf chains.
yongari [Sat, 12 Aug 2006 01:19:37 +0000 (01:19 +0000)]
Fix invalid reference of mbuf chains.
Use proper pointer dereference to inform modified mbuf chains to
caller.

While I'm here perform checksum offload setup after loading DMA
maps as m_defrag(9) can return new mbuf chains.

In collaboration with: glebius

18 years agoRemove extraneous trailing \0 in string literal.
thomas [Fri, 11 Aug 2006 23:03:16 +0000 (23:03 +0000)]
Remove extraneous trailing \0 in string literal.

MFC after: 2 weeks

18 years agoBefore performing a sodealloc() when pru_attach() fails, assert that
rwatson [Fri, 11 Aug 2006 23:03:10 +0000 (23:03 +0000)]
Before performing a sodealloc() when pru_attach() fails, assert that
the socket refcount remains 1, and then drop to 0 before freeing the
socket.

PR: 101763
Reported by: Gleb Kozyrev <gkozyrev at ukr dot net>

18 years agoThe groff_mm(7) locale files are *not* obsolete; they are just
ru [Fri, 11 Aug 2006 22:02:16 +0000 (22:02 +0000)]
The groff_mm(7) locale files are *not* obsolete; they are just
not touched during the installation if they already exists.

Noticed by: Dmitry Pryanishnikov

18 years ago(sm_mon_1_svc): Fix debugging output: when establising a monitoring
thomas [Fri, 11 Aug 2006 21:44:53 +0000 (21:44 +0000)]
(sm_mon_1_svc): Fix debugging output: when establising a monitoring
 request, correctly report the location (usually localhost) to which
 a callback will be made when a notification is received for the
 monitored host. Previsouly, the name of the monitored host was
 reported instead.

MFC after: 2 weeks

18 years agoUnbreak nForce4 SATA support.
sos [Fri, 11 Aug 2006 21:19:29 +0000 (21:19 +0000)]
Unbreak nForce4 SATA support.
Hopefully I dont break something else this time.....

18 years agoFixes an edge case bug in timewait handling where ticks rolling over causing
mohans [Fri, 11 Aug 2006 21:15:23 +0000 (21:15 +0000)]
Fixes an edge case bug in timewait handling where ticks rolling over causing
the timewait expiry to be exactly 0 corrupts the timewait queues (and that entry).
Reviewed by: silby

18 years agoFirst pass at allowing memory to be mapped using cache modes other than
jhb [Fri, 11 Aug 2006 19:22:57 +0000 (19:22 +0000)]
First pass at allowing memory to be mapped using cache modes other than
WB (write-back) on x86 via control bits in PTEs and PDEs (including making
use of the PAT MSR).  Changes include:
- A new pmap_mapdev_attr() function for amd64 and i386 which takes an
  additional parameter (relative to pmap_mapdev()) specifying the cache
  mode for this mapping.  Note that on amd64 only WB mappings are done with
  the direct map, all other modes result in a private mapping.
- pmap_mapdev() on i386 and amd64 now defaults to using UC (uncached)
  mappings rather than WB.  Previously we relied on the BIOS setting up
  MTRR's to enforce memio regions being treated as UC.  This might make
  hw.cbb_start_memory unnecessary in some cases now for example.
- A new pmap_mapbios()/pmap_unmapbios() API has been added to allow places
  that used pmap_mapdev() to map non-device memory (such as ACPI tables)
  to do so using WB as before.
- A new pmap_change_attr() function for amd64 and i386 that changes the
  caching mode for a range of KVA.

Reviewed by: alc

18 years agoExplicitly set v3 mode only when it is requested. Don't bother otherwise.
jkim [Fri, 11 Aug 2006 19:16:50 +0000 (19:16 +0000)]
Explicitly set v3 mode only when it is requested.  Don't bother otherwise.

18 years agoBefore using byte offset for IV creation, covert it to little endian.
pjd [Fri, 11 Aug 2006 19:09:12 +0000 (19:09 +0000)]
Before using byte offset for IV creation, covert it to little endian.
This way one will be able to use provider encrypted on eg. i386 on
eg. sparc64. This doesn't really buy us much today, because UFS isn't
endian agnostic.

We retain backward compatibility by setting G_ELI_FLAG_NATIVE_BYTE_ORDER
flag on devices with version number less than 2 and not converting the
offset.

18 years agoForgot to bump version number after G_ELI_FLAG_READONLY flag addition.
pjd [Fri, 11 Aug 2006 18:39:58 +0000 (18:39 +0000)]
Forgot to bump version number after G_ELI_FLAG_READONLY flag addition.

18 years agoReintroduce CSTD, which allows a Makefile to specify the precise dialect
des [Fri, 11 Aug 2006 17:28:59 +0000 (17:28 +0000)]
Reintroduce CSTD, which allows a Makefile to specify the precise dialect
of C in which the program or library is written.

Note that this is *not* intended to be used across the whole tree.  It
is intended to be used for individual libraries or programs which use
specific language features which the compiler must know about in order
to produce correct warnings at high WARNS levels.

MFC after: 1 month

18 years agoEnsure that the page's new field for object-synchronized flags is always
alc [Fri, 11 Aug 2006 17:18:58 +0000 (17:18 +0000)]
Ensure that the page's new field for object-synchronized flags is always
initialized to zero.

Call vm_page_sleep_if_busy() instead of duplicating its implementation in
vm_page_grab().

18 years agoCosmetic: fix indentation.
des [Fri, 11 Aug 2006 17:17:14 +0000 (17:17 +0000)]
Cosmetic: fix indentation.

18 years agoRaise the quality of the HPET timer to 2000 so it will be the preferred
des [Fri, 11 Aug 2006 17:12:16 +0000 (17:12 +0000)]
Raise the quality of the HPET timer to 2000 so it will be the preferred
choice on systems which support it.

No objection by: phk

18 years agoOptionally pad outgoing frames to the minimum of 60 bytes (excl. FCS)
yar [Fri, 11 Aug 2006 17:09:27 +0000 (17:09 +0000)]
Optionally pad outgoing frames to the minimum of 60 bytes (excl. FCS)
before tagging them.  This can help to work around brain-damage in some
switches that fail to pad a frame after untagging it if its length drops
below the minimum.  This option is blessed by IEEE Std 802.1Q (2003 Ed.),
paragraph C.4.4.3.b.  It's controlled by sysctl net.link.vlan.soft_pad.

Idea by: az
MFC after: 1 week

18 years agoAdditional debugging stuff I had in my tree.
des [Fri, 11 Aug 2006 17:03:33 +0000 (17:03 +0000)]
Additional debugging stuff I had in my tree.

18 years agoSpell 'connection options' correctly.
keramida [Fri, 11 Aug 2006 12:35:22 +0000 (12:35 +0000)]
Spell 'connection options' correctly.

Submitted by:   Leonidas Tsampros <ltsampros@upnet.gr>

18 years ago- em(4) updated to version 6.1.4
brueffer [Fri, 11 Aug 2006 12:32:43 +0000 (12:32 +0000)]
- em(4) updated to version 6.1.4
- stge(4) merged

18 years agoMerge in new driver from Intel, version 6.1.4. It adds support for
glebius [Fri, 11 Aug 2006 10:58:24 +0000 (10:58 +0000)]
Merge in new driver from Intel, version 6.1.4. It adds support for
82571EB quad port copper NIC and has few minor fixes.

Details:
  - if_em.c. Merged manually, viewing diff between new vendor
    driver and previous one.
  - if_em_hw.c. Dropped in from vendor, and then restored
    revision 1.15.

18 years agoAdd some more errno mappings (bsd -> linux) and a comment about the status..
netchild [Thu, 10 Aug 2006 22:05:25 +0000 (22:05 +0000)]
Add some more errno mappings (bsd -> linux) and a comment about the status..

Submitted by: "Intron" <mag@intron.ac>

18 years agoFox two typos.
netchild [Thu, 10 Aug 2006 20:03:52 +0000 (20:03 +0000)]
Fox two typos.

Noticed by: simon

18 years agoMFp4: Integrate a boatload of bug fixes from p4. We're right on the
imp [Thu, 10 Aug 2006 19:55:52 +0000 (19:55 +0000)]
MFp4: Integrate a boatload of bug fixes from p4.  We're right on the
8k boundary with this program still.

   text    data     bss     dec     hex filename
   7925       4    4476   12405    3075 bootiic.out

so we have like 293 bytes left before we have to play games.  There
may be ways to reduce that somewhat, but they start to be very board
specific.

18 years agoAdd some more files...
netchild [Thu, 10 Aug 2006 19:42:24 +0000 (19:42 +0000)]
Add some more files...

List provided by: kris

18 years agocheckpoint new version
sam [Thu, 10 Aug 2006 19:01:16 +0000 (19:01 +0000)]
checkpoint new version

18 years agoMFp4:
imp [Thu, 10 Aug 2006 18:22:56 +0000 (18:22 +0000)]
MFp4:

Reach over into the arm tree to grab some at91 definitions.
Better warnings
Lots of build tweaks

18 years agoMFp4: remove obsolete files
imp [Thu, 10 Aug 2006 18:19:45 +0000 (18:19 +0000)]
MFp4: remove obsolete files

18 years agoMFp4:
imp [Thu, 10 Aug 2006 18:14:35 +0000 (18:14 +0000)]
MFp4:
Remove obsolete files in list
Add spi flash reading routines

18 years agoMFp4: Numerous changes from p4 to try to improve tftp downloading,
imp [Thu, 10 Aug 2006 18:11:22 +0000 (18:11 +0000)]
MFp4: Numerous changes from p4 to try to improve tftp downloading,
reduce code footprint, etc.  While some problems still remain, the
reliability of tftp is much improved.

18 years agoMFp4: consolidate #include files down to lib.h
imp [Thu, 10 Aug 2006 18:07:49 +0000 (18:07 +0000)]
MFp4: consolidate #include files down to lib.h

18 years agoMFp4: These will migrate to the boot specific directories because they
imp [Thu, 10 Aug 2006 18:07:01 +0000 (18:07 +0000)]
MFp4: These will migrate to the boot specific directories because they
are too hard to share between the different boot loaders.

18 years agoMFp4: Make it clearer that the address passed to the eeprom routines is
imp [Thu, 10 Aug 2006 18:03:50 +0000 (18:03 +0000)]
MFp4: Make it clearer that the address passed to the eeprom routines is
really an offset within the eeprom device, and not a IIC address.

18 years agoMFp4: Catchup with migration of some defines.
imp [Thu, 10 Aug 2006 18:02:27 +0000 (18:02 +0000)]
MFp4: Catchup with migration of some defines.

18 years agoMFp4: Tweaks for our board.
imp [Thu, 10 Aug 2006 17:59:22 +0000 (17:59 +0000)]
MFp4: Tweaks for our board.

18 years agoMFp4: Increase character timeout to 10. Make it a #define for easier
imp [Thu, 10 Aug 2006 17:54:51 +0000 (17:54 +0000)]
MFp4: Increase character timeout to 10.  Make it a #define for easier
changes in the future.  This helps with getting started and to
overcome the really sucky level of granuality this timeout has in
getc.  A timeout of 1 means 'wait until top of next second' rather
than 'wait for at least a second'.

18 years agoAdd libcrypto.so.4 and libssl.so.4 to OLD_LIBS since they are obsoleted
simon [Thu, 10 Aug 2006 16:50:50 +0000 (16:50 +0000)]
Add libcrypto.so.4 and libssl.so.4 to OLD_LIBS since they are obsoleted
by the OpenSSL 0.9.8b import.

Reminded by: kris

18 years agoFix typo.
obrien [Thu, 10 Aug 2006 16:39:55 +0000 (16:39 +0000)]
Fix typo.

Submitted by: kevlo

18 years agoo add noise floor to stats
sam [Thu, 10 Aug 2006 16:31:37 +0000 (16:31 +0000)]
o add noise floor to stats
o include current tx rate in stats so athstats gets a consistent
  snapshot and doesn't have to make an extra ioctl
o record tx rate for raw frames

MFC after: 3 weeks

18 years agoImprove the way we'll detect video devices as per ACPI 3.0.
bruno [Thu, 10 Aug 2006 13:18:02 +0000 (13:18 +0000)]
Improve the way we'll detect video devices as per ACPI 3.0.

PR: 100271
Requested by: john AT utzweb DOT net
Submitted by: hrs
Reviewed by: njl
Approved by: njl
MFC after: 3 days

18 years agoSome perfectionizm against last revision.
glebius [Thu, 10 Aug 2006 11:07:11 +0000 (11:07 +0000)]
Some perfectionizm against last revision.

Submitted by: ru

18 years agoAdd support for splitting at gigabyte boundaries. [1]
keramida [Thu, 10 Aug 2006 10:41:47 +0000 (10:41 +0000)]
Add support for splitting at gigabyte boundaries. [1]

Also make both lowercase and uppercase suffix letters work
as byte-count suffixes, i.e. the following two commands are
equivalent now:

    % split -b 4m foo
    % split -b 4M foo

Submitted by: Roman Divacky [1]
Lots of help by: cperciva
Reviewed by: cperciva
MFC after: 1 week

18 years agogetnewvnode() can be called with NULL mp.
pjd [Thu, 10 Aug 2006 08:56:03 +0000 (08:56 +0000)]
getnewvnode() can be called with NULL mp.

Found by: Coverity Prevent (tm)
Coverity ID: 1521
Confirmed by: phk

18 years agoThe acpi module is no different from others. If it is loaded while the kernel
njl [Thu, 10 Aug 2006 06:32:16 +0000 (06:32 +0000)]
The acpi module is no different from others.  If it is loaded while the kernel
has it compiled in, it will be rejected with "module acpi already present!"
and no strange behavior.

MFC after: 1 day

18 years agoDon't need to special case arm here anymore
imp [Thu, 10 Aug 2006 06:29:43 +0000 (06:29 +0000)]
Don't need to special case arm here anymore

18 years agoAdd a dummy makefile to keep build happy
imp [Thu, 10 Aug 2006 06:29:15 +0000 (06:29 +0000)]
Add a dummy makefile to keep build happy

18 years agofixup list station support:
sam [Thu, 10 Aug 2006 06:06:13 +0000 (06:06 +0000)]
fixup list station support:
o add sanity check to avoid possible looping
o use intended api for IEEE80211_IOC_STA_INFO
o when operating in sta mode get the sta info for the ap

18 years agoMore statistics fixups:
sam [Thu, 10 Aug 2006 06:04:00 +0000 (06:04 +0000)]
More statistics fixups:
o change rssi to be signed in ieee80211_nodestats
o add noise floor in ieee80211_nodestats (use an implicit hole to
  preserve layout); return it as zero until we can update the api's
  so the driver can provide noise floor data
o add a bandaid so IEEE80211_IOC_STA_STATS works for sta mode; when
  all nodes are in the station table this will no longer be needed
o fix braino in IEEE80211_IOC_STA_INFO implementation; was supposed
  to take a mac address and return info for that sta or all stations
  if ff:ff:ff:ff:ff was supplied--but somehow this didn't get implemented;
  implement the intended semantics and leave a compat shim at the old
  ioctl number for the previous api

Reviewed by: mlaier
MFC after: 3 weeks

18 years agominor fixups:
sam [Thu, 10 Aug 2006 05:54:36 +0000 (05:54 +0000)]
minor fixups:
o add some missing stats to the global stat structure
o move accounting work for data frame rx into ieee80211_deliver_data
o add per-sta stats for rx ucast/mcast frames
o set rcvif in ieee80211_deliver_data so callers don't need to

MFC after: 2 weeks

18 years agoadd per-sta ucast/mcast stats
sam [Thu, 10 Aug 2006 05:37:49 +0000 (05:37 +0000)]
add per-sta ucast/mcast stats

MFC after: 1 week

18 years agoChange vm_page_cowfault() so that it doesn't allocate a pre-busied page.
alc [Thu, 10 Aug 2006 04:48:29 +0000 (04:48 +0000)]
Change vm_page_cowfault() so that it doesn't allocate a pre-busied page.