John Baldwin
f11825148f
Fix a typo in a bootverbose printf.
...
MFC after: 3 days
Submitted by: yongari
2007-05-07 18:29:37 +00:00
Robert Watson
9df79d84c1
Rather than selectively zeroing fields in the tcp_debug structure
...
throughout tcp_trace(), zero the entire structure up front.
Minor style fixes.
2007-05-07 14:05:23 +00:00
Robert Watson
6db851a281
Since udp_peeraddr() and udp_sockaddr() directly wrap in_setpeeraddr()
...
and in_setsockaddr(), containing only stale comments on why they
exist, remove them and initialize the protosw for UDP to directly
reference in_setpeeraddr() and in_setsockaddr().
2007-05-07 13:51:24 +00:00
Robert Watson
af1ee11d54
Minor style tweaks.
2007-05-07 13:47:39 +00:00
Robert Watson
434a0d24dd
When setting up timewait state for a TCP connection, don't hold the
...
socket lock over a crhold() of so_cred: so_cred is constant after
socket creation, so doesn't require locking to read.
2007-05-07 13:04:25 +00:00
David Malone
61d8eede29
Cast to intmax_t to print tv_sec in struct timeval.
...
Avoid shadowing a global variable with a function argument.
Set WARNS to 6.
2007-05-07 12:23:23 +00:00
David Malone
2ffe6bbf0f
Use [u]intmax_t to printf unknown integer types.
...
Make timeprt always allocate memory, to make things a little simpler.
Remove an unused variable.
2007-05-07 12:10:06 +00:00
David Malone
6f62d86388
Make logmsg take const char * arguments.
...
Set WARNS to 6.
2007-05-07 11:28:01 +00:00
David Malone
e4cedda807
ANSIfy function definitions.
...
Move some extern declarations to a header file.
Remove an unneeded extern declaration for optarg.
2007-05-07 11:18:30 +00:00
David Malone
bc7e443092
Fix some warnings by making things const, adding missing headers,
...
removing some unused variables and making a variable unsigned.
MFC after: 3 weeks
2007-05-07 11:01:36 +00:00
Lukas Ertl
180200f5f4
Fix kldloading if_em by compiling missing source file.
2007-05-07 09:55:25 +00:00
Andrew Thompson
a5715cb26e
- Correctly check if lp_ioctl is null
...
- Remove lagg_ether_purgemulti as its no longer needed
- Mark the interface as up if any ports are active rather than just the primary
2007-05-07 09:53:02 +00:00
Yaroslav Tykhiy
43ff6aec71
Tell that nve(4) has got support for VLAN_MTU.
...
Touch Dd.
2007-05-07 09:52:39 +00:00
Yaroslav Tykhiy
e8ae99894a
Finish VLAN_MTU support in nve(4). The interface appears to be able
...
to handle long frames in its default mode, so setting the respective
bit in if_capenable is enough.
Tested by: yongari
2007-05-07 09:45:31 +00:00
Ariff Abdullah
64a113269c
buf_addr should be bus_addr_t rather than u_int32_t.
2007-05-07 02:46:48 +00:00
Kevin Lo
dd5ee92cb5
Add rum(4)
2007-05-07 02:06:03 +00:00
Andrew Thompson
efcd0965ad
The purgemulti call is not needed since all the ports have already been detached.
2007-05-07 00:52:26 +00:00
Andrew Thompson
cdc6f95f84
Call if_setlladdr() on the aggregation port from a taskqueue so the softc lock
...
is not held. The short delay between aggregating the port and setting the MAC
address is fine.
2007-05-07 00:35:15 +00:00
Andrew Thompson
108fe96a44
Avoid touching various unsafe parts if the interface is disappearing.
2007-05-07 00:28:55 +00:00
Andrew Thompson
d74fd34568
Change from using if_delmulti() to if_delmulti_ifma() as it simplifies the code
...
and is safe to use if the ifp has disappeared.
Suggested by: bms
2007-05-07 00:18:56 +00:00
Dag-Erling Smørgrav
c8285e3723
Unbreak the build on 64-bit architectures as well.
2007-05-06 21:06:08 +00:00
Pawel Jakub Dawidek
6a7309390f
- Add missing lock destruction and remove duplicate initializations.
...
With this change it is possible to unload zfs.ko module from
WITNESS-enabled kernel.
- Remove bogus comment.
2007-05-06 19:05:37 +00:00
Andre Oppermann
5b93d33118
Add Apple HFS+ (0xAF) MBR partition type identificator.
...
Submitted by: rpaulo (SoC2007 student)
2007-05-06 18:48:30 +00:00
John-Mark Gurney
2557913d4b
Document the additional fields, si_drv1 and si_drv2 that are available
...
for the user to use...
MFC after: 1 week
2007-05-06 18:20:16 +00:00
Paolo Pisati
566bd15634
Make interrupt filtering support compilable.
...
The entire code is wrapperd in #ifdef ... #endif so it won't harm
the actual implementation, but developers are encouraged to test it.
For arm, ia64, ppc, sparc64 and sun4v some work is still
needed, thus arch maintainers are encouraged to bring their arch on par
with respect to i386 and amd64.
Approved by: re (implicit?)
2007-05-06 17:04:34 +00:00
Paolo Pisati
bafe5a3118
Bring in the reminaing bits to make interrupt filtering work:
...
o push much of the i386 and amd64 MD interrupt handling code
(intr_machdep.c::intr_execute_handlers()) into MI code
(kern_intr.c::ithread_loop())
o move filter handling to kern_intr.c::intr_filter_loop()
o factor out the code necessary to mask and ack an interrupt event
(intr_machdep.c::intr_eoi_src() and intr_machdep.c::intr_disab_eoi_src()),
and make them part of 'struct intr_event', passing them as arguments to
kern_intr.c::intr_event_create().
o spawn a private ithread per handler (struct intr_handler::ih_thread)
with filter and ithread functions.
Approved by: re (implicit?)
2007-05-06 17:02:50 +00:00
Ariff Abdullah
0e86bad6e3
PCMMKMINOR() bit twiddling, so we can have:
...
- 2048 unique sound cards (dsp0 -> dsp2047)
(used to be 15)
- 32 unique device types (dspW, audio, mixer, sndstat, .. 32th)
(used to be 15)
- 256 unique cloneable devices (dsp%d.0 -> dsp%d.255)
(unchanged)
2007-05-06 16:46:23 +00:00
Andre Oppermann
1a5537409f
Remove unused requested_s_scale from struct tcpcb.
2007-05-06 16:04:36 +00:00
Andre Oppermann
3529149e9a
Use existing TF_SACK_PERMIT flag in struct tcpcb t_flags field instead of
...
a decdicated sack_enable int for this bool. Change all users accordingly.
2007-05-06 15:56:31 +00:00
Andre Oppermann
0ca3f933eb
o Remove redundant tcp reassembly check in header prediction code
...
o Rearrange code to make intent in TCPS_SYN_SENT case more clear
o Assorted style cleanup
o Comment clarification for tcp_dropwithreset()
2007-05-06 15:41:06 +00:00
Andre Oppermann
c5ad39b910
Reorder the TCP header prediction test to check for the most volatile
...
values first to spend less time on a fallback to normal processing.
2007-05-06 15:23:51 +00:00
Andre Oppermann
679d9708b6
Remove the defunct remains of the TCPS_TIME_WAIT cases from tcp_do_segment
...
and change it to a void function.
We use a compressed structure for TCPS_TIME_WAIT to save memory. Any late
late segments arriving for such a connection is handled directly in the TW
code.
2007-05-06 15:16:05 +00:00
Pawel Jakub Dawidek
f0256e71f1
When deleting key, flush write cache after each overwrite, so we don't
...
overwrite data N times in cache and only once on disk.
2007-05-06 14:56:03 +00:00
Pawel Jakub Dawidek
18eb427c60
Correct some typos.
2007-05-06 14:54:41 +00:00
Robert Watson
9d3f3e9711
Add a regression test to detect if waiting on the I/O serialization lock
...
on socket buffers is interruptible or not, which detacts the regression I
introduced recently in 7-CURRENT (spotted by alfred). This test passes
in older -CURRENT, and with the as-yet uncommitted sx_xlock_sig and
sblock fix patches.
2007-05-06 14:28:49 +00:00
Dag-Erling Smørgrav
f679c6ff12
Unbreak the build.
2007-05-06 14:25:52 +00:00
Andre Oppermann
37ba9d112a
Fix two comments.
2007-05-06 13:38:25 +00:00
Wojciech A. Koszek
fe2e562728
Add missing 'bp', since it should be passed as g_print_bio() argument.
...
Oked by: pjd
2007-05-06 12:48:39 +00:00
Wojciech A. Koszek
9e2894466a
Don't acquire Giant unconditionally.
...
Reviewed by: rwatson
2007-05-06 12:00:38 +00:00
Kevin Lo
0738dfc386
Add support for Ralink Technology RT2501USB/RT2601USB devices.
...
Reviewed by: sam, sephe
Obtained from: OpenBSD
2007-05-06 10:07:21 +00:00
Dag-Erling Smørgrav
5f145b19fc
Remove parameter names from prototypes to avoid namespace issues.
2007-05-06 10:00:27 +00:00
Pawel Jakub Dawidek
7baf73a6c2
Use provider's ident to handle situations when disks are moved around
...
and show up with different names: first try to open provider using
remembered name and compare its ident, if equal, this is our provider,
if not equal or there is no provider with such name, find provider with
remembered ident and don't care about the name.
2007-05-06 01:39:39 +00:00
Pawel Jakub Dawidek
fab3f4465e
MFp4: We don't need to cover vnode_pager_setsize() with the z_map_lock.
2007-05-06 01:27:54 +00:00
Pawel Jakub Dawidek
433c2705cd
Clean up a little.
...
Obtained from: OpenSolaris
2007-05-06 01:23:03 +00:00
Pawel Jakub Dawidek
1bfd71cfc5
File d_ident field with disk's serial number.
...
No answer from: sos
2007-05-06 01:20:06 +00:00
Pawel Jakub Dawidek
fbda685d38
Implement and document some utility functions that can be used to communicate
...
with GEOM providers.
OK'ed by: phk
2007-05-06 01:17:46 +00:00
Pawel Jakub Dawidek
e15b9720f1
Fix mdoc warnings.
2007-05-06 00:31:38 +00:00
Pawel Jakub Dawidek
c5791aae52
Print provider's ident when in verbose mode.
2007-05-06 00:25:21 +00:00
Randall Stewart
6114cd961a
Two bugs:
...
- Locks were not being unlocked when an invalid size chunk is
sent in.
- When a notification comes in, we cannot use it to look up
the fragment interleave stream information since its not
on a stream.
2007-05-06 00:01:17 +00:00
Matt Jacob
d0a68c2747
Make this driver MP safe and still be a multi-release driver.
...
Obtained from: 99% of the work done by Scott Long.
MFC after: 3 days
2007-05-05 20:18:24 +00:00