]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoAdd bridgestp as a seperate module.
thompsa [Wed, 26 Jul 2006 22:07:39 +0000 (22:07 +0000)]
Add bridgestp as a seperate module.

17 years agoRemove stp variables that are already initialised in bstp_attach().
thompsa [Wed, 26 Jul 2006 20:56:02 +0000 (20:56 +0000)]
Remove stp variables that are already initialised in bstp_attach().

17 years agoAdd Memory Corp 512MB CF Flash.
simon [Wed, 26 Jul 2006 20:35:52 +0000 (20:35 +0000)]
Add Memory Corp 512MB CF Flash.

MFC after: 3 days

17 years agoRemove zs(4). It has been replaced by scc(4) & uart(4).
marcel [Wed, 26 Jul 2006 19:44:42 +0000 (19:44 +0000)]
Remove zs(4). It has been replaced by scc(4) & uart(4).

17 years agoReplace sio_iobus.c with uart_iobus.c.
marcel [Wed, 26 Jul 2006 19:43:02 +0000 (19:43 +0000)]
Replace sio_iobus.c with uart_iobus.c.

17 years agoTurn this into an uart(4) bus attachment.
marcel [Wed, 26 Jul 2006 19:39:55 +0000 (19:39 +0000)]
Turn this into an uart(4) bus attachment.

17 years agoRepocopy from: src/sys/powerpc/psim/sio_iobus.c
marcel [Wed, 26 Jul 2006 19:29:11 +0000 (19:29 +0000)]
Repocopy from: src/sys/powerpc/psim/sio_iobus.c
 to: src/sys/powerpc/psim/uart_iobus.c

Meister: simon@

17 years agoRemove call to soisdisconnected() in uipc_detach(), since it will already
rwatson [Wed, 26 Jul 2006 19:16:34 +0000 (19:16 +0000)]
Remove call to soisdisconnected() in uipc_detach(), since it will already
have been invoked by uipc_close() or uipc_abort(), and the socket is in a
state of being torn down by the time we get to this point, so kqueue
state frobbed by soisdisconnected() is not available, so frobbing it will
result in a panic.

Reported by: Munehiro Matsuda <haro at h4 dot dion dot ne dot jp>

17 years agoo Remove device zs
marcel [Wed, 26 Jul 2006 17:35:40 +0000 (17:35 +0000)]
o  Remove device zs
o  Remove nodevice uart
o  Reorder

17 years agoo Enable -Werror
marcel [Wed, 26 Jul 2006 17:34:05 +0000 (17:34 +0000)]
o  Enable -Werror
o  Remove commented-out sio(4)
o  Remove zs(4)
o  Add scc(4)
o  Add uart(4)

17 years agoOn PowerPC the clock for the BRG comes from RTxC, not PCLK. Add a
marcel [Wed, 26 Jul 2006 17:29:37 +0000 (17:29 +0000)]
On PowerPC the clock for the BRG comes from RTxC, not PCLK. Add a
quick hack to deal with this. We may need to formalize this better
and have this information come from the bus attachments.

17 years agoImplement UART_IOCTL_BAUD for the Z8530. This allows a serial console
marcel [Wed, 26 Jul 2006 17:21:59 +0000 (17:21 +0000)]
Implement UART_IOCTL_BAUD for the Z8530. This allows a serial console
on PowerPC use the current setting of the hardware and not second
guess what the OFW does on various machines.

17 years agoImplement uart_cpu_eqres() and uart_cpu_getdev(). This allows
marcel [Wed, 26 Jul 2006 17:17:23 +0000 (17:17 +0000)]
Implement uart_cpu_eqres() and uart_cpu_getdev(). This allows
FreeBSD to use a serial console, as per the OFW settings.

17 years agoo Move the prototype of mem_valid() from ofw_machdep.h to md_var.h.
marcel [Wed, 26 Jul 2006 17:12:54 +0000 (17:12 +0000)]
o  Move the prototype of mem_valid() from ofw_machdep.h to md_var.h.
   This avoids that mem.c has to include ofw_machdep.h, including
   all OFW related headers.
o  Provide a stub for OF_decode_addr(), which is used by low-level
   console drivers to obtain a tag and handle given a OFW phandle.
   This is different from sparc64, where a fake bus tag needs to be
   created explicitly.

17 years agoInclude needed clock.h.
marcel [Wed, 26 Jul 2006 17:06:39 +0000 (17:06 +0000)]
Include needed clock.h.

17 years agoForward declare struct trapframe.
marcel [Wed, 26 Jul 2006 17:05:11 +0000 (17:05 +0000)]
Forward declare struct trapframe.

17 years agoRemove stale comment about arm
imp [Wed, 26 Jul 2006 16:56:56 +0000 (16:56 +0000)]
Remove stale comment about arm

17 years agoAdd an entry for enigma(1)/crypt(1) change on 64-bit architectures.
jkim [Wed, 26 Jul 2006 16:31:10 +0000 (16:31 +0000)]
Add an entry for enigma(1)/crypt(1) change on 64-bit architectures.

17 years agoAdd snd_emu10kx_load
ache [Wed, 26 Jul 2006 12:59:42 +0000 (12:59 +0000)]
Add snd_emu10kx_load

17 years agoForced commit due to missing log on the last revision.
thompsa [Wed, 26 Jul 2006 10:45:38 +0000 (10:45 +0000)]
Forced commit due to missing log on the last revision.

Split the spanning tree state into its own structures and provide a simple API
to perform functions such as adding and deleting ports. This is just a
mechanical change and the STP operation remains the same. The bridgestp code
now has no knowledge of if_bridge.

This makes the code easier to read and can now also support other bridges such
as ng_bridge.

17 years ago/tmp/cvsuusTrc
thompsa [Wed, 26 Jul 2006 10:43:02 +0000 (10:43 +0000)]
/tmp/cvsuusTrc

17 years agoRemove variables that are overridden by ether_ifattach(). This clears up any
thompsa [Wed, 26 Jul 2006 09:41:04 +0000 (09:41 +0000)]
Remove variables that are overridden by ether_ifattach(). This clears up any
confusion especially as *if_output was pointed to a different function.

17 years agoMake sure that the sc pointer gets initialized. No functional change
delphij [Wed, 26 Jul 2006 08:58:00 +0000 (08:58 +0000)]
Make sure that the sc pointer gets initialized.  No functional change
should happen with this change.

17 years agoRespect MK_INET6_SUPPORT.
yar [Wed, 26 Jul 2006 08:36:46 +0000 (08:36 +0000)]
Respect MK_INET6_SUPPORT.

17 years agoFix build w/o INET6.
yar [Wed, 26 Jul 2006 08:35:46 +0000 (08:35 +0000)]
Fix build w/o INET6.

Submitted by: Andre Albsmeier <Andre.Albsmeier siemens com>

17 years agoBack out rev. 1.63. It was a poor idea because
yar [Wed, 26 Jul 2006 08:03:24 +0000 (08:03 +0000)]
Back out rev. 1.63.  It was a poor idea because
test(1) is built in sh(1) and it always evaluates
both sides of -a or -o, unlike && or || in sh(1).

Requested by: dougb

17 years agoIncrease the number of CPUs to 32 to suit sun4v.
jb [Wed, 26 Jul 2006 07:46:32 +0000 (07:46 +0000)]
Increase the number of CPUs to 32 to suit sun4v.

Reviewed by: rwatson@

17 years agoMake it easier to find that we have test(1) built-in in sh(1).
yar [Wed, 26 Jul 2006 06:48:18 +0000 (06:48 +0000)]
Make it easier to find that we have test(1) built-in in sh(1).

MFC after: 3 days

17 years agoadd missing \n's
sam [Wed, 26 Jul 2006 04:09:04 +0000 (04:09 +0000)]
add missing \n's

Submitted by: avatar@
MFC after: 1 week

17 years agocheck tim is present in the beacon before defer'ing the mcast buffer bit;
sam [Wed, 26 Jul 2006 03:48:41 +0000 (03:48 +0000)]
check tim is present in the beacon before defer'ing the mcast buffer bit;
insures we don't do this when operating in adhoc mode

Submitted by: avatar@
MFC after: 1 week

17 years agosupport for 802.11 packet injection via bpf
sam [Wed, 26 Jul 2006 03:30:50 +0000 (03:30 +0000)]
support for 802.11 packet injection via bpf

Reviewed by: arch@
MFC after: 1 month

17 years agoadd support for 802.11 packet injection via bpf
sam [Wed, 26 Jul 2006 03:15:16 +0000 (03:15 +0000)]
add support for 802.11 packet injection via bpf

Together with: Andrea Bittau <a.bittau@cs.ucl.ac.uk>
Reviewed by: arch@
MFC after: 1 month

17 years agoFix braino: The cl_range field should not hold the shifted I/O
marcel [Wed, 26 Jul 2006 03:10:01 +0000 (03:10 +0000)]
Fix braino: The cl_range field should not hold the shifted I/O
space range per channel, but rather the unshifted range. The
shifting depends on the bus. The hardcoded shift was specific
to the SBus on sparc64. The shifted range is now determined at
run-time. This fixes the mac-io attachment.

17 years agoset default beacon miss threshold to 10 beacons
sam [Wed, 26 Jul 2006 03:09:32 +0000 (03:09 +0000)]
set default beacon miss threshold to 10 beacons

Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk>
MFC after: 2 weeks

17 years agoadd beacon miss threshold control
sam [Wed, 26 Jul 2006 03:08:45 +0000 (03:08 +0000)]
add beacon miss threshold control

Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk>
MFC after: 2 weeks

17 years agoadd IEEE80211_IOC_BMISSTHRESHOLD for managing the beacon miss
sam [Wed, 26 Jul 2006 03:07:36 +0000 (03:07 +0000)]
add IEEE80211_IOC_BMISSTHRESHOLD for managing the beacon miss
threshold

Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk>
MFC after: 2 weeks

17 years agoo move min/max beacon interval and dtim period to public location
sam [Wed, 26 Jul 2006 03:05:34 +0000 (03:05 +0000)]
o move min/max beacon interval and dtim period to public location
o add min/max beacon miss threshold settings
o delete IEEE80211_SWBMISS_THRESHOLD, it was never used

MFC after: 2 weeks

17 years agoUse virtual_avail instead of freemempos as the starting point of the available
cognet [Tue, 25 Jul 2006 23:07:35 +0000 (23:07 +0000)]
Use virtual_avail instead of freemempos as the starting point of the available
physical memory, as the vm uses the memory between freemempos and
virtual_avail.

MFC After: 3 days

17 years agoRev. 1.44 of this file didn't introduce a right solution,
yar [Tue, 25 Jul 2006 22:39:57 +0000 (22:39 +0000)]
Rev. 1.44 of this file didn't introduce a right solution,
but we don't seem to have one yet, so just add an XXX comment on
passing rux_runtime to bintime2timeval() wrongly.

Spotted by: gcc(1) (warning)

17 years agoFix 32-bit integer math on 64-bit processor. Just use int32_t(!) instead
jkim [Tue, 25 Jul 2006 22:20:05 +0000 (22:20 +0000)]
Fix 32-bit integer math on 64-bit processor.  Just use int32_t(!) instead
of incorrect and machine-dependent integer math.  Now we can encrypt a file
on an i386 and decrypt it on an amd64, and vice versa.

Submitted by: Andrew Heybey < ath at niksun dot com >

17 years agoMFC noted: minidumps.
bmah [Tue, 25 Jul 2006 21:48:28 +0000 (21:48 +0000)]
MFC noted: minidumps.

17 years agoNew release notes: acpi_thermal(4) temperature overrides, interface
bmah [Tue, 25 Jul 2006 21:30:58 +0000 (21:30 +0000)]
New release notes:  acpi_thermal(4) temperature overrides, interface
groups, mount(8) late/-l, FILE 4.17.

Modified release notes: Improved padlock(4) crypto support (+MFC),
OpenBSM 1.0alpha7.

17 years agoRemove redundant check committed by accident.
pjd [Tue, 25 Jul 2006 20:00:55 +0000 (20:00 +0000)]
Remove redundant check committed by accident.

17 years agoAvoid memory allocations when the given address is already 16 bytes aligned.
pjd [Tue, 25 Jul 2006 19:32:58 +0000 (19:32 +0000)]
Avoid memory allocations when the given address is already 16 bytes aligned.
Such an address can be used directly in padlock's AES.
This improves speed of geli(8) significantly:

# sysctl kern.geom.zero.clear=0
# geli onetime -s 4096 gzero
# dd if=/dev/gzero.eli of=/dev/null bs=1m count=1000

Before: 113MB/s
After: 203MB/s

BTW. If sector size is set to 128kB, I can read at 276MB/s :)

17 years agoModify PADLOCK_ALIGN() macro, so when the given address is already 16 bytes
pjd [Tue, 25 Jul 2006 19:06:54 +0000 (19:06 +0000)]
Modify PADLOCK_ALIGN() macro, so when the given address is already 16 bytes
aligned, it will be used directly, not 'address + 16'.

17 years agoStyle fixes.
pjd [Tue, 25 Jul 2006 19:04:26 +0000 (19:04 +0000)]
Style fixes.

17 years agoDe-uglify messages from the ipfw script.
yar [Tue, 25 Jul 2006 17:28:18 +0000 (17:28 +0000)]
De-uglify messages from the ipfw script.

17 years agoUse more rc.subr(8) features.
yar [Tue, 25 Jul 2006 17:25:44 +0000 (17:25 +0000)]
Use more rc.subr(8) features.
Skip useless work when ${natd_interface} is unset.
Double quote user-supplied vars unless there is a reason not to.

17 years agoAvoid extra runs of test(1) by using its built-in logical operations.
yar [Tue, 25 Jul 2006 17:20:22 +0000 (17:20 +0000)]
Avoid extra runs of test(1) by using its built-in logical operations.

17 years agoDon't load geom_md.ko if there is no need to.
pjd [Tue, 25 Jul 2006 17:19:00 +0000 (17:19 +0000)]
Don't load geom_md.ko if there is no need to.

17 years agoSync comments around _doit with the code.
yar [Tue, 25 Jul 2006 17:16:48 +0000 (17:16 +0000)]
Sync comments around _doit with the code.

17 years agoWe notify of failures with err or warn.
yar [Tue, 25 Jul 2006 17:14:38 +0000 (17:14 +0000)]
We notify of failures with err or warn.
Messages should end in full stop unless
that can lead to confusion.

17 years agoAdd diagnostics to load_kld().
yar [Tue, 25 Jul 2006 17:10:35 +0000 (17:10 +0000)]
Add diagnostics to load_kld().

17 years agoNew release notes: snd_emu10kx(4), nfe(4), stge(4), enc(4) (+MFC),
bmah [Tue, 25 Jul 2006 16:01:46 +0000 (16:01 +0000)]
New release notes:  snd_emu10kx(4), nfe(4), stge(4), enc(4) (+MFC),
sysinstall(8) title (+MFC).

17 years agoIn udf_find_partmaps(), when we find a type 1 partition map, we have to
yar [Tue, 25 Jul 2006 14:15:50 +0000 (14:15 +0000)]
In udf_find_partmaps(), when we find a type 1 partition map, we have to
skip the actual type 1 length (6 bytes). With this change, it is now possible
to correctly spot the VAT partition map in certain discs.

Submitted by: Pedro Martelletto <pedro@ambientworks.net>

17 years agoo Add NetBSD 3.0.1 and DragonFlyBSD 1.6.0.
maxim [Tue, 25 Jul 2006 13:31:00 +0000 (13:31 +0000)]
o Add NetBSD 3.0.1 and DragonFlyBSD 1.6.0.

17 years ago1. Don't override underscore version of aio_suspend(), system(),
davidxu [Tue, 25 Jul 2006 12:50:05 +0000 (12:50 +0000)]
1. Don't override underscore version of aio_suspend(), system(),
   wait(), waitpid() and usleep(), they are internal versions and
   should not be cancellation points.
2. Make wait3() as a cancellation point.
3. Move raise() and pause() into file thr_sig.c.
4. Add functions _sigsuspend, _sigwait, _sigtimedwait and _sigwaitinfo,
   remove SIGCANCEL bit in wait-set for those functions, the signal is
   used internally to implement thread cancellation.

17 years agoSpecify correct argument range for tag/untag keywords.
oleg [Tue, 25 Jul 2006 11:07:31 +0000 (11:07 +0000)]
Specify correct argument range for tag/untag keywords.

Approved by: glebius (mentor)

17 years agosingular -> plural and a typo fix.
brueffer [Tue, 25 Jul 2006 05:20:06 +0000 (05:20 +0000)]
singular -> plural and a typo fix.

17 years agoAutogenerate hardware notes for stge(4).
brueffer [Tue, 25 Jul 2006 05:13:53 +0000 (05:13 +0000)]
Autogenerate hardware notes for stge(4).

17 years agoFix printing of negative decimal values in Kelvin to Celsius conversion.
njl [Tue, 25 Jul 2006 02:28:43 +0000 (02:28 +0000)]
Fix printing of negative decimal values in Kelvin to Celsius conversion.

MFC after: 3 days

17 years agoAdd support for overriding the values for _CRT, _HOT, and _PSV via sysctl.
njl [Tue, 25 Jul 2006 02:27:38 +0000 (02:27 +0000)]
Add support for overriding the values for _CRT, _HOT, and _PSV via sysctl.
Prevent casual modification by requiring hw.acpi.thermal.user_override to
be set first.  Fix printing of negative temperatures in the K->C conversion.
Document the remaining thermal sysctls.

MFC after: 3 days

17 years agoAdd uipc_sockbuf.c to standard files list; accidentally missed in earlier
rwatson [Tue, 25 Jul 2006 02:15:28 +0000 (02:15 +0000)]
Add uipc_sockbuf.c to standard files list; accidentally missed in earlier
commit.

Spotted by: tinderbox

17 years agoCleanup.
kevlo [Tue, 25 Jul 2006 01:08:41 +0000 (01:08 +0000)]
Cleanup.
Approved by: cognet

17 years agoAdd stge(4) to the list of drivers supported by GENERIC kernel.
yongari [Tue, 25 Jul 2006 01:06:32 +0000 (01:06 +0000)]
Add stge(4) to the list of drivers supported by GENERIC kernel.

17 years agoAdd stge(4) to the list of supported network interface.
yongari [Tue, 25 Jul 2006 01:03:55 +0000 (01:03 +0000)]
Add stge(4) to the list of supported network interface.

17 years agoAdd an entry for the stge(4) module.
yongari [Tue, 25 Jul 2006 01:02:22 +0000 (01:02 +0000)]
Add an entry for the stge(4) module.
While I'm here remove a stale wx(4) entry which was removed 4 years,
9 months ago.

17 years agobus_alloc_resource_any is actually defined in the
mjacob [Tue, 25 Jul 2006 01:01:09 +0000 (01:01 +0000)]
bus_alloc_resource_any is actually defined in the
RELENG_4 branch, so there's no need to have a compilation
difference here any more.

17 years agoWhen probing to attach the CAM functionality, check against
mjacob [Tue, 25 Jul 2006 00:59:54 +0000 (00:59 +0000)]
When probing to attach the CAM functionality, check against
desired role configuration instead of existing role. This gets
us out of the mess where we configured a role of NONE (or were
LAN only, for example), but didn't continue to attach the CAM
module (because we had neither initiator nor target role
set). Unfortunately, the code that rewrites NVRAM to match
actual to desired role only works if the CAM module attaches.

MFC after: 2 weeks

17 years agoAdd stge(4) to the list of device drivers use the miibus interface.
yongari [Tue, 25 Jul 2006 00:59:39 +0000 (00:59 +0000)]
Add stge(4) to the list of device drivers use the miibus interface.

17 years agoAdd stge(4) to the list of drivers supporting ALTQ.
yongari [Tue, 25 Jul 2006 00:58:00 +0000 (00:58 +0000)]
Add stge(4) to the list of drivers supporting ALTQ.

17 years agoAdd stge(4) to the list of devices supporting full VLAN processing
yongari [Tue, 25 Jul 2006 00:56:47 +0000 (00:56 +0000)]
Add stge(4) to the list of devices supporting full VLAN processing
in the hardware.

17 years agoAdd stge(4) to the list of devices supporting polling.
yongari [Tue, 25 Jul 2006 00:54:58 +0000 (00:54 +0000)]
Add stge(4) to the list of devices supporting polling.

17 years agoHook up state(4) to the build.
yongari [Tue, 25 Jul 2006 00:53:14 +0000 (00:53 +0000)]
Hook up state(4) to the build.

17 years agoAdd a man page for stge(4).
yongari [Tue, 25 Jul 2006 00:51:38 +0000 (00:51 +0000)]
Add a man page for stge(4).

17 years agoHook up stge(4) to the build.
yongari [Tue, 25 Jul 2006 00:45:55 +0000 (00:45 +0000)]
Hook up stge(4) to the build.

17 years agoAdd stge(4), a driver for Sundance/Tamarack TC9021 Gigabit Ethernet
yongari [Tue, 25 Jul 2006 00:37:09 +0000 (00:37 +0000)]
Add stge(4), a driver for Sundance/Tamarack TC9021 Gigabit Ethernet
controller ported from NetBSD. It supports the following Gigabit
Ethernet adapters.
o Antares Microsystems Gigabit Ethernet
o ASUS NX1101 Gigabit Ethernet
o D-Link DL-4000 Gigabit Ethernet
o IC Plus IP1000A Gigabit Ethernet
o Sundance ST-2021 Gigabit Ethernet
o Sundance ST-2023 Gigabit Ethernet
o Sundance TC9021 Gigabit Ethernet
o Tamarack TC9021 Gigabit Ethernet
The IP1000A Gigabit Ethernet is also found on some motherboards
(LOM) from ABIT.

Unlike NetBSD stge(4) it does not require promiscuous mode operation
to revice packet and it supports all hardware features(TCP/UDP/IP
checksum offload, VLAN tag stripping/insertion features and JUMBO
frame) and polling(4).
Due to lack of hardware, hardwares that have TBI trantransceivers
were not tested at all.

Special thanks to wpaul who provided valauble datasheet for the
controller and helped to debug jumbo frame related issues. Whitout
his datasheet I would have spent many hours to debug this chip.

Tested on: i386, sparc64

17 years agoRevert previous commit. Spinlocks hold interrupts disabled, so
marcel [Tue, 25 Jul 2006 00:23:54 +0000 (00:23 +0000)]
Revert previous commit. Spinlocks hold interrupts disabled, so
preemption is not possible.

Pointed out by: jhb@

17 years agoConnect gentbi, ip1000phy to the build.
yongari [Tue, 25 Jul 2006 00:20:11 +0000 (00:20 +0000)]
Connect gentbi, ip1000phy to the build.

17 years agoAdd ip1000 PHY driver for IC Plus IP1000A integrated PHY.
yongari [Tue, 25 Jul 2006 00:16:09 +0000 (00:16 +0000)]
Add ip1000 PHY driver for IC Plus IP1000A integrated PHY.

17 years agoAdd IC Plus IP1000A integrated PHY id.
yongari [Tue, 25 Jul 2006 00:14:00 +0000 (00:14 +0000)]
Add IC Plus IP1000A integrated PHY id.

17 years agoAdd gentbi, a generic TBI(teb-bit interface) PHY driver ported
yongari [Tue, 25 Jul 2006 00:08:32 +0000 (00:08 +0000)]
Add gentbi, a generic TBI(teb-bit interface) PHY driver ported
from NetBSD.

17 years agoIf we have multiple interrupt resources, like for Z8530 clones on the
marcel [Mon, 24 Jul 2006 22:25:16 +0000 (22:25 +0000)]
If we have multiple interrupt resources, like for Z8530 clones on the
mac-io bus, we cannot setup FAST interrupt handlers. This because we
use spinlocks to protect the hardware and all interrupt resources are
assigned the same interrupt handler. When the interrupt handler is
invoked for interrupt X, it could be preempted for interrupt Y while
it was holding the lock (where X and Y are the interrupt resources
corresponding a single instance of this driver). This is a deadlock.
By only using a MPSAFE handler in that case we prevent preemption.

17 years agoOnly use -mno-apcs-frame if DDB is not in the kernel, as it prevent the
cognet [Mon, 24 Jul 2006 22:09:47 +0000 (22:09 +0000)]
Only use -mno-apcs-frame if DDB is not in the kernel, as it prevent the
backtraces from working.

MFC After: 3 days

17 years agoAdd a few more devices to the supported list. Specifically, the PHAROS and
imp [Mon, 24 Jul 2006 19:47:00 +0000 (19:47 +0000)]
Add a few more devices to the supported list.  Specifically, the PHAROS and
the silly dongly I just bought at Radio Shack.

17 years agoRemove non-socket buffer routines from uipc_sockbuf.c, and socket buffer
rwatson [Mon, 24 Jul 2006 16:21:31 +0000 (16:21 +0000)]
Remove non-socket buffer routines from uipc_sockbuf.c, and socket buffer
specific routines from uipc_socket2.c following repo-copy.  We might
rethink the location of one or two at some point, but the division was
relatively clean.  uipc_sockbuf.c is now the home of routines that
manipulate socket buffers.

17 years agoRather than calling mircotime() in catchpacket(), make catchpacket()
dwmalone [Mon, 24 Jul 2006 15:42:04 +0000 (15:42 +0000)]
Rather than calling mircotime() in catchpacket(), make catchpacket()
take a timeval indicating when the packet was captured. Move
microtime() to the calling functions and grab the timestamp as soon
as we know that we're going to call catchpacket at least once.

This means that we call microtime() once per matched packet, as
opposed to once per matched packet per bpf listener. It also means
that we return the same timestamp to all bpf listeners, rather than
slightly different ones.

It would be more accurate to call microtime() even earlier for all
packets, as you have to grab (1+#listener) locks before you can
determine if the packet will be logged. You could always grab a
timestamp before the locks, but microtime() can be costly, so this
didn't seem like a good idea.

(I guess most ethernet interfaces will have a bpf listener these
days because of dhclient. That means that we could be doing two bpf
locks on most packets going through the interface.)

PR: 71711

17 years agosoreceive_generic(), and sopoll_generic(). Add new functions sosend(),
rwatson [Mon, 24 Jul 2006 15:20:08 +0000 (15:20 +0000)]
soreceive_generic(), and sopoll_generic().  Add new functions sosend(),
soreceive(), and sopoll(), which are wrappers for pru_sosend,
pru_soreceive, and pru_sopoll, and are now used univerally by socket
consumers rather than either directly invoking the old so*() functions
or directly invoking the protocol switch method (about an even split
prior to this commit).

This completes an architectural change that was begun in 1996 to permit
protocols to provide substitute implementations, as now used by UDP.
Consumers now uniformly invoke sosend(), soreceive(), and sopoll() to
perform these operations on sockets -- in particular, distributed file
systems and socket system calls.

Architectural head nod: sam, gnn, wollman

17 years agoForced commit to recognize repo-copy of uipc_socket2.c to uipc_sockbuf.c,
rwatson [Mon, 24 Jul 2006 14:34:04 +0000 (14:34 +0000)]
Forced commit to recognize repo-copy of uipc_socket2.c to uipc_sockbuf.c,
which will hold socket buffer specific routines.

Thanks to: simon

17 years agoRemove a duplicated line.
davidxu [Mon, 24 Jul 2006 12:24:56 +0000 (12:24 +0000)]
Remove a duplicated line.

17 years agoFinally fix support for the newer MCP51/MCP55 nVidia chipsets.
sos [Mon, 24 Jul 2006 10:44:50 +0000 (10:44 +0000)]
Finally fix support for the newer MCP51/MCP55 nVidia chipsets.
The register layout has changed since the original NV4 - sigh.
Hotplug support has been fixed for all nVidia chipsets that supports it
(including the MCP51/55).

HW donated by: Kingsley College

17 years agoImprove mark-up: References to "start" as an rc.d method
yar [Mon, 24 Jul 2006 10:07:27 +0000 (10:07 +0000)]
Improve mark-up:  References to "start" as an rc.d method
should be tagged with ".Cm".  (Refs to "stop" are OK already.)

MFC after: 3 days

17 years agoo GC MT_FTABLE removed in rev. 1.192 mbuf.h.
maxim [Mon, 24 Jul 2006 07:32:23 +0000 (07:32 +0000)]
o GC MT_FTABLE removed in rev. 1.192 mbuf.h.
o Correct MT_HEADER define.

17 years agoNew release notes: iwi(4) update (+MFC), jexec(8) -u/-U (+MFC),
bmah [Mon, 24 Jul 2006 03:58:53 +0000 (03:58 +0000)]
New release notes:  iwi(4) update (+MFC), jexec(8) -u/-U (+MFC),
extensible printf(3) (+MFC), tail(1) -q (+MFC)

Updated release notes:  ath(4) HAL 0.9.17.2 (+MFC).

MFCs noted:  ath(4) et al. in GENERIC, resolver update, /media.

17 years agoRemove MT_FTABLE, as it's no longer used.
rwatson [Mon, 24 Jul 2006 01:49:57 +0000 (01:49 +0000)]
Remove MT_FTABLE, as it's no longer used.

Comment that many stats in mbstat are now not used, as libmemstat and
UMA stats are used.

17 years agoRemove MT_FTABLE printout in systat, as MT_FTABLE mbufs are no longer
rwatson [Mon, 24 Jul 2006 01:49:24 +0000 (01:49 +0000)]
Remove MT_FTABLE printout in systat, as MT_FTABLE mbufs are no longer
used in the kernel.

17 years agoGarbage collect #if 0'd MT_ mbuf types, as they are no longer used, and
rwatson [Mon, 24 Jul 2006 01:14:05 +0000 (01:14 +0000)]
Garbage collect #if 0'd MT_ mbuf types, as they are no longer used, and
there are no plans to re-introduce them.

17 years agoTweak so_gencnt comment: it was once last, but that is no longer the
rwatson [Mon, 24 Jul 2006 01:05:36 +0000 (01:05 +0000)]
Tweak so_gencnt comment: it was once last, but that is no longer the
case.

17 years agoTweak comment for so_head: it is a pointer to the listen socket, rather
rwatson [Mon, 24 Jul 2006 01:02:07 +0000 (01:02 +0000)]
Tweak comment for so_head: it is a pointer to the listen socket, rather
than the accept socket.

17 years agoFix a spelling error in a comment.
rwatson [Mon, 24 Jul 2006 00:33:24 +0000 (00:33 +0000)]
Fix a spelling error in a comment.

Found with: mckusick's code walkthrough DVDs