]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agosetup turboA/G fixed rate parameters too; this is needed, in particular,
sam [Mon, 13 Apr 2009 20:53:12 +0000 (20:53 +0000)]
setup turboA/G fixed rate parameters too; this is needed, in particular,
for turboG operation

15 years agocorrect debug printf
sam [Mon, 13 Apr 2009 20:50:51 +0000 (20:50 +0000)]
correct debug printf

15 years agocheck correct address for a bssid mtch
sam [Mon, 13 Apr 2009 20:50:07 +0000 (20:50 +0000)]
check correct address for a bssid mtch

15 years agofix txparms setup for 108G sta's: ieee80211_iserp_rateset does not
sam [Mon, 13 Apr 2009 20:45:29 +0000 (20:45 +0000)]
fix txparms setup for 108G sta's: ieee80211_iserp_rateset does not
identify a station operating in turbo-boost mode because it has a
pure ofdm rate set; add an explicit check for the channel type
instead of depending on IEEE80211_NODE_ERP being set

15 years agoRemove trailing spaces
kib [Mon, 13 Apr 2009 19:54:33 +0000 (19:54 +0000)]
Remove trailing spaces

15 years agoFix whitespace.
marius [Mon, 13 Apr 2009 19:43:37 +0000 (19:43 +0000)]
Fix whitespace.

15 years agoThe bus_dmamap_load_uio(9) shall use pmap of the thread recorded in the
kib [Mon, 13 Apr 2009 19:20:32 +0000 (19:20 +0000)]
The bus_dmamap_load_uio(9) shall use pmap of the thread recorded in the
uio_td to extract pages from, instead of unconditionally use kernel
pmap.

Submitted by: Jason Harmening <jason.harmening gmail com> (amd64 version)
PR: amd64/133592
Reviewed by: scottl (original patch), jhb
MFC after: 2 weeks

15 years agoAdd a test for r191009.
stefanf [Mon, 13 Apr 2009 19:12:28 +0000 (19:12 +0000)]
Add a test for r191009.

15 years agoParse 'cmd1 && ! cmd2 | cmd3' correctly, the bang should apply to the entire
stefanf [Mon, 13 Apr 2009 19:10:56 +0000 (19:10 +0000)]
Parse 'cmd1 && ! cmd2 | cmd3' correctly, the bang should apply to the entire
pipeline cmd2 | cmd3 and not just cmd2.

PR: 130298
Submitted by: Jilles Tjoelker

15 years agoRe-enable backing up extended attributes, as the ZFS bug this
kientzle [Mon, 13 Apr 2009 18:56:53 +0000 (18:56 +0000)]
Re-enable backing up extended attributes, as the ZFS bug this
triggered seems to have been fixed by John Baldwin's commit
r189967.

15 years agoSort man page cross references by section, no need for a comma after the
rwatson [Mon, 13 Apr 2009 18:32:26 +0000 (18:32 +0000)]
Sort man page cross references by section, no need for a comma after the
last cross reference.

MFC after: 3 days

15 years agoIn case the peer address was already configured on the interface
bz [Mon, 13 Apr 2009 17:57:12 +0000 (17:57 +0000)]
In case the peer address was already configured on the interface
we were not properly handling proxy arp. Make sure we (try to) add
the proxy arp entry/entries in this case as well.

PR: bin/131250
Submitted by: loos.br gmail.com (Luiz Otavio O Souza)
MFC after: 3 days

15 years agoDon't exit until all truss children were exit.
delphij [Mon, 13 Apr 2009 16:23:32 +0000 (16:23 +0000)]
Don't exit until all truss children were exit.

15 years agoCorrect a bug where pr_data should have been assigned.
delphij [Mon, 13 Apr 2009 16:22:38 +0000 (16:22 +0000)]
Correct a bug where pr_data should have been assigned.

15 years agoAdd reference to strmode(3).
trasz [Mon, 13 Apr 2009 15:29:14 +0000 (15:29 +0000)]
Add reference to strmode(3).

15 years agoAdd a few more regression tests for POSIX.1e ACLs.
trasz [Mon, 13 Apr 2009 13:51:53 +0000 (13:51 +0000)]
Add a few more regression tests for POSIX.1e ACLs.

15 years agoMFV of tzdata2009e
edwin [Mon, 13 Apr 2009 09:17:40 +0000 (09:17 +0000)]
MFV of tzdata2009e

- Jordan went into DST in the last Thursday in March instead of the
  last Friday in March.
- Palestine has extended the DST time with one week before and one
  month after.

MFC after: 1 week

15 years agoMake UMTX_OP_WAIT_UINT actually wait for an unsigned integer on 64-bits
davidxu [Mon, 13 Apr 2009 05:21:17 +0000 (05:21 +0000)]
Make UMTX_OP_WAIT_UINT actually wait for an unsigned integer on 64-bits
machine.

MFC after: 1 week

15 years agoremove reference to sc_tdmabintcnt; it was removed in r190848
sam [Mon, 13 Apr 2009 03:20:21 +0000 (03:20 +0000)]
remove reference to sc_tdmabintcnt; it was removed in r190848

15 years agoDon't blindly set IP packet length from interface MTU in TSO case.
yongari [Mon, 13 Apr 2009 00:32:34 +0000 (00:32 +0000)]
Don't blindly set IP packet length from interface MTU in TSO case.
Remote host can advertise smaller MSS than that of sender so upper
stack might have adjusted the MSS which in turn generates IP
packets that are less size than that of interface MTU.

Reported by: Bjoern Koenig ( bkoenig <> alpha-tierchen dot de )
Tested by: Bjoern Koenig ( bkoenig <> alpha-tierchen dot de )
MFC after: 3 days

15 years agoPut TCPSTAT_ADD() and TCPSTAT_INC() behind _KERNEL.
rwatson [Sun, 12 Apr 2009 21:28:35 +0000 (21:28 +0000)]
Put TCPSTAT_ADD() and TCPSTAT_INC() behind _KERNEL.

MFC after: 3 days

15 years ago- Add myself to the ports committers' graph
pgj [Sun, 12 Apr 2009 21:06:11 +0000 (21:06 +0000)]
- Add myself to the ports committers' graph

Approved by: gabor (mentor)

15 years agoAdd entry about kbdmux(4) un-locking.
emax [Sun, 12 Apr 2009 19:42:25 +0000 (19:42 +0000)]
Add entry about kbdmux(4) un-locking.

15 years ago Change nfsserver so that it uses the nfssvc() system call provided
rmacklem [Sun, 12 Apr 2009 19:04:27 +0000 (19:04 +0000)]
Change nfsserver so that it uses the nfssvc() system call provided
in sys/nfs/nfs_nfssvc.c by registering with it using the
nfsd_call_nfsserver function pointer. Also, add the build glue for
nfs_nfssvc.c optionally based on "nfsserver" and also as a loadable
module.

Submitted by: rmacklem
Reviewed by: kib
Approved by: kib (mentor)

15 years agoUpdate stats in struct carpstats using two new macros: CARPSTATS_ADD()
rwatson [Sun, 12 Apr 2009 14:19:37 +0000 (14:19 +0000)]
Update stats in struct carpstats using two new macros: CARPSTATS_ADD()
and CARPSTATS_INC(), rather than directly manipulating the fields of
the structure.  This will make it easier to change the implementation
of these statistics, such as using per-CPU versions of the data
structure.

MFC after: 3 days

15 years agoUpdate stats in struct pimstat using two new macros: PIMSTAT_ADD()
rwatson [Sun, 12 Apr 2009 14:06:26 +0000 (14:06 +0000)]
Update stats in struct pimstat using two new macros: PIMSTAT_ADD()
and PIMSTAT_INC(), rather than directly manipulating the fields of
the structure.  This will make it easier to change the
implementation of these statistics, such as using per-CPU versions
of the data structure.

MFC after: 3 days

15 years agoUpdate stats in struct mrtstat using two new macros: MRTSTAT_ADD()
rwatson [Sun, 12 Apr 2009 14:00:36 +0000 (14:00 +0000)]
Update stats in struct mrtstat using two new macros: MRTSTAT_ADD()
and MRTSTAT_INC(), rather than directly manipulating the fields of
the structure.  This will make it easier to change the
implementation of these statistics, such as using per-CPU versions
of the data structure.

MFC after: 3 days

15 years agoUpdate stats in struct igmpstat using two new macros:
rwatson [Sun, 12 Apr 2009 13:41:13 +0000 (13:41 +0000)]
Update stats in struct igmpstat using two new macros:
IGMPSTAT_ADD() and IGMPSTAT_INC(), rather than directly
manipulating the fields of the structure.  This will make it
easier to change the implementation of these statistics,
such as using per-CPU versions of the data structures.

MFC after: 3 days

15 years agoUpdate stats in struct icmpstat and icmp6stat using four new
rwatson [Sun, 12 Apr 2009 13:22:33 +0000 (13:22 +0000)]
Update stats in struct icmpstat and icmp6stat using four new
macros: ICMPSTAT_ADD(), ICMPSTAT_INC(), ICMP6STAT_ADD(), and
ICMP6STAT_INC(), rather than directly manipulating the fields
of these structures across the kernel.  This will make it
easier to change the implementation of these statistics,
such as using per-CPU versions of the data structures.

In on case, icmp6stat members are manipulated indirectly, by
icmp6_errcount(), and this will require further work to fix
for per-CPU stats.

MFC after: 3 days

15 years agoCommit file omitted in r190962:
rwatson [Sun, 12 Apr 2009 11:53:12 +0000 (11:53 +0000)]
Commit file omitted in r190962:

Update stats in struct udpstat using two new macros, UDPSTAT_ADD()
and UDPSTAT_INC(), rather than directly manipulating the fields
across the kernel.  This will make it easier to change the
implementation of these statistics, such as using per-CPU versions
of the data structures.

MFC after:    3 days

15 years agoUpdate stats in struct udpstat using two new macros, UDPSTAT_ADD()
rwatson [Sun, 12 Apr 2009 11:42:40 +0000 (11:42 +0000)]
Update stats in struct udpstat using two new macros, UDPSTAT_ADD()
and UDPSTAT_INC(), rather than directly manipulating the fields
across the kernel.  This will make it easier to change the
implementation of these statistics, such as using per-CPU versions
of the data structures.

MFC after: 3 days

15 years agoMerge from libarchive.googlecode.com r791, r879, r884, r948: Various
kientzle [Sun, 12 Apr 2009 05:47:23 +0000 (05:47 +0000)]
Merge from libarchive.googlecode.com r791, r879, r884, r948: Various
fixes to read_support_compression_program.  In particular, failure of
the external program is detected a lot earlier, which gives much more
reasonable error handling.

15 years agoThanks to Christoph Mallon for pointing out the dead variable here.
kientzle [Sun, 12 Apr 2009 05:38:35 +0000 (05:38 +0000)]
Thanks to Christoph Mallon for pointing out the dead variable here.
Also, rework this a little to make the logic excruciatingly clear.

15 years agoMerge from libarchive.googlecode.com: Mostly a bunch of
kientzle [Sun, 12 Apr 2009 05:33:34 +0000 (05:33 +0000)]
Merge from libarchive.googlecode.com:  Mostly a bunch of
corrections to the Windows support to reconcile differences
between Visual Studio and Cygwin.  Includes parts of
revisions 757, 774, 787, 815, 817, 819, 820, 844, and 886.

Of particular note, r886 overhauled the UTF-8/Unicode conversions to
work correctly regardless of whether the local system uses 16-bit
or 32-bit wchar_t.  (I assume that systems with 16-bit wchar_t
use UTF-16 and those with 32-bit wchar_t use UCS-4.)  This revision
also added a preference for wcrtomb() (which is thread-safe) on
platforms that support it.

15 years agosendfile doesn't modify the vnode - acquire vnode lock shared
kmacy [Sun, 12 Apr 2009 05:19:35 +0000 (05:19 +0000)]
sendfile doesn't modify the vnode - acquire vnode lock shared

Reviewed by: ups, jeffr

15 years agoMerge from libarchive.googlecode.com r756,r761:
kientzle [Sun, 12 Apr 2009 05:04:02 +0000 (05:04 +0000)]
Merge from libarchive.googlecode.com r756,r761:
Document the new archive_read_disk API.

15 years agoMerge from libarchive.googlecode.com:
kientzle [Sun, 12 Apr 2009 04:59:11 +0000 (04:59 +0000)]
Merge from libarchive.googlecode.com:
r751: Change __archive_strncat() to use a void * source, which reduces
the amount of casting needed to use this with "char", "signed char"
and "unsigned char".
r752: Use additions instead of multiplications when growing buffer;
faster and less chance of overflow.

15 years agoMerge r881 from libarchive.googlecode.com: The "empty" format
kientzle [Sun, 12 Apr 2009 04:45:40 +0000 (04:45 +0000)]
Merge r881 from libarchive.googlecode.com:  The "empty" format
should not be recognized if there is a read error.

15 years agoRework the way we get the cacheline size. Instead of having a table of
nwhitehorn [Sun, 12 Apr 2009 03:03:55 +0000 (03:03 +0000)]
Rework the way we get the cacheline size. Instead of having a table of
CPUs known to use 128 byte cache lines and defaulting to 32, use the dcbz
instruction to measure it. Also make dcbz behave the way you would
expect on PPC 970.

15 years agoUpdate stats in struct ipstat using four new macros, IPSTAT_ADD(),
rwatson [Sat, 11 Apr 2009 23:35:20 +0000 (23:35 +0000)]
Update stats in struct ipstat using four new macros, IPSTAT_ADD(),
IPSTAT_INC(), IPSTAT_SUB(), and IPSTAT_DEC(), rather than directly
manipulating the fields across the kernel.  This will make it easier
to change the implementation of these statistics, such as using
per-CPU versions of the data structures.

MFC after: 3 days

15 years agoAny tar program should work here; the explicit
kientzle [Sat, 11 Apr 2009 22:39:38 +0000 (22:39 +0000)]
Any tar program should work here; the explicit
reference to bsdtar is misleading.

15 years agoRemove execute permission from the memory allocated by sbrk().
alc [Sat, 11 Apr 2009 22:34:08 +0000 (22:34 +0000)]
Remove execute permission from the memory allocated by sbrk().

Pre-announced on: -arch (3/31/09)
Discussed with: rwatson
Tested by: marius (sparc64)

15 years agoUpdate stats in struct tcpstat using two new macros, TCPSTAT_ADD() and
rwatson [Sat, 11 Apr 2009 22:07:19 +0000 (22:07 +0000)]
Update stats in struct tcpstat using two new macros, TCPSTAT_ADD() and
TCPSTAT_INC(), rather than directly manipulating the fields across the
kernel.  This will make it easier to change the implementation of
these statistics, such as using per-CPU versions of the data structures.

MFC after: 3 days

15 years agoRemove conditionally compiled time counter statistics; tools like
rwatson [Sat, 11 Apr 2009 22:01:40 +0000 (22:01 +0000)]
Remove conditionally compiled time counter statistics; tools like
DTrace, kernel profiling, etc, can provide this information without
the overhead.

MFC after: 3 days
Suggested by: bde

15 years agoFix recognition of kernel-mode traps that pass through the KDB trap handler
nwhitehorn [Sat, 11 Apr 2009 20:43:41 +0000 (20:43 +0000)]
Fix recognition of kernel-mode traps that pass through the KDB trap handler
but do not actually invoke KDB. This includes recoverable machine checks
encountered in kernel mode.

This patch causes machines with Grackle host-PCI bridges to be able to
correctly enumerate them again.

MFC after: 3 days

15 years agoFix v_cache_dd handling for negative entries. v_cache_dd pointer was
kan [Sat, 11 Apr 2009 20:23:08 +0000 (20:23 +0000)]
Fix v_cache_dd handling for negative entries. v_cache_dd pointer was
not populated in parent directory if negative entry was being
created, yet entry itself was added to the nc_neg list. It was
possible for parent vnode to get discarded later, leaving negative
entry pointing to now unused memory block.

Reported by: dho
Revewed by: kib

15 years agoRevert previous commit that commented out some bpf functions.
rpaulo [Sat, 11 Apr 2009 17:36:11 +0000 (17:36 +0000)]
Revert previous commit that commented out some bpf functions.
Unconstify arguments of bpf_image(), bpf_filter() and bpf_dump(). This
is needed because some ports rely heavely on these arguments (some of
them even roll out their own implemenentations of bpf_dump).

15 years agoGNU Pth has some fragile kludges that were broken by r189828.
das [Sat, 11 Apr 2009 16:57:50 +0000 (16:57 +0000)]
GNU Pth has some fragile kludges that were broken by r189828.
I've discussed this with the Pth maintainer and no clear solution
has emerged on the ports side of things, so for now, hack around
the issue in signal.h.

15 years agoWhen zapping v_cache_dd for !MAKEENTRY case in cache_lookup(), we shall
kib [Sat, 11 Apr 2009 16:12:20 +0000 (16:12 +0000)]
When zapping v_cache_dd for !MAKEENTRY case in cache_lookup(), we shall
lock cache as writer.

Reviewed by: kan

15 years agoWhat's the point of adjusting a checksum if we are going to toss the
piso [Sat, 11 Apr 2009 15:26:31 +0000 (15:26 +0000)]
What's the point of adjusting a checksum if we are going to toss the
packet? Anticipate the check/return code.

15 years agoPlug two bugs introduced with modules conversion:
piso [Sat, 11 Apr 2009 15:19:09 +0000 (15:19 +0000)]
Plug two bugs introduced with modules conversion:

-UdpAliasIn(): correctly check return code after modules ran.
-alias_nbt: in case of malformed packets (or some other unrecoverable
 error), toss the packet.

15 years agoStyle fixes to the newfs_msdos manpage.
ed [Sat, 11 Apr 2009 15:07:27 +0000 (15:07 +0000)]
Style fixes to the newfs_msdos manpage.

Submitted by: Christoph Mallon <christoph mallon gmx de>

15 years agoRemove stale comments.
piso [Sat, 11 Apr 2009 15:05:19 +0000 (15:05 +0000)]
Remove stale comments.

15 years agoUpdate documentation (forgotten in r190929).
ed [Sat, 11 Apr 2009 15:03:44 +0000 (15:03 +0000)]
Update documentation (forgotten in r190929).

Submitted by: Christoph Mallon <christoph mallon gmx de>

15 years agoDo not prepend /dev/ when -C is used.
ed [Sat, 11 Apr 2009 14:56:29 +0000 (14:56 +0000)]
Do not prepend /dev/ when -C is used.

Submitted by: Christoph Mallon <christoph mallon gmx de>

15 years agoWhen using -C, do not warn when the file is not a character device, but warn when...
ed [Sat, 11 Apr 2009 14:53:32 +0000 (14:53 +0000)]
When using -C, do not warn when the file is not a character device, but warn when it is not a regular file.

Submitted by: Christoph Mallon <christoph mallon gmx de>

15 years agoFix a bug in r185587.
ed [Sat, 11 Apr 2009 14:43:22 +0000 (14:43 +0000)]
Fix a bug in r185587.

fstat(fd, &sb) was not executed unconditionally anymore so sb was read
uninitialised when -C is used.

Submitted by: Christoph Mallon <christoph mallon gmx de>

15 years agoUse ftruncate() instead of lseek()+write()+lseek() to set the created
ed [Sat, 11 Apr 2009 14:33:10 +0000 (14:33 +0000)]
Use ftruncate() instead of lseek()+write()+lseek() to set the created
file (-C) to the requested size.

Submitted by: Christoph Mallon <christoph mallon gmx de>

15 years agoMFi386: revision 190919
nyan [Sat, 11 Apr 2009 14:25:47 +0000 (14:25 +0000)]
MFi386: revision 190919

  Simplify in/out functions.

  Remove a hack to generate more efficient code for port numbers below
  0x100, which has been obsolete for at least ten years, because GCC has
  an asm constraint to specify that.

15 years agoDe-static local variables in main() (which is not recursive) and const-ify
ed [Sat, 11 Apr 2009 14:24:54 +0000 (14:24 +0000)]
De-static local variables in main() (which is not recursive) and const-ify
others.

Submitted by: Christoph Mallon <christoph mallon gmx de>

15 years agoShow -@ and -C in usage, which were added in r185587.
ed [Sat, 11 Apr 2009 14:20:45 +0000 (14:20 +0000)]
Show -@ and -C in usage, which were added in r185587.

Submitted by: Christoph Mallon <christoph mallon gmx de>

15 years agoClean up the usage() function to use a single fprintf().
ed [Sat, 11 Apr 2009 14:15:56 +0000 (14:15 +0000)]
Clean up the usage() function to use a single fprintf().

Submitted by: Christoph Mallon <christoph mallon gmx de>

15 years agoSimplify in/out functions (for i386 and AMD64).
ed [Sat, 11 Apr 2009 14:01:01 +0000 (14:01 +0000)]
Simplify in/out functions (for i386 and AMD64).

Remove a hack to generate more efficient code for port numbers below
0x100, which has been obsolete for at least ten years, because GCC has
an asm constraint to specify that.

Submitted by: Christoph Mallon <christoph mallon gmx de>

15 years agoRemove 'IMPLEMENTATION NOTES' section from acl(9); it was just a copy/paste
trasz [Sat, 11 Apr 2009 10:37:04 +0000 (10:37 +0000)]
Remove 'IMPLEMENTATION NOTES' section from acl(9); it was just a copy/paste
from <sys/acl.h> and it would get out-of-date pretty soon.

15 years agoBump __FreeBSD_version to 800077 for the removal of VOP_LEASE -- this
rwatson [Sat, 11 Apr 2009 10:10:45 +0000 (10:10 +0000)]
Bump __FreeBSD_version to 800077 for the removal of VOP_LEASE -- this
changes the size of the vop_vector array and therefore requires file
system modules to be rebuilt.

15 years agoFix broken case where caused by last patch where
rrs [Sat, 11 Apr 2009 10:08:26 +0000 (10:08 +0000)]
Fix broken case where caused by last patch where
a user uses 0.0.0.0/0 as an alias for default.
Obtained from: Mykola Dzham (freebsd@levsha.org.ua)

15 years agoPreviously, when vm_page_free_toq() was performed on a page belonging to
alc [Sat, 11 Apr 2009 09:09:00 +0000 (09:09 +0000)]
Previously, when vm_page_free_toq() was performed on a page belonging to
a reservation, unless all of the reservation's pages were free, the
reservation was moved to the head of the partially-populated reservations
queue, where it would be the next reservation to be broken in case the
free page queues were emptied.  Now, instead, I am moving it to the tail.
Very likely this reservation is in the process of being freed in its
entirety, so placing it at the tail of the queue makes it more likely that
the underlying physical memory will be returned to the free page queues as
one contiguous chunk.  If a reservation must be broken, it will, instead,
be the longest unchanged reservation, which is arguably the reservation
that is least likely to ever achieve promotion or be freed in its entirety.

MFC after: 6 weeks

15 years agoKill hard sentence break added in the previous revision.
trhodes [Sat, 11 Apr 2009 08:52:02 +0000 (08:52 +0000)]
Kill hard sentence break added in the previous revision.

15 years agoBump doc date for previous changes.
trhodes [Sat, 11 Apr 2009 08:49:15 +0000 (08:49 +0000)]
Bump doc date for previous changes.

15 years agoIntroduce vnet module registration / initialization framework with
zec [Sat, 11 Apr 2009 05:58:58 +0000 (05:58 +0000)]
Introduce vnet module registration / initialization framework with
dependency tracking and ordering enforcement.

With this change, per-vnet initialization functions introduced with
r190787 are no longer directly called from traditional initialization
functions (which cc in most cases inlined to pre-r190787 code), but are
instead registered via the vnet framework first, and are invoked only
after all prerequisite modules have been initialized.  In the long run,
this framework should allow us to both initialize and dismantle
multiple vnet instances in a correct order.

The problem this change aims to solve is how to replay the
initialization sequence of various network stack components, which
have been traditionally triggered via different mechanisms (SYSINIT,
protosw).  Note that this initialization sequence was and still can be
subtly different depending on whether certain pieces of code have been
statically compiled into the kernel, loaded as modules by boot
loader, or kldloaded at run time.

The approach is simple - we record the initialization sequence
established by the traditional mechanisms whenever vnet_mod_register()
is called for a particular vnet module.  The vnet_mod_register_multi()
variant allows a single initializer function to be registered multiple
times but with different arguments - currently this is only used in
kern/uipc_domain.c by net_add_domain() with different struct domain *
as arguments, which allows for protosw-registered initialization
routines to be invoked in a correct order by the new vnet
initialization framework.

For the purpose of identifying vnet modules, each vnet module has to
have a unique ID, which is statically assigned in sys/vimage.h.
Dynamic assignment of vnet module IDs is not supported yet.

A vnet module may specify a single prerequisite module at registration
time by filling in the vmi_dependson field of its vnet_modinfo struct
with the ID of the module it depends on.  Unless specified otherwise,
all vnet modules depend on VNET_MOD_NET (container for ifnet list head,
rt_tables etc.), which thus has to and will always be initialized
first.  The framework will panic if it detects any unresolved
dependencies before completing system initialization.  Detection of
unresolved dependencies for vnet modules registered after boot
(kldloaded modules) is not provided.

Note that the fact that each module can specify only a single
prerequisite may become problematic in the long run.  In particular,
INET6 depends on INET being already instantiated, due to TCP / UDP
structures residing in INET container.  IPSEC also depends on INET,
which will in turn additionally complicate making INET6-only kernel
configs a reality.

The entire registration framework can be compiled out by turning on the
VIMAGE_GLOBALS kernel config option.

Reviewed by: bz
Approved by: julian (mentor)

15 years agoTwo refinements to the 3c1 support:
imp [Sat, 11 Apr 2009 04:30:38 +0000 (04:30 +0000)]
Two refinements to the 3c1 support:
1) Flag it and only access that command on the 3c1
2) The TX PLL appears to power down when not in use, so we have to power
   it back up when we've been idle.  Do this at the start of ifstart.
   Otherwise we fall off the net.

15 years agoo Report ethernet status for at least 10BaseT media. Since I don't
imp [Sat, 11 Apr 2009 02:47:03 +0000 (02:47 +0000)]
o Report ethernet status for at least 10BaseT media.  Since I don't
  have other media to test against, I've left that media reporting
  unchanged.
o Enable the TX_PLL when we enable TX.  This is harmless on most
  cards, but required to get the 3c1 CF card working.  Power savings
  could be had by managing this better, but for now it gets my card
  working.

15 years ago- fix my previous commit (added missing .gz)
danger [Fri, 10 Apr 2009 22:15:01 +0000 (22:15 +0000)]
- fix my previous commit (added missing .gz)

Submitted by: brueffer

15 years agoAdded DT_GNU_HASH entry for GNU-style hash table.
kaiw [Fri, 10 Apr 2009 21:24:18 +0000 (21:24 +0000)]
Added DT_GNU_HASH entry for GNU-style hash table.

15 years agoFollow up for r190895 It's not only the "all" group that is affected, but
mlaier [Fri, 10 Apr 2009 19:16:14 +0000 (19:16 +0000)]
Follow up for r190895  It's not only the "all" group that is affected, but
all groups on the given interface.

PR: kern/130977, kern/131310
MFC after: 3 days (%vnet)

15 years agoDon't specify a hint, since it isn't needed.
imp [Fri, 10 Apr 2009 18:46:46 +0000 (18:46 +0000)]
Don't specify a hint, since it isn't needed.

15 years agoFix comment
imp [Fri, 10 Apr 2009 17:34:30 +0000 (17:34 +0000)]
Fix comment

Submitted by: danfe@

15 years agoImprovements for TC5299J MII support.
imp [Fri, 10 Apr 2009 16:12:00 +0000 (16:12 +0000)]
Improvements for TC5299J MII support.

15 years agoThe D-Link DE-650 isn't tagged as a network card, so allow it to
imp [Fri, 10 Apr 2009 15:33:47 +0000 (15:33 +0000)]
The D-Link DE-650 isn't tagged as a network card, so allow it to
attach anyway.
Add a comment about a 'common' mfg/prod pair that's used in a very
large array of different cards.

15 years agoFix some comments.
imp [Fri, 10 Apr 2009 15:30:19 +0000 (15:30 +0000)]
Fix some comments.

15 years agoNo need to check for chip type here.
imp [Fri, 10 Apr 2009 15:18:03 +0000 (15:18 +0000)]
No need to check for chip type here.

15 years agoUpdates based on my testing of the cards.
imp [Fri, 10 Apr 2009 15:01:48 +0000 (15:01 +0000)]
Updates based on my testing of the cards.

15 years agoRemove interfaces from IFG_ALL on detach. This cures a couple of pf panics
mlaier [Fri, 10 Apr 2009 14:41:51 +0000 (14:41 +0000)]
Remove interfaces from IFG_ALL on detach.  This cures a couple of pf panics
when using the "self" keyword in tables or as ()-style host address and
fixes "ifconfig -g all" output.

PR: kern/130977, kern/131310
Submitted by: Mikolaj Golub
MFC after: 3 days

15 years ago- VOP_LEASE.9 has been removed
danger [Fri, 10 Apr 2009 14:24:12 +0000 (14:24 +0000)]
- VOP_LEASE.9 has been removed

Approved by: rwatson

15 years ago- Better wording in comment.
lulf [Fri, 10 Apr 2009 11:15:34 +0000 (11:15 +0000)]
- Better wording in comment.

Suggested by: Christoph Mallon <christoph.mallon - at - gmx.de>

15 years agoRemove VOP_LEASE(9) man page, as we no longer have a VOP_LEASE() in the
rwatson [Fri, 10 Apr 2009 10:59:48 +0000 (10:59 +0000)]
Remove VOP_LEASE(9) man page, as we no longer have a VOP_LEASE() in the
kernel.

15 years agoRemove VOP_LEASE and supporting functions. This hasn't been used since
rwatson [Fri, 10 Apr 2009 10:52:19 +0000 (10:52 +0000)]
Remove VOP_LEASE and supporting functions.  This hasn't been used since
the removal of NQNFS, but was left in in case it was required for NFSv4.
Since our new NFSv4 client and server can't use it for their
requirements, GC the old mechanism, as well as other unused lease-
related code and interfaces.

Due to its impact on kernel programming and binary interfaces, this
change should not be MFC'd.

Proposed by:    jeff
Reviewed by:    jeff
Discussed with: rmacklem, zach loafman @ isilon

15 years agoCache_lookup() for DOTDOT drops dvp vnode lock, allowing dvp to be reclaimed.
kib [Fri, 10 Apr 2009 10:22:44 +0000 (10:22 +0000)]
Cache_lookup() for DOTDOT drops dvp vnode lock, allowing dvp to be reclaimed.
Check the condition and return ENOENT then.

In nfs_lookup(), respect ENOENT return from cache_lookup() when it is caused
by dvp reclaim.

Reported and tested by: pho

15 years agoWhen vm_map_wire(9) is allowed to skip holes in the wired region, skip
kib [Fri, 10 Apr 2009 10:16:03 +0000 (10:16 +0000)]
When vm_map_wire(9) is allowed to skip holes in the wired region, skip
the mappings without any of read and execution rights, in particular,
the PROT_NONE entries. This makes mlockall(2) work for the process
address space that has such mappings.

Since protection mode of the entry may change between setting
MAP_ENTRY_IN_TRANSITION and final pass over the region that records
the wire status of the entries, allocate new map entry flag
MAP_ENTRY_WIRE_SKIPPED to mark the skipped PROT_NONE entries.

Reported and tested by: Hans Ottevanger <fbsdhackers beasties demon nl>
Reviewed by: alc
MFC after: 3 weeks

15 years agoCurrently, when mapping an object, rtld reserves the whole address space
kib [Fri, 10 Apr 2009 10:14:04 +0000 (10:14 +0000)]
Currently, when mapping an object, rtld reserves the whole address space
for the mapping by the object' file with the protection and mode of
the first loadable segment over the whole region. Then, it maps other
segments at the appropriate addresses inside the region.

On amd64, due to default alignment of the segments being 1Gb, the
subsequent segment mappings leave the holes in the region, that usually
contain mapping of the object' file past eof. Such mappings prevent
wiring of the address space, because the pages cannot be faulted in.

Change the way the mapping of the ELF objects is constructed, by first
mapping PROT_NONE anonymous memory over the whole range, and then
mapping the segments of the object over it. Take advantage of this new
order and allocate .bss by changing the protection of the range instead
of remapping.

Note that we cannot simply keep the holes between segments, because
other mappings may be made there. Among other issues, when the dso is
unloaded, rtld unmaps the whole region, deleting unrelated mappings.

The kernel ELF image activator does put the holes between segments, but
this is not critical for now because kernel loads only executable image
and interpreter, both cannot be unloaded. This will be fixed later, if
needed.

Reported and tested by: Hans Ottevanger <fbsdhackers beasties demon nl>
Suggested and reviewed by: kan, alc

15 years ago- Implement the grow command to make it easier for users to extend plexes
lulf [Fri, 10 Apr 2009 10:12:09 +0000 (10:12 +0000)]
- Implement the grow command to make it easier for users to extend plexes
  without having to understand all gvinum internals.
- Document the grow command in the manpage and update examples to use the
  command where possible.

15 years agoUpdate comment to the reality, rtld supports any number of loadable segments.
kib [Fri, 10 Apr 2009 09:52:42 +0000 (09:52 +0000)]
Update comment to the reality, rtld supports any number of loadable segments.
Fix spacing.

Reviewed by: kan

15 years ago- Move logic for finding a unique drive name into its own routine for future
lulf [Fri, 10 Apr 2009 09:13:58 +0000 (09:13 +0000)]
- Move logic for finding a unique drive name into its own routine for future
  code reuse.

15 years ago- Move out allocation part of different gvinum objects into its own routine and
lulf [Fri, 10 Apr 2009 08:50:14 +0000 (08:50 +0000)]
- Move out allocation part of different gvinum objects into its own routine and
  make use of it in the gvinum userland code.

15 years agoImport "flowid" support for serializing flows across transmit queues
kmacy [Fri, 10 Apr 2009 06:16:14 +0000 (06:16 +0000)]
Import "flowid" support for serializing flows across transmit queues

Reviewed by: rwatson and jeli

15 years agoFix build problem with data format.
jfv [Fri, 10 Apr 2009 05:26:14 +0000 (05:26 +0000)]
Fix build problem with data format.

15 years agoRevert r190676,190677
thompsa [Fri, 10 Apr 2009 04:08:34 +0000 (04:08 +0000)]
Revert r190676,190677

The geom and CAM changes for root_hold are the wrong solution for USB design
quirks.

Requested by: scottl

15 years agoAdd missing file, sorry bout that :)
jfv [Fri, 10 Apr 2009 02:45:00 +0000 (02:45 +0000)]
Add missing file, sorry bout that :)

15 years agoAdd ixgbe to the GENERIC amd64 kernel in place of the
jfv [Fri, 10 Apr 2009 00:40:48 +0000 (00:40 +0000)]
Add ixgbe to the GENERIC amd64 kernel in place of the
older ixgb driver. I will add to other architectures
after this one proves trouble free.

MFC after: 2 weeks

15 years agoAdd additional file to ixgbe files list, and uncomment NOTES entry
jfv [Fri, 10 Apr 2009 00:34:55 +0000 (00:34 +0000)]
Add additional file to ixgbe files list, and uncomment NOTES entry

MFC after: 2 weeks