]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoacpi: do not run resume/backout code when entering S0/S5 states
avg [Tue, 28 Apr 2009 11:56:54 +0000 (11:56 +0000)]
acpi: do not run resume/backout code when entering S0/S5 states

This change adds (possibly redundant) early check for invalid
state input parameter (including S0). Handling of S5 request
is reduced to simply calling shutdown_nice(). As a result
control flow of acpi_EnterSleepState is somewhat simplified
and resume/backout half of the function is not executed
for S5 (soft poweroff) request and invalid state requests.

Note: it seems that shutdown_nice may act as nop when initproc
is already initialized (to grab pid of 1), but init process is in
"pre-natal" state.

Tested by: Fabian Keil <fk@fabiankeil.de>
Reviewed by: njl, jkim
Approved by: rpaulo

15 years agoUse the acquired reference to the vmspace instead of direct dereferencing
kib [Tue, 28 Apr 2009 11:45:36 +0000 (11:45 +0000)]
Use the acquired reference to the vmspace instead of direct dereferencing
of p->p_vmspace in a place where it was missed in r191277.

Noted by:  pluknet gmail com

15 years agoFix typo.
kib [Tue, 28 Apr 2009 11:43:35 +0000 (11:43 +0000)]
Fix typo.

15 years agoDon't require packet to match a route (any route; this information wasn't
trasz [Tue, 28 Apr 2009 11:10:33 +0000 (11:10 +0000)]
Don't require packet to match a route (any route; this information wasn't
used anyway, so a typical workaround was to add a dummy route) if it's going
to be sent through IPSec tunnel.

Reviewed by: bz

15 years agoAdded (pre|post)(start|stop) jail hooks. These can be used to run
ru [Tue, 28 Apr 2009 09:45:32 +0000 (09:45 +0000)]
Added (pre|post)(start|stop) jail hooks.  These can be used to run
arbitrary commands (outside the jail) associated with said events,
e.g. to bring up/down CARP interfaces representing services run in
jails.

Reviewed by: simon

15 years agoMFC of tzdata2009g:
edwin [Tue, 28 Apr 2009 08:20:32 +0000 (08:20 +0000)]
MFC of tzdata2009g:

Egypt will have DST till the end of September the coming years.

15 years agofix typo in conditional
kmacy [Mon, 27 Apr 2009 23:43:28 +0000 (23:43 +0000)]
fix typo in conditional

15 years agocollapse the two em_start_locked routines in to one
kmacy [Mon, 27 Apr 2009 22:55:48 +0000 (22:55 +0000)]
collapse the two em_start_locked routines in to one

15 years agosimplify by removing dead code
kmacy [Mon, 27 Apr 2009 22:54:30 +0000 (22:54 +0000)]
simplify by removing dead code

15 years agoremove dead code with reference to IFQ_HANDOFF
kmacy [Mon, 27 Apr 2009 22:53:35 +0000 (22:53 +0000)]
remove dead code with reference to IFQ_HANDOFF

15 years agoreplace IFQ_ENQUEUE + if_start with if_transmit
kmacy [Mon, 27 Apr 2009 22:46:26 +0000 (22:46 +0000)]
replace IFQ_ENQUEUE + if_start with if_transmit

15 years agoreplace IFQ_HANDOFF with if_transmit
kmacy [Mon, 27 Apr 2009 22:45:56 +0000 (22:45 +0000)]
replace IFQ_HANDOFF with if_transmit

15 years agoremove gratuitous memory barrier, a remnant of unified L2 / L3
kmacy [Mon, 27 Apr 2009 22:45:19 +0000 (22:45 +0000)]
remove gratuitous memory barrier, a remnant of unified L2 / L3

15 years agoremove call to IFQ_HANDOFF is it called by if_transmit in the default case
kmacy [Mon, 27 Apr 2009 22:44:26 +0000 (22:44 +0000)]
remove call to IFQ_HANDOFF is it called by if_transmit in the default case
and doing so allows the ifnet driver to define its own queueing mechanism

15 years agoDocument the liblzma support.
kientzle [Mon, 27 Apr 2009 22:39:43 +0000 (22:39 +0000)]
Document the liblzma support.
Unfortunately, liblzma itself is GPLed, so unlikely to become part of
the FreeBSD base system.
However, the core lzma compression/decompression code is public
domain, so it should be feasible for someone to create a compatible
library without the GPL strings.

15 years agouse if_transmit intead of direct frobbing of the if_snd q; this is no
sam [Mon, 27 Apr 2009 22:06:49 +0000 (22:06 +0000)]
use if_transmit intead of direct frobbing of the if_snd q; this is no
longer allowed

Identified by: rwatson
Reviewed by: kmacy

15 years agoUse cached progif instead of reading it again.
jkim [Mon, 27 Apr 2009 21:45:05 +0000 (21:45 +0000)]
Use cached progif instead of reading it again.

15 years ago- Give generic AHCI driver lower priority than device-specific drivers.
jkim [Mon, 27 Apr 2009 21:34:15 +0000 (21:34 +0000)]
- Give generic AHCI driver lower priority than device-specific drivers.
- Consistently use BUS_PROBE_GENERIC instead of -100.

15 years agokey_gettunnel() has been unsued with FAST_IPSEC (now IPSEC).
bz [Mon, 27 Apr 2009 21:04:16 +0000 (21:04 +0000)]
key_gettunnel() has been unsued with FAST_IPSEC (now IPSEC).
KAME had explicit checks at one point using it, so just hide it behind
#if 0 for now until we are sure if we can completely dump it or not.

MFC after: 1 month

15 years agoSymlink some additional man page entries.
kientzle [Mon, 27 Apr 2009 20:23:22 +0000 (20:23 +0000)]
Symlink some additional man page entries.

15 years agoMerge r991 from libarchive.googlecode.com: Various updates
kientzle [Mon, 27 Apr 2009 20:13:13 +0000 (20:13 +0000)]
Merge r991 from libarchive.googlecode.com:  Various updates
to archive_read.3 manpage, including documentation for the
new "raw" handler.

15 years agoMerge r990,r1044 from libarchive.googlecode.com:
kientzle [Mon, 27 Apr 2009 20:09:05 +0000 (20:09 +0000)]
Merge r990,r1044 from libarchive.googlecode.com:
read_support_format_raw() allows people to exploit libarchive's
automatic decompression support by simply stubbing out the
archive format handler.
The raw handler is not enabled by support_format_all(), of course.
It bids 1 on any non-empty input and always returns a single
entry named "data" with no properties set.

15 years agoReduce code duplication and excessive pci_get_slot() calls.
jkim [Mon, 27 Apr 2009 19:39:18 +0000 (19:39 +0000)]
Reduce code duplication and excessive pci_get_slot() calls.

Reviewed by: mav

15 years agoMerge r1061,r1062,r1063 from libarchive.googlecode.com:
kientzle [Mon, 27 Apr 2009 19:30:09 +0000 (19:30 +0000)]
Merge r1061,r1062,r1063 from libarchive.googlecode.com:
Fix reading big-endian binary cpio archives, and add a test.
While I'm here, add a note about Solaris ACL extension for cpio,
which should be relatively straightforward to support.

Thanks to: Edward Napierala, who sent me a big-endian cpio archive
from a Solaris system he's been playing with.
Pointy hat: me

15 years agoMerge r1034 from libarchive.googlecode.com:
kientzle [Mon, 27 Apr 2009 19:23:53 +0000 (19:23 +0000)]
Merge r1034 from libarchive.googlecode.com:
Put a much larger file on the reference ISO for this test.

15 years agoMerge r1058 from libarchive.googlecode.com: Require that each
kientzle [Mon, 27 Apr 2009 19:20:25 +0000 (19:20 +0000)]
Merge r1058 from libarchive.googlecode.com:  Require that each
test source file has exactly one DEFINE_TEST().

15 years agoino_t varies across platforms; casting (int) here avoids
kientzle [Mon, 27 Apr 2009 19:14:43 +0000 (19:14 +0000)]
ino_t varies across platforms; casting (int) here avoids
various pointless complaints.

15 years agoMerge r1032 from libarchive.googlecode.com:
kientzle [Mon, 27 Apr 2009 18:55:22 +0000 (18:55 +0000)]
Merge r1032 from libarchive.googlecode.com:
Make test_fuzz a bit more sensitive by actually reading the body
of each entry instead of skipping it.
While I'm here, move the "UnsupportedCompress" macro into the
only file that still uses it.

15 years agoMerge r1054,r1060 from libarchive.googlecode.com:
kientzle [Mon, 27 Apr 2009 18:39:55 +0000 (18:39 +0000)]
Merge r1054,r1060 from libarchive.googlecode.com:
 * assertEqualMem() now takes void * arguments
 * Be a little smarter about what we hexdump when assertEqualMem() fails

15 years agoCorrect fat finger mistake
jfv [Mon, 27 Apr 2009 18:35:06 +0000 (18:35 +0000)]
Correct fat finger mistake

15 years agoMerge r1021 from libarchive.googlecode.com:
kientzle [Mon, 27 Apr 2009 18:35:03 +0000 (18:35 +0000)]
Merge r1021 from libarchive.googlecode.com:
If we know it's a socket, say so.

15 years agoMerge r1052,r1055 from libarchive.googlecode.com:
kientzle [Mon, 27 Apr 2009 18:33:08 +0000 (18:33 +0000)]
Merge r1052,r1055 from libarchive.googlecode.com:
Clear the error flag on entry to a few more API functions.

15 years agoMerge r1053,r1055,r1056,r1057,r1065 from libarchive.googlecode.com:
kientzle [Mon, 27 Apr 2009 18:27:54 +0000 (18:27 +0000)]
Merge r1053,r1055,r1056,r1057,r1065 from libarchive.googlecode.com:
 * Fix parsing of POSIX.1e ACLs from Solaris tar archives
 * Test the above
 * Preserve the order of POSIX.1e ACL entries
 * Update tests whose results depended on the order of ACL entries
 * Identify NFSv4 ACLs in Solaris tar archives and warn that
   they're not yet supported. (In particular, don't try to parse
   them as POSIX.1e ACLs.)

Thanks to: Edward Napierala sent me some Solaris 10 tar archives to test

15 years agoReduce excessive pci_get_devid() and pci_get_revid() calls
jkim [Mon, 27 Apr 2009 18:10:42 +0000 (18:10 +0000)]
Reduce excessive pci_get_devid() and pci_get_revid() calls
on the same PCI device while device probing.

15 years agoMerge r988,r1064 from libarchive.googlecode.com:
kientzle [Mon, 27 Apr 2009 17:42:02 +0000 (17:42 +0000)]
Merge r988,r1064 from libarchive.googlecode.com:
 * Split whiny skip function to create a new best-effort skip_lenient()
 * Correctly increment the top-level file position only for the top filter
 * Simulate skip by reading against the current filter, not the top filter

The latter two bugs aren't currently visible because no existing
filter delegates skip operations.

15 years agoStore the tx seq# of an 802.11 frame in the mbuf pkthdr; this will be
sam [Mon, 27 Apr 2009 17:39:41 +0000 (17:39 +0000)]
Store the tx seq# of an 802.11 frame in the mbuf pkthdr; this will be
used for s/w retransmit schemes that want to access this information
w/o the overhead of decoding the raw frame.  Note this also allows
drivers to record this information w/o writing the frame when the seq#
is obtained through an out-of-band mechanism (e.g. when a h/w assigned
seq# is reported in a descriptor on tx done notification).

Reviewed by: sephe, avatar

15 years agoOptimize packet flow: if net.inet.ip.fw.one_pass != 0 and packet was
oleg [Mon, 27 Apr 2009 17:37:36 +0000 (17:37 +0000)]
Optimize packet flow: if net.inet.ip.fw.one_pass != 0 and packet was
processed by ipfw once - avoid second ipfw_chk() call.
This saves us from unnecessary IPFW_RLOCK(), m_tag_find() calls and
ip/tcp/udp header parsing.

MFC after: 2 month

15 years agoigb_txeof also has a case where the watchdog may not
jfv [Mon, 27 Apr 2009 17:36:41 +0000 (17:36 +0000)]
igb_txeof also has a case where the watchdog may not
get reset when it should be

MFC after: 2 weeks

15 years ago- Always force AHCI mode on a ATI/AMD SB600/700/800 SATA controller. These
jkim [Mon, 27 Apr 2009 17:29:51 +0000 (17:29 +0000)]
- Always force AHCI mode on a ATI/AMD SB600/700/800 SATA controller.  These
controllers may be configured as legacy IDE mode by modifying subclass and
progif without actually changing PCI device IDs.  Instead of complicating
code, we always force AHCI mode while probing.  Also we restore AHCI mode
while resuming per ATI/AMD register programming/requirement guides.
- Fix SB700/800 "combined" mode.  Unlike SB600, this PATA controller can
combine two SATA ports and emulate one PATA channel as primary or secondary
depending on BIOS configuration.  When the combined mode is disabled, this
channel disappears and it works just like SB600 PATA controller, however.
- Add more PCI device IDs for SB700/800 and adjust device descriptions.
SB800 shares the same PCI device IDs and added two more SATA IDs.

15 years agoFix build: Make forgotten IFNET_MULTIQUEUE to IFNET_BUF_RING
gallatin [Mon, 27 Apr 2009 17:24:47 +0000 (17:24 +0000)]
Fix build:  Make forgotten IFNET_MULTIQUEUE to IFNET_BUF_RING
ifdef change.

15 years agoThanks for Michael Tuexen for tracking down a path where
jfv [Mon, 27 Apr 2009 17:22:14 +0000 (17:22 +0000)]
Thanks for Michael Tuexen for tracking down a path where
the watchdog timer was not being rearmed in txeof, and also
a missing case in the new code.

MFC after: 2 weeks

15 years agofix various build errors (missing or wrong return types for
luigi [Mon, 27 Apr 2009 16:57:19 +0000 (16:57 +0000)]
fix various build errors (missing or wrong return types for
various functions returning void, missing headers, and so on).

MFC after: 4 weeks (not before 7.3 is out, anyways)

15 years ago Change the semantics of i_modrev/va_filerev to what is required for
rmacklem [Mon, 27 Apr 2009 16:46:16 +0000 (16:46 +0000)]
  Change the semantics of i_modrev/va_filerev to what is required for
  the nfsv4 Change attribute. There are 2 changes:
  1 - The value now changes on metadata changes as well as data
      modifications (incremented for IN_CHANGE instead of IN_UPDATE).
  2 - It is now saved in spare space in the on-disk i-node so that it
      survives a crash.
  Since va_filerev is not passed out into user space, the only current
  use of va_filerev is in the nfs server, which uses it as the directory
  cookie verifier. Since this verifier is only passed back to the server
  by a client verbatim and then the server doesn't check it, changing the
  semantics should not break anything currently in FreeBSD.

Reviewed by: bde
Approved by: kib (mentor)

15 years agoStart to convert this over to the new tty layer. These changes allow
ambrisko [Mon, 27 Apr 2009 15:58:38 +0000 (15:58 +0000)]
Start to convert this over to the new tty layer.  These changes allow
this driver to compile and limp along with the new layer.  These changes
do not deal with proper locking around access to the HW.  This is only
a starting point.  I have not tested modem control but tip seems to work
okay and I can send and receive characters which I needed for one of my
-current boxes.  I have not tied this driver back up to the build since
I don't want people to think it is ready for prime time.  If anyone
else has some cycles to work on this feel free to!

Also add support for a 16 port PCI interface I have at work.

Glanced at by: ed

15 years agoUpdates to mxge for multiple tx/rx rings:
gallatin [Mon, 27 Apr 2009 15:45:54 +0000 (15:45 +0000)]
Updates to mxge for multiple tx/rx rings:

- Update mxge to use if_transmit(), and the new buf_ring
  interfaces, so as to enable multiple transmit queues.
  Use of if_transmit() is conditional on IFNET_BUF_RING,
  and is enabled by default (as in if_em).

- Record a flow id on receive if receive hashing is active.
  I currently only record the rx ring id (0..8) rather than
  the 32-bit topelitz hash result, as doing the latter would
  require shifting the driver to use a larger rx return ring.

Sponsored by:  Myricom, Inc.

15 years agoadd IEEE80211_FEXT_4ADDR to indicate ieee80211_encap should do 4-address
sam [Sun, 26 Apr 2009 23:11:22 +0000 (23:11 +0000)]
add IEEE80211_FEXT_4ADDR to indicate ieee80211_encap should do 4-address
encapsulation when relaying frames; this reduces the cost of the test and
enables use for situations other than "sta vap + dwds"

15 years agodon't depend on includes to get definitions of struct ieee80211_tx_ampdu
sam [Sun, 26 Apr 2009 23:04:35 +0000 (23:04 +0000)]
don't depend on includes to get definitions of struct ieee80211_tx_ampdu
and ieee80211_rx_ampdu; these should've been part of r191552

15 years agohoist ampdu tx aggregation setup from ieee80211_encap to ieee80211_start
sam [Sun, 26 Apr 2009 23:02:17 +0000 (23:02 +0000)]
hoist ampdu tx aggregation setup from ieee80211_encap to ieee80211_start
where it was meant all along (the code was in encap because ampdu was
implemented pre vaps)

15 years agoallow drivers to hook ampdu rx start/stop
sam [Sun, 26 Apr 2009 22:54:51 +0000 (22:54 +0000)]
allow drivers to hook ampdu rx start/stop

15 years agoimprovements:
sam [Sun, 26 Apr 2009 22:49:25 +0000 (22:49 +0000)]
improvements:
o formatting
o more rx ampdu state
o tdma state
o show ifnet names
o show auth policy name

15 years agostash the node pointer in the mbuf before doing ff aggregration so this
sam [Sun, 26 Apr 2009 22:45:21 +0000 (22:45 +0000)]
stash the node pointer in the mbuf before doing ff aggregration so this
is done in only one place

15 years agowhitespace
sam [Sun, 26 Apr 2009 22:44:23 +0000 (22:44 +0000)]
whitespace

15 years agoIn preparation for turning on options VIMAGE in next commits,
zec [Sun, 26 Apr 2009 22:06:42 +0000 (22:06 +0000)]
In preparation for turning on options VIMAGE in next commits,
rearrange / replace / adjust several INIT_VNET_* initializer
macros, all of which currently resolve to whitespace.

Reviewed by: bz (an older version of the patch)
Approved by: julian (mentor)

15 years agoprint both fc bytes when hitting a protocol version mismatch
sam [Sun, 26 Apr 2009 21:50:21 +0000 (21:50 +0000)]
print both fc bytes when hitting a protocol version mismatch

15 years agoadd iv_recv_ctl method to allow hooking rx ctl frame handling
sam [Sun, 26 Apr 2009 21:46:04 +0000 (21:46 +0000)]
add iv_recv_ctl method to allow hooking rx ctl frame handling

15 years agodon't fragment ampdu aggregates
sam [Sun, 26 Apr 2009 21:37:02 +0000 (21:37 +0000)]
don't fragment ampdu aggregates

15 years agouniformly mark mbufs that pass through the tx path with M_MCAST; drivers
sam [Sun, 26 Apr 2009 21:34:53 +0000 (21:34 +0000)]
uniformly mark mbufs that pass through the tx path with M_MCAST; drivers
can now use this flag instead of inspecting the contents

15 years agoEliminate an errant comment.
alc [Sun, 26 Apr 2009 21:24:50 +0000 (21:24 +0000)]
Eliminate an errant comment.

Discussed with: tegge

15 years agoo add missing 802.3 bpf tap
sam [Sun, 26 Apr 2009 21:21:48 +0000 (21:21 +0000)]
o add missing 802.3 bpf tap
o add 802.11 bpf tap to output path now that it's removed from ieee80211_encap

15 years agoadd missing DLT_IEEE802_11 tap
sam [Sun, 26 Apr 2009 21:21:07 +0000 (21:21 +0000)]
add missing DLT_IEEE802_11 tap

15 years agoadd missing part of r191537 that should have read: hoist DLT_IEEE802_11
sam [Sun, 26 Apr 2009 21:16:29 +0000 (21:16 +0000)]
add missing part of r191537 that should have read: hoist DLT_IEEE802_11
bpf tap from ieee80211_encap up to ieee80211_start

15 years agoImprove approximation of style(9).
rwatson [Sun, 26 Apr 2009 21:16:03 +0000 (21:16 +0000)]
Improve approximation of style(9).

15 years agofix comment
sam [Sun, 26 Apr 2009 21:13:18 +0000 (21:13 +0000)]
fix comment

15 years agoadd missing DLT_IEEE802_11 bpf tap in ieee80211_start
sam [Sun, 26 Apr 2009 21:12:19 +0000 (21:12 +0000)]
add missing DLT_IEEE802_11 bpf tap in ieee80211_start

15 years agofixup ieee80211_output handling:
sam [Sun, 26 Apr 2009 21:11:12 +0000 (21:11 +0000)]
fixup ieee80211_output handling:
o correct bpf handling, send 'em to the right tap
o do accouting
o mark mbufs holding multicast frames

15 years agoRemove the unused insque() and remque() functions.
ed [Sun, 26 Apr 2009 21:06:11 +0000 (21:06 +0000)]
Remove the unused insque() and remque() functions.

We have no code in the tree that uses these anymore. New code should
just use the regular queue(3) macros.

15 years agoo use shared code to handle bpf tap and mbuf cleanup
sam [Sun, 26 Apr 2009 21:03:29 +0000 (21:03 +0000)]
o use shared code to handle bpf tap and mbuf cleanup
o swap conditional order to put the cheapest first

15 years agoMake the SPX code use its own copies of insque()/remque().
ed [Sun, 26 Apr 2009 21:03:27 +0000 (21:03 +0000)]
Make the SPX code use its own copies of insque()/remque().

Instead of using the antique insque()/remque() functions from
sys/queue.h, make this code use its own versions. Eventually the code
should just use the regular TAILQ/LIST macros.

15 years agocorrect bssid reporting for wds vaps
sam [Sun, 26 Apr 2009 20:55:31 +0000 (20:55 +0000)]
correct bssid reporting for wds vaps

15 years agoEliminate an archaic band-aid. The immediately preceding comment already
alc [Sun, 26 Apr 2009 20:54:57 +0000 (20:54 +0000)]
Eliminate an archaic band-aid.  The immediately preceding comment already
explains why the band-aid is unnecessary.

Suggested by: tegge

15 years agoWhitespace (use tabs like for all other lines).
bz [Sun, 26 Apr 2009 19:15:19 +0000 (19:15 +0000)]
Whitespace (use tabs like for all other lines).

MFC after:  1 month

15 years agoAcquire IF_ADDR_LOCK() around most iterations over ifp->if_addrhead
rwatson [Sun, 26 Apr 2009 19:05:40 +0000 (19:05 +0000)]
Acquire IF_ADDR_LOCK() around most iterations over ifp->if_addrhead
(colloquially known as if_addrlist).  Currently not acquired around
interface address loops that call out to the routing code due to
potential lock order issues.

MFC after: 3 weeks

15 years agoReading an mtree file is supposed to provide
kientzle [Sun, 26 Apr 2009 18:57:50 +0000 (18:57 +0000)]
Reading an mtree file is supposed to provide
access to the file data (if the file exists on
disk).  This was broken for the first regular
file; fix it and add a test so it won't break again.

In particular, this fixes the following idiom for creating
a tar archive in which every file is owned by root:

tar cf - --format=mtree .  \
    | sed -e 's/uname=[a-z]*/uname=root/' -e 's/uid=[0-9]*/uid=0/' \
    | tar cf - @-

15 years agoVarious improvements to the tar.5 manpage, including
kientzle [Sun, 26 Apr 2009 18:46:40 +0000 (18:46 +0000)]
Various improvements to the tar.5 manpage, including
descriptions of the GNU tar "posix-style" sparse format,
clarification of the Solaris tar ACL storage,
and a few comments about Mac OS X tar's resource storage.

15 years agoExit with ARCHIVE_FATAL if the ISO image is truncated.
kientzle [Sun, 26 Apr 2009 18:43:49 +0000 (18:43 +0000)]
Exit with ARCHIVE_FATAL if the ISO image is truncated.

15 years agoRemove an unused variable.
kientzle [Sun, 26 Apr 2009 18:24:14 +0000 (18:24 +0000)]
Remove an unused variable.

Thanks to: Christoph Mallon

15 years agoFix typo.
trasz [Sun, 26 Apr 2009 10:12:20 +0000 (10:12 +0000)]
Fix typo.

15 years agoRemove even more empty directories.
ed [Sun, 26 Apr 2009 09:36:55 +0000 (09:36 +0000)]
Remove even more empty directories.

I just used `hidesvn find . -type d -empty' to figure out which
directories are empty. This means I couldn't easily figure out which
directories only contained empty subdirectories.

15 years agoRemove empty directories from the HEAD.
ed [Sun, 26 Apr 2009 09:31:58 +0000 (09:31 +0000)]
Remove empty directories from the HEAD.

Discussed with: developers, imp

15 years agoRemove unneeded device index from unit number.
ed [Sun, 26 Apr 2009 09:21:37 +0000 (09:21 +0000)]
Remove unneeded device index from unit number.

We only use the unit number to determine whether we should rewind the
device upon closure.

15 years agoBump copyright year;
blackend [Sun, 26 Apr 2009 07:16:01 +0000 (07:16 +0000)]
Bump copyright year;
Add missing colon and fix broken entity.

15 years agoIn preparation to make options VIMAGE operational, where needed,
zec [Sun, 26 Apr 2009 07:14:50 +0000 (07:14 +0000)]
In preparation to make options VIMAGE operational, where needed,
initialize / release netgraph related state in iattach() / idetach()
functions called via the vnet module registration / initialization
framework, instead of initialization / cleanups being done in
mod_event handlers.

While here, introduce a crude hack aimed at preventing ng_ether to
autoattach to ng_eiface ifnets, which are also netgraph nodes already.

Reviewed by: bz
Approved by: julian (mentor)

15 years agoUnbreak the build of relnotes.
blackend [Sun, 26 Apr 2009 07:12:04 +0000 (07:12 +0000)]
Unbreak the build of relnotes.

15 years agoExtend the vnet module registration / initialization framework
zec [Sun, 26 Apr 2009 07:09:39 +0000 (07:09 +0000)]
Extend the vnet module registration / initialization framework
first introduced @ r190909 with a vnet module deregistration
service.

kldunloadable modules, which are currently using vnet_mod_register()
to attach their per-vnet initialization routines to the vnet
initialization framework, should call vnet_mod_deregister() before
acknowledging MOD_UNLOAD requests in their mod_event handlers.  Such
changes to the existing code base will follow in subsequent commits.

vnet_mod_deregister() does not check whether departing vnet modules
are registered as prerequisites for another module(s), so it should
be used with care.  Currently I'm only aware of vnet modules which
are leafs on module dependency graphs that are kldunloadable.

This change also introduces per-vnet module destructor handler, which
calls vnet's module cleanup function, which (if required) has to be
registered in vnet module's vnet_modinfo_t structure .vmi_idetach
field.  Once options VIMAGE becomes operational, the framework will
take care that module's cleanup function become invoked for each
active vnet instance, and that the memory allocated for each instance
gets freed.  Currently calls to destructor handlers must always
succeed.

15 years agoExpand coverage of IF_ADDR_LOCK() in in_control() from point of initial
rwatson [Sat, 25 Apr 2009 23:02:57 +0000 (23:02 +0000)]
Expand coverage of IF_ADDR_LOCK() in in_control() from point of initial
lookup of 'ia' from if_addrhead through most use.  Note that we
currently have to drop it prematurely in some cases due to calls out to
the routing and interface code while using 'ia', but this closes many
races.  Annotate several potential races that persist after this change.
Move to using M_NOWAIT for allocating new interface addresses due to
lock(s) being held.

MFC after: 3 weeks

15 years agoMake the state string descriptions public.
thompsa [Sat, 25 Apr 2009 21:25:52 +0000 (21:25 +0000)]
Make the state string descriptions public.

15 years agoTrack the usb device state as its powered on, addressed and configured. This helps
thompsa [Sat, 25 Apr 2009 21:10:06 +0000 (21:10 +0000)]
Track the usb device state as its powered on, addressed and configured. This helps
to avoid touching the device when it is not going to respond and would otherwise
timeout.

Implement the suspend tracking as a udev state too.

15 years agos/it's/it is/
marius [Sat, 25 Apr 2009 20:36:50 +0000 (20:36 +0000)]
s/it's/it is/

15 years agoSync the sparc64 hardware notes with reality, mainly regarding support
marius [Sat, 25 Apr 2009 20:31:47 +0000 (20:31 +0000)]
Sync the sparc64 hardware notes with reality, mainly regarding support
of sun4u-machines based on USIII and beyond in 7.2-RELEASE.

Reviewed by: blackend
MFC after: 3 days

15 years agoRemove udp and tcp includes not needed here.
bz [Sat, 25 Apr 2009 19:14:22 +0000 (19:14 +0000)]
Remove udp and tcp includes not needed here.

Tripped over by: a compile of an upcoming change
MFC after: 1 month

15 years agoTurn MAXPTSDEVS into a sysctl tunable.
ed [Sat, 25 Apr 2009 10:05:55 +0000 (10:05 +0000)]
Turn MAXPTSDEVS into a sysctl tunable.

This allows users to increase the maximum amount of pseudo-terminals
without changing any source code. Users must increase UT_LINESIZE before
attempting to increase kern.pts_maxdev.

15 years agoEliminate unnecessary calls to pmap_clear_modify(). Specifically, calling
alc [Sat, 25 Apr 2009 02:59:06 +0000 (02:59 +0000)]
Eliminate unnecessary calls to pmap_clear_modify().  Specifically, calling
pmap_clear_modify() on a page is pointless if that page is not mapped or
it is only mapped for read access.  Instead, assert that the page is not
mapped or not mapped for write access as appropriate.

Eliminate unnecessary clearing of a page's dirty mask.  Instead, assert
that the page's dirty mask is clear.

15 years agoRemove ghost xntpd directory.
ed [Sat, 25 Apr 2009 00:04:36 +0000 (00:04 +0000)]
Remove ghost xntpd directory.

15 years agoIn in_purgemaddrs(), remove the inm being freed from the address list
rwatson [Fri, 24 Apr 2009 22:11:53 +0000 (22:11 +0000)]
In in_purgemaddrs(), remove the inm being freed from the address list
before freeing it, rather than vice version, to avoid potential use
after free.

Reviewed by: bms

15 years agoAdd Surecom EP-427X.
imp [Fri, 24 Apr 2009 17:28:12 +0000 (17:28 +0000)]
Add Surecom EP-427X.

15 years agoAnother PC Card that needs the CIS strings for the Surecom EP-427X,
imp [Fri, 24 Apr 2009 17:27:45 +0000 (17:27 +0000)]
Another PC Card that needs the CIS strings for the Surecom EP-427X,
which really is just a rebadged OEM card...  Plus a tiny whitespace
nit.

15 years agoSome minor formatting changes to make new text match old style.
delphij [Fri, 24 Apr 2009 15:38:13 +0000 (15:38 +0000)]
Some minor formatting changes to make new text match old style.

15 years ago- Add a single line separating two 20090415 entries
garga [Fri, 24 Apr 2009 11:34:59 +0000 (11:34 +0000)]
- Add a single line separating two 20090415 entries

Approved by: brueffer

15 years agoAdd UPDATING note about change to struct malloc_type -- following several
rwatson [Fri, 24 Apr 2009 09:58:50 +0000 (09:58 +0000)]
Add UPDATING note about change to struct malloc_type -- following several
reports of panics, remind readers that rebuilding kernel modules between
kernel upgrades in HEAD is a good idea.

15 years agoRelocate permissions checking code in in_control() to before the body
rwatson [Fri, 24 Apr 2009 09:54:46 +0000 (09:54 +0000)]
Relocate permissions checking code in in_control() to before the body
of the implementation of ioctls.  This makes the mapping of ioctls to
specific privileges more explicit, and also simplifies the
implementation by reducing the use of FALLTHROUGH handling in switch.

While this is not intended to be a functional change, it does mean
that certain privilege checks are now performed earlier, so EPERM
might be returned in preference to EADDRNOTAVAIL for management
ioctls that could have failed for both reasons.

MFC after: 3 weeks