]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoCompact code a bit
mav [Fri, 4 May 2007 16:12:54 +0000 (16:12 +0000)]
Compact code a bit

Approved by: glebius (mentor)

17 years agoMake coherency counter 12bit as it should
mav [Fri, 4 May 2007 16:05:58 +0000 (16:05 +0000)]
Make coherency counter 12bit as it should

Approved by: glebius (mentor)

17 years ago- Fix typo
gabor [Fri, 4 May 2007 16:01:07 +0000 (16:01 +0000)]
- Fix typo

Approved by: keramida (mentor)
MFC after: 3 days

17 years agoFix small mistake (sizeof(pad2) instead of sizeof(pad1))
mav [Fri, 4 May 2007 15:44:22 +0000 (15:44 +0000)]
Fix small mistake (sizeof(pad2) instead of sizeof(pad1))

Approved by: glebius (mentor)

17 years ago- s/jail id/jail ID/, acronyms should be in uppercase in general. Also,
rafan [Fri, 4 May 2007 15:42:58 +0000 (15:42 +0000)]
- s/jail id/jail ID/, acronyms should be in uppercase in general. Also,
  it is written this way in jail(8).

Suggested by: brueffer
Approved by: delphij (mentor, implicit)

17 years agoRemove unneded bzero().
mav [Fri, 4 May 2007 15:41:49 +0000 (15:41 +0000)]
Remove unneded bzero().
SHA1Final() does not require clean buffer.

Approved by: glebius (mentor)

17 years ago- Add top '-j' switch
rafan [Fri, 4 May 2007 15:25:05 +0000 (15:25 +0000)]
- Add top '-j' switch

Reviewed by: brueffer
Approved by: delphij (mentor, implicit), brueffer

17 years agoFixes a missing unlock in the one-2-one hash table, if
rrs [Fri, 4 May 2007 15:19:10 +0000 (15:19 +0000)]
Fixes a missing unlock in the one-2-one hash table, if
it was full and a collision occured, then we would leave
a inp locked. Also fixes a missing inp unlock if IPSEC was
on and it failed during the attach. Bug found by Weongyo Jeong.

17 years agoCorrect osa@ full name.
fjoe [Fri, 4 May 2007 14:51:56 +0000 (14:51 +0000)]
Correct osa@ full name.

17 years agoAdd jdp@ and myself.
fjoe [Fri, 4 May 2007 14:51:39 +0000 (14:51 +0000)]
Add jdp@ and myself.

17 years agoAdd osa@FreeBSD.org.
fjoe [Fri, 4 May 2007 14:43:51 +0000 (14:43 +0000)]
Add osa@FreeBSD.org.

17 years agoMark the filedescriptor table entries with VOP_OPEN being performed for them
kib [Fri, 4 May 2007 14:23:29 +0000 (14:23 +0000)]
Mark the filedescriptor table entries with VOP_OPEN being performed for them
as UF_OPENING. Disable closing of that entries. This should fix the crashes
caused by devfs_open() (and fifo_open()) dereferencing struct file * by
index, while the filedescriptor is closed by parallel thread.

Idea by: tegge
Reviewed by: tegge (previous version of patch)
Tested by: Peter Holm
Approved by: re (kensmith)
MFC after: 3 weeks

17 years agoPlace a '#' at the front of the line holding a $FreeBSD$ ID tag. While
rwatson [Fri, 4 May 2007 13:34:33 +0000 (13:34 +0000)]
Place a '#' at the front of the line holding a $FreeBSD$ ID tag.  While
it actually compiles without this, it's still a good idea.

17 years ago$FreeBSD$ tags are not compilable C code; wrap in either __FBSDID() or
rwatson [Fri, 4 May 2007 13:30:44 +0000 (13:30 +0000)]
$FreeBSD$ tags are not compilable C code; wrap in either __FBSDID() or
in comments for .c and .h files respectively.  Jack may want to clean up
style or other aspects once he's up and about again, but this gets the
kernel compiling.

17 years agoAdd missing e1000_82575.c entry to build in order to improve chances of
rwatson [Fri, 4 May 2007 13:29:45 +0000 (13:29 +0000)]
Add missing e1000_82575.c entry to build in order to improve chances of
kernel compilation due to missing symbols in em driver.

17 years agoFix use-after-free for DMA tag. Destroy DMA tag later.
ariff [Fri, 4 May 2007 12:38:46 +0000 (12:38 +0000)]
Fix use-after-free for DMA tag. Destroy DMA tag later.

Submitted by: Yuriy Tsibizov

17 years agoAdd support for filtering on Routing Header Type 0 and
bz [Fri, 4 May 2007 11:15:41 +0000 (11:15 +0000)]
Add support for filtering on Routing Header Type 0 and
Mobile IPv6 Routing Header Type 2 in addition to filter
on the non-differentiated presence of any Routing Header.

MFC after: 3 weeks

17 years agoAbsolute pathname in the Makefile was broken, this
jfv [Fri, 4 May 2007 07:21:01 +0000 (07:21 +0000)]
Absolute pathname in the Makefile was broken, this
version should work correctly.

17 years agoLast minute mistake crept in, old file name.
jfv [Fri, 4 May 2007 05:58:46 +0000 (05:58 +0000)]
Last minute mistake crept in, old file name.

Approved by:pdeuskar

17 years agofixed a memory leak in unresolved ND queue processing
suz [Fri, 4 May 2007 02:34:17 +0000 (02:34 +0000)]
fixed a memory leak in unresolved ND queue processing

Obtained from: KAME
MFC after: 1 week

17 years agoMerge in the new driver (6.5.0) of Intel. This has a new
jfv [Fri, 4 May 2007 00:00:12 +0000 (00:00 +0000)]
Merge in the new driver (6.5.0) of Intel. This has a new
shared code infrastructure that is family specific and
modular. There is also support for our latest gigabit
nic, the 82575 that is MSI/X and multiqueue capable.

The new shared code changes some interfaces to the core
code but testing at Intel has been going on for months,
it is fairly stable.

I have attempted to be careful in retaining any fixes that
CURRENT had and we did not, I apologize in advance if any
thing gets clobbered, I'm sure I'll hear about it :)

Approved by pdeuskar

17 years agoAdd a newline to the printf message.
thompsa [Thu, 3 May 2007 22:39:52 +0000 (22:39 +0000)]
Add a newline to the printf message.

17 years ago- Add documentation notes for the 'a' option, forgotten in the previous
stas [Thu, 3 May 2007 22:17:35 +0000 (22:17 +0000)]
- Add documentation notes for the 'a' option, forgotten in the previous
  commit.

  commands.c [1]
  top.X

Suggested by: rafan [1]

17 years agosblock() implements a sleep lock by interlocking SB_WANT and SB_LOCK flags
rwatson [Thu, 3 May 2007 14:42:42 +0000 (14:42 +0000)]
sblock() implements a sleep lock by interlocking SB_WANT and SB_LOCK flags
on each socket buffer with the socket buffer's mutex.  This sleep lock is
used to serialize I/O on sockets in order to prevent I/O interlacing.

This change replaces the custom sleep lock with an sx(9) lock, which
results in marginally better performance, better handling of contention
during simultaneous socket I/O across multiple threads, and a cleaner
separation between the different layers of locking in socket buffers.
Specifically, the socket buffer mutex is now solely responsible for
serializing simultaneous operation on the socket buffer data structure,
and not for I/O serialization.

While here, fix two historic bugs:

(1) a bug allowing I/O to be occasionally interlaced during long I/O
    operations (discovere by Isilon).

(2) a bug in which failed non-blocking acquisition of the socket buffer
    I/O serialization lock might be ignored (discovered by sam).

SCTP portion of this patch submitted by rrs.

17 years agoInitialise variable size so that reading stdin works deterministically.
dwmalone [Thu, 3 May 2007 13:57:19 +0000 (13:57 +0000)]
Initialise variable size so that reading stdin works deterministically.

Add missing include.

Default to WARNS=6.

17 years agoAdd myself
benjsc [Thu, 3 May 2007 11:34:36 +0000 (11:34 +0000)]
Add myself

Approved by: mlaier (mentor)

17 years agoRemove sa1_cache_clean_addr. It isn't needed.
kevlo [Thu, 3 May 2007 09:51:12 +0000 (09:51 +0000)]
Remove sa1_cache_clean_addr.  It isn't needed.

17 years agoFix flag descriptions.
thompsa [Thu, 3 May 2007 09:07:36 +0000 (09:07 +0000)]
Fix flag descriptions.

17 years ago- Add a disabled state for ports that can not be aggregated
thompsa [Thu, 3 May 2007 08:56:20 +0000 (08:56 +0000)]
- Add a disabled state for ports that can not be aggregated
- Refine check for lacp links, set to disabled if not suitable

17 years agoIf lstat(2) fails, have bsdtar return a non-zero exit code if the
cperciva [Thu, 3 May 2007 04:33:11 +0000 (04:33 +0000)]
If lstat(2) fails, have bsdtar return a non-zero exit code if the
failed path is one which was specified on the command line.

This is a compromise between the situation prior to revision 1.57
(where a race between tar(1) and rm(1) could cause tar(1) to
spuriously report an error) and the situation after revision 1.57
(where "tar -c /no/such/path" prints a warning but returns with
an exit code of zero).

Inspired by: rafan
MFC after: 1 week

17 years agoUpdate __FreeBSD_version check for MFC of pmap_mapbios().
jhb [Wed, 2 May 2007 18:43:51 +0000 (18:43 +0000)]
Update __FreeBSD_version check for MFC of pmap_mapbios().

17 years agoRevamp the MSI/MSI-X code a bit to achieve two main goals:
jhb [Wed, 2 May 2007 17:50:36 +0000 (17:50 +0000)]
Revamp the MSI/MSI-X code a bit to achieve two main goals:
- Simplify the amount of work that has be done for each architecture by
  pushing more of the truly MI code down into the PCI bus driver.
- Don't bind MSI-X indicies to IRQs so that we can allow a driver to map
  multiple MSI-X messages into a single IRQ when handling a message
  shortage.

The changes include:
- Add a new pcib_if method: PCIB_MAP_MSI() which is called by the PCI bus
  to calculate the address and data values for a given MSI/MSI-X IRQ.
  The x86 nexus drivers map this into a call to a new 'msi_map()' function
  in msi.c that does the mapping.
- Retire the pcib_if method PCIB_REMAP_MSIX() and remove the 'index'
  parameter from PCIB_ALLOC_MSIX().  MD code no longer has any knowledge
  of the MSI-X index for a given MSI-X IRQ.
- The PCI bus driver now stores more MSI-X state in a child's ivars.
  Specifically, it now stores an array of IRQs (called "message vectors" in
  the code) that have associated address and data values, and a small
  virtual version of the MSI-X table that specifies the message vector
  that a given MSI-X table entry uses.  Sparse mappings are permitted in
  the virtual table.
- The PCI bus driver now configures the MSI and MSI-X address/data
  registers directly via custom bus_setup_intr() and bus_teardown_intr()
  methods.  pci_setup_intr() invokes PCIB_MAP_MSI() to determine the
  address and data values for a given message as needed.  The MD code
  no longer has to call back down into the PCI bus code to set these
  values from the nexus' bus_setup_intr() handler.
- The PCI bus code provides a callout (pci_remap_msi_irq()) that the MD
  code can call to force the PCI bus to re-invoke PCIB_MAP_MSI() to get
  new values of the address and data fields for a given IRQ.  The x86
  MSI code uses this when an MSI IRQ is moved to a different CPU, requiring
  a new value of the 'address' field.
- The x86 MSI psuedo-driver loses a lot of code, and in fact the separate
  MSI/MSI-X pseudo-PICs are collapsed down into a single MSI PIC driver
  since the only remaining diff between the two is a substring in a
  bootverbose printf.
- The PCI bus driver will now restore MSI-X state (including programming
  entries in the MSI-X table) on device resume.
- The interface for pci_remap_msix() has changed.  Instead of accepting
  indices for the allocated vectors, it accepts a mini-virtual table
  (with a new length parameter).  This table is an array of u_ints, where
  each value specifies which allocated message vector to use for the
  corresponding MSI-X message.  A vector of 0 forces a message to not
  have an associated IRQ.  The device may choose to only use some of the
  IRQs assigned, in which case the unused IRQs must be at the "end" and
  will be released back to the system.  This allows a driver to use the
  same remap table for different shortage values.  For example, if a driver
  wants 4 messages, it can use the same remap table (which only uses the
  first two messages) for the cases when it only gets 2 or 3 messages and
  in the latter case the PCI bus will release the 3rd IRQ back to the
  system.

MFC after: 1 month

17 years agoDon't assume that int is signed 32-bits in one place. Keep assuming
bde [Wed, 2 May 2007 16:54:22 +0000 (16:54 +0000)]
Don't assume that int is signed 32-bits in one place.  Keep assuming
that ints have >= 31 value bits elsewhere.  s/int/int32_t/ seems to
have been done too globally for all other files in msun/src before
msun/ was imported into FreeBSD.

Minor fixes in comments.

e_lgamma_r.c:
Describe special cases in more detail:
- exception for lgamma(0) and lgamma(neg.integer)
- lgamma(-Inf) = Inf.  This is wrong but is required by C99 Annex F.  I
  hope to change this.

17 years agoUse more specific local variable pointers to narrow some expressions.
jhb [Wed, 2 May 2007 16:21:18 +0000 (16:21 +0000)]
Use more specific local variable pointers to narrow some expressions.

MFC after: 1 week

17 years agoMove options that do not have anything to do with routing out of
mtm [Wed, 2 May 2007 15:49:30 +0000 (15:49 +0000)]
Move options that do not have anything to do with routing out of
rc.d/routing and in to rc.d/netoptions. Also instead of saying
"TCP options" say "IP options".

17 years agoWhen rc.d/NETWORKING included this script in its REQUIRE line, a circular
mtm [Wed, 2 May 2007 15:32:05 +0000 (15:32 +0000)]
When rc.d/NETWORKING included this script in its REQUIRE line, a circular
dependency was introduced because this script had rc.d/localpkg (which is
*after* rc.d/NETWORKING) in its REQUIRE line.

From an examination of its contents it seems that only the availability of
a local filesystem is necessary for this script to function properly.

17 years agoMPSAFE atapi-cam
scottl [Wed, 2 May 2007 15:30:24 +0000 (15:30 +0000)]
MPSAFE atapi-cam

17 years agoFix tgamma() on some special args:
bde [Wed, 2 May 2007 15:24:49 +0000 (15:24 +0000)]
Fix tgamma() on some special args:
(1) tgamma(-Inf) returned +Inf and failed to raise any exception, but
    should always have raised an exception, and should behave like
    tgamma(negative integer).
(2) tgamma(negative integer) returned +Inf and raised divide-by-zero,
    but should return NaN and raise "invalid" on any IEEEish system.
(3) About half of the 2**52 negative intgers between -2**53 and -2**52
    were misclassified as non-integers by using floor(x + 0.5) to round
    to nearest, so tgamma(x) was wrong (+-0 instead of +Inf and now NaN)
    on these args.  The floor() expression is hard to use since rounding
    of (x + 0.5) may give x or x + 1, depending on |x| and the current
    rounding mode.  The fixed version uses ceil(x) to classify x before
    operating on x and ends up being more efficient since ceil(x) is
    needed anyway.
(4) On at least the problematic args in (3), tgamma() raised a spurious
    inexact.
(5) tgamma(large positive) raised divide-by-zero but should raise overflow.
(6) tgamma(+Inf) raised divide-by-zero but should not raise any exception.
(7) Raise inexact for tiny |x| in a way that has some chance of not being
    optimized away.

The fix for (5) and (6), and probably for (2), also prevents -O optimizing
away the exception.

PR: 112180 (2)
Standards: Annex F in C99 (IEC 60559 binding) requires (1), (2) and (6).

17 years agoDocument (in a comment) the current (slightly broken) handling of special
bde [Wed, 2 May 2007 13:49:28 +0000 (13:49 +0000)]
Document (in a comment) the current (slightly broken) handling of special
values in more detail, and change the style of this comment to be closer
to fdlibm and C99:
- tgamma(-Inf) was undocumented and is wrong (+Inf, should be NaN)
- tgamma(negative integer) is as intended (+Inf) but not best for IEEE-754
  (NaN)
- tgamma(-0) was documented as being wrong (+Inf) but was correct (-Inf)
- documentation of setting of exceptions (overflow, etc.) was more
  complete here than in most of libm, but was further from matching
  the actual setting than in most of libm, due to various bugs here
  (primarily, always evaluating +Inf one/zero and getting unwanted
  divide-by-zero exceptions from this).  Now the actual behaviour with
  gcc -O0 is documented.  Optimization still breaks setting of exceptions
  all over libm, so nothing can depend on this working.
- tgamma(NaN)'s exception was documented as being wrong (invalid) but was
  correct (no exception with IEEEish NaNs).

Finish (?) rev.1.5.  gamma was not renamed to tgamma in one place.

Finish (?) rev.1.6.  errno.h was not completely removed.

17 years ago- Somehow the disable fragment option got lost. We could
rrs [Wed, 2 May 2007 12:50:13 +0000 (12:50 +0000)]
-  Somehow the disable fragment option got lost. We could
   set/clear it but would not do it. Now we will.
-  Moved to latest socket api for extended sndrcv info struct.
-  Moved to support all new levels of fragment interleave (0-2).
-  Codenomicon security test updates - length checks and such.
-  Bug in stream reset (2 actually).
-  setpeerprimary could unlock a null pointer, fixed.
-  Added a flag in the pcb so netstat can see if we are listening easier.

Obtained from: (some of the Listen changes from Weongyo Jeong)

17 years agoFix a couple of typos in a comment.
yar [Wed, 2 May 2007 11:13:48 +0000 (11:13 +0000)]
Fix a couple of typos in a comment.

17 years agoUpdate info on VLAN support in hardware:
yar [Wed, 2 May 2007 10:51:48 +0000 (10:51 +0000)]
Update info on VLAN support in hardware:
- bce(4) and cxgb(4) can do hardware acceleration;
- fwe(4) and nfe(4) can handle long frames.

17 years agoSet the master flag on the right variable.
thompsa [Wed, 2 May 2007 08:58:28 +0000 (08:58 +0000)]
Set the master flag on the right variable.

17 years agoTest for IFM_FDX rather than IFM_HDX as the half-duplex bit may not be set even
thompsa [Wed, 2 May 2007 07:52:55 +0000 (07:52 +0000)]
Test for IFM_FDX rather than IFM_HDX as the half-duplex bit may not be set even
if the link is not full-duplex.

17 years agos/@VERSION@/@ARCHIVE_VERSION@/
cperciva [Wed, 2 May 2007 05:29:55 +0000 (05:29 +0000)]
s/@VERSION@/@ARCHIVE_VERSION@/

This is a no-op as far as FreeBSD is concerned, but makes libarchive
more autoconf-friendly.

Approved by: kientzle

17 years agoStreamline locking in ciss_free()
scottl [Wed, 2 May 2007 04:44:31 +0000 (04:44 +0000)]
Streamline locking in ciss_free()

17 years agoShare-lock a vnode where possible.
pjd [Wed, 2 May 2007 01:03:10 +0000 (01:03 +0000)]
Share-lock a vnode where possible.

17 years agoWhen parent directory has to be unlocked, lock it back with the same lock
pjd [Wed, 2 May 2007 00:41:44 +0000 (00:41 +0000)]
When parent directory has to be unlocked, lock it back with the same lock
type. Before this change, if directory was shared-locked, it was relocked
exclusively.

17 years agoLock vnode using cn_lkflags in case the caller wants the vnode to be
pjd [Wed, 2 May 2007 00:39:52 +0000 (00:39 +0000)]
Lock vnode using cn_lkflags in case the caller wants the vnode to be
shared-locked.

17 years agoThe getnewvnode() function sets LK_NOSHARE by default, so if we want to
pjd [Wed, 2 May 2007 00:22:12 +0000 (00:22 +0000)]
The getnewvnode() function sets LK_NOSHARE by default, so if we want to
support shared vnodes locking, we need to remove that flag.
Also add LK_CANRECURSE flag as found in nfsclient.

17 years agoZFS should update timestamps upon the creat() of an existing file.
pjd [Wed, 2 May 2007 00:18:22 +0000 (00:18 +0000)]
ZFS should update timestamps upon the creat() of an existing file.

Obtained from: OpenSolaris
Bug: http://bugs.opensolaris.org/view_bug.do?bug_id=6465105

17 years ago- Lock vnode with flags passed in as argument in zfs_vget() and zfs_root().
pjd [Wed, 2 May 2007 00:09:34 +0000 (00:09 +0000)]
- Lock vnode with flags passed in as argument in zfs_vget() and zfs_root().

  Pointed out by: ups
  Also reported by: kris

- Add comments where I'm not sure if LK_RETRY should be used.

17 years agoDo some cleanups (like freeing memory and closing file descriptors) before
pjd [Tue, 1 May 2007 23:33:12 +0000 (23:33 +0000)]
Do some cleanups (like freeing memory and closing file descriptors) before
leaving the functions.

17 years agoo OpenBSD 4.1 added.
maxim [Tue, 1 May 2007 19:47:18 +0000 (19:47 +0000)]
o OpenBSD 4.1 added.

17 years agoReflect MFC of pci_find_extcap().
jkim [Tue, 1 May 2007 19:18:12 +0000 (19:18 +0000)]
Reflect MFC of pci_find_extcap().

MFC after: 3 days

17 years agoBump FreeBSD_version to not have it going backwards.
ache [Tue, 1 May 2007 19:03:42 +0000 (19:03 +0000)]
Bump FreeBSD_version to not have it going backwards.

Asked by:       Ceri Davies <ceri@submonkey.net>

17 years agoFix one kind of style(9) bug and a typo in a comment.
yar [Tue, 1 May 2007 18:50:33 +0000 (18:50 +0000)]
Fix one kind of style(9) bug and a typo in a comment.

Tested with: md5(1)

17 years agoAdd threading support.
marcel [Tue, 1 May 2007 18:29:34 +0000 (18:29 +0000)]
Add threading support.

17 years agoRoughly implement libpthread support.
marcel [Tue, 1 May 2007 18:28:08 +0000 (18:28 +0000)]
Roughly implement libpthread support.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r169185,
marcel [Tue, 1 May 2007 18:26:22 +0000 (18:26 +0000)]
This commit was generated by cvs2svn to compensate for changes in r169185,
which included commits to RCS files with non-trunk default branches.

17 years agoDefine supply_gregset() and supply_fpregset(). They are needed
marcel [Tue, 1 May 2007 18:26:22 +0000 (18:26 +0000)]
Define supply_gregset() and supply_fpregset(). They are needed
by our threading support.

17 years agoDefine the miibus ivars as a structure, instead of as a vector of
marcel [Tue, 1 May 2007 18:21:24 +0000 (18:21 +0000)]
Define the miibus ivars as a structure, instead of as a vector of
pointers. A structure is more readable and less error-prone. It
also avoids problems when a function pointer doesn't have the
same width as a void pointer.

17 years agoEliminate the use of Giant from ia64-specific code in freebsd32_mmap().
alc [Tue, 1 May 2007 17:10:01 +0000 (17:10 +0000)]
Eliminate the use of Giant from ia64-specific code in freebsd32_mmap().

17 years agoRemove unused pcbinfo arguments to in_setsockaddr() and
rwatson [Tue, 1 May 2007 16:31:02 +0000 (16:31 +0000)]
Remove unused pcbinfo arguments to in_setsockaddr() and
in_setpeeraddr().

17 years agoUse the VIS-based Spitfire version of the page copying and zeroing
marius [Tue, 1 May 2007 16:19:28 +0000 (16:19 +0000)]
Use the VIS-based Spitfire version of the page copying and zeroing
functions with CPUs they apply to only, otherwise default to the
plain C functions. This is modeled in a way so that f.e. a Cheetah
version of these functions can be inserted easily.

17 years agoBack out all POSIXified *env() changes.
ache [Tue, 1 May 2007 16:02:44 +0000 (16:02 +0000)]
Back out all POSIXified *env() changes.

Not because I admit they are technically wrong and not because of bug
reports (I receive nothing). But because I surprisingly meets so
strong opposition and resistance so lost any desire to continue that.

Anyone who interested in POSIX can dig out what changes and how
through cvs diffs.

17 years agoMake the rman(9) workaround actually work. The main problem was that
marius [Tue, 1 May 2007 15:02:18 +0000 (15:02 +0000)]
Make the rman(9) workaround actually work. The main problem was that
the UPA_IMR2 resource is also shared with/a subset of the Schizo PCI
bus B CSR bank. I'm not entirely sure how this previously managed to
escape testing...

17 years agoCorrectly inizialize local/unix transport. I broke it in rev.1.15.
matteo [Tue, 1 May 2007 14:47:35 +0000 (14:47 +0000)]
Correctly inizialize local/unix transport. I broke it in rev.1.15.

PR:  bin/1122566
MFC after: 1 week

17 years agoFix bugs in the Sun -> AT keycode translation table which caused the
marius [Tue, 1 May 2007 14:14:52 +0000 (14:14 +0000)]
Fix bugs in the Sun -> AT keycode translation table which caused the
Props key to act as Again and the Paste and Copy keys to be inverted.

17 years agoMFp4: Remove LK_RETRY flag when locking vnode in zfs_lookup, we don't want
pjd [Tue, 1 May 2007 13:58:56 +0000 (13:58 +0000)]
MFp4: Remove LK_RETRY flag when locking vnode in zfs_lookup, we don't want
dead vnodes here.

Suggested by: kib

17 years agoCatch up with the private namespace change (s/FBSDprivate/FBSDprivate_1.0).
deischen [Tue, 1 May 2007 13:46:27 +0000 (13:46 +0000)]
Catch up with the private namespace change (s/FBSDprivate/FBSDprivate_1.0).

17 years agoWhite space fixes.
pjd [Tue, 1 May 2007 13:32:22 +0000 (13:32 +0000)]
White space fixes.

17 years agoThe process lock is held when procfs_ioctl() is called. Assert that this
des [Tue, 1 May 2007 12:59:20 +0000 (12:59 +0000)]
The process lock is held when procfs_ioctl() is called.  Assert that this
is so, and PHOLD the process while sleeping since msleep() will release
the lock.

17 years agoAdd a comment explaining why we call dmu_write() unconditionally, even if
pjd [Tue, 1 May 2007 12:09:45 +0000 (12:09 +0000)]
Add a comment explaining why we call dmu_write() unconditionally, even if
uiomove() fails, especially that it is different from what OpenSolaris
does (I'm not entirely sure they are right).

Suggested by: darrenr

17 years agoRemove invalid BUS_DMA_ALLOCNOW when creating a tag which is used for
marius [Tue, 1 May 2007 11:50:11 +0000 (11:50 +0000)]
Remove invalid BUS_DMA_ALLOCNOW when creating a tag which is used for
a "static" memory allocation only.

17 years agoRemove pre-5.0 compat cruft.
brueffer [Tue, 1 May 2007 11:17:29 +0000 (11:17 +0000)]
Remove pre-5.0 compat cruft.

Approved by: rwatson (mentor)
MFC after: 1 week

17 years agoSecond call of sysctl() is used to gather a proper size of a memory chunk
wkoszek [Tue, 1 May 2007 10:47:09 +0000 (10:47 +0000)]
Second call of sysctl() is used to gather a proper size of a memory chunk
needed to hold the GEOM tree. At this point, pointer 'p' has an improper
value (as it was used previously), and we're getting EFAULT. Fix this
functionality by passing NULL instead of 'p'.

This fixes mdconfig(8) -l output with high number of md(4) devices.

   Found by: kris
Reviewed by: phk

17 years agoRemove unneeded include files.
alc [Tue, 1 May 2007 06:35:54 +0000 (06:35 +0000)]
Remove unneeded include files.

17 years agoMPSAFE ciss driver
scottl [Tue, 1 May 2007 05:13:15 +0000 (05:13 +0000)]
MPSAFE ciss driver

17 years agoIf we've got watchdog timeouts try to get more packets going after
yongari [Tue, 1 May 2007 03:40:57 +0000 (03:40 +0000)]
If we've got watchdog timeouts try to get more packets going after
resetting the hardware.

17 years agoHonor link up/down state in stge_start().
yongari [Tue, 1 May 2007 03:35:48 +0000 (03:35 +0000)]
Honor link up/down state in stge_start().
While I'm here move MAC control settings to stge_link_task, a task
queue which handles link state and duplex/flow controls.

17 years agoUse our own timer for watchdog instead of if_watchdog/if_timer
yongari [Tue, 1 May 2007 03:15:04 +0000 (03:15 +0000)]
Use our own timer for watchdog instead of if_watchdog/if_timer
interface.

17 years agoSynchronize vm map and object accesses.
alc [Tue, 1 May 2007 03:09:57 +0000 (03:09 +0000)]
Synchronize vm map and object accesses.

Approved by: des@

17 years agoRename some fields of struct inpcbinfo to have the ipi_ prefix,
rwatson [Mon, 30 Apr 2007 23:12:05 +0000 (23:12 +0000)]
Rename some fields of struct inpcbinfo to have the ipi_ prefix,
consistent with the naming of other structure field members, and
reducing improper grep matches.  Clean up and comment structure
fields in structure definition.

17 years ago- Take advantage of mii_phy_add_media() for adding media and setting
marius [Mon, 30 Apr 2007 22:35:33 +0000 (22:35 +0000)]
- Take advantage of mii_phy_add_media() for adding media and setting
  sc->mii_anegticks according to whether the respective BGE chip
  supports Fast Ethernet only or also Gigabit Ethernet.
- At least the BGE chips I've tested with wedge when isolating them
  so document this as the reason for setting MIIF_NOISOLATE and
  remove the unused (and partially even #ifdef'ed out) isolation
  related code. Add code that panics if we encounter a non-zero MII
  instance as generally there's no way a PHY requiring MIIF_NOISOLATE
  can be handled gracefully in a multi-PHY configuration (it's ok for
  the internal PHY of single-PHY-only-NIC to not support isolation
  though).
- Additionally set MIIF_NOLOOP as loopback doesn't seem to work
  either and remove the #ifdef'ed out code for adding respective
  media. The MIIF_NOLOOP flag currently triggers nothing but
  hopefully will be respected by mii_phy_setmedia() later on.

Reviewed by: jkim, yongari
MFC after: 1 month

17 years ago- Add support/quirks for the on-board BGEs found in Sun Blade 1500
marius [Mon, 30 Apr 2007 21:55:27 +0000 (21:55 +0000)]
- Add support/quirks for the on-board BGEs found in Sun Blade 1500
  Blade 2500, Fire V210 and probably some other sparc64 machines.
  These chips are typically not fitted with an EEPROM which means
  that we have to obtain the MAC address via OFW and that some chip
  tests will just always fail.
  These changes are based on the respective code found in OpenBSD
  with some additional info obtained from OpenSolaris and some style
  suggestions by jkim@. They also have the desired side-effect of
  respecting the 'local-mac-address?' system configuration variable
  for the affected BGEs.
- In bge_attach() factor out calling bge_release_resources() before
  going to the fail label into the fail label as well as replace a
  magic 6 with ETHER_ADDR_LEN.

Reviewed by: yongari (before style changes), jkim

17 years agoBump __FreeBSD_version after making setenv(), putenv(), getenv() and
ache [Mon, 30 Apr 2007 21:14:53 +0000 (21:14 +0000)]
Bump __FreeBSD_version after making setenv(), putenv(), getenv() and
unsetenv() POSIXed

17 years agoo Kill EOLWS while I'm here.
maxim [Mon, 30 Apr 2007 20:26:11 +0000 (20:26 +0000)]
o Kill EOLWS while I'm here.

17 years agoo Fix strtoul() error conditions check.
maxim [Mon, 30 Apr 2007 20:22:11 +0000 (20:22 +0000)]
o Fix strtoul() error conditions check.

PR: kern/108211
Submitted by: Yong Tang
MFC after: 2 weeks

17 years agolimits calls setenv("name=value", "value", 1); which violates POSIX:
ache [Mon, 30 Apr 2007 20:10:10 +0000 (20:10 +0000)]
limits calls setenv("name=value", "value", 1); which violates POSIX:
"The setenv( ) function shall fail if:
[EINVAL] The name argument is a null pointer, points to an empty string,
or points to a string containing an '=' character."
The fix (like all others in this subject) is backward-compatible.

17 years agoBump .Dd
ache [Mon, 30 Apr 2007 19:37:10 +0000 (19:37 +0000)]
Bump .Dd

Suggested by: Henrik Brix Andersen <henrik@brixandersen.dk>

17 years agoenv calls setenv("name=value", "value", 1); which violates POSIX:
ache [Mon, 30 Apr 2007 19:25:00 +0000 (19:25 +0000)]
env calls setenv("name=value", "value", 1); which violates POSIX:
"The setenv( ) function shall fail if:
[EINVAL] The name argument is a null pointer, points to an empty string,
or points to a string containing an '=' character."
The fix (like all others in this subject) is backward-compatible.

17 years agoo I failed to find a suitable explanation why traceroute(8) and
maxim [Mon, 30 Apr 2007 19:08:13 +0000 (19:08 +0000)]
o I failed to find a suitable explanation why traceroute(8) and
traceroute6(8) force -w flag (wait time) to be > 1 sec.  Make it
possible to use 1 sec wait time.

PR: bin/110933
Submitted by: Dmitry Marakasov
Reviewed by: freebsd-net (silence)
MFC after: 1 month

17 years agoo Add -p flag: print a slice table in fdisk configuration file format.
maxim [Mon, 30 Apr 2007 18:29:36 +0000 (18:29 +0000)]
o Add -p flag: print a slice table in fdisk configuration file format.
Now it is possible to do something like fdisk -p ad0 | fdisk -f - ad1.

PR: bin/110182
Submitted by: Jukka A. Ukkonen
MFC after: 1 month

17 years agoAdd phrase
ache [Mon, 30 Apr 2007 18:01:51 +0000 (18:01 +0000)]
Add phrase
"so altering the argument shall change the environment."
into putenv description.

17 years agoo Make ipfw(8) show rules with mac/mac-type options correctly.
maxim [Mon, 30 Apr 2007 17:39:30 +0000 (17:39 +0000)]
o Make ipfw(8) show rules with mac/mac-type options correctly.

Before:

$ ipfw -n add 100 count icmp from any to any mac-type 0x01
00100 count icmp 0x0001
$ ipfw -n add 100 count icmp from any to any mac any any
00100 count icmp MAC any any any

After:

$ ipfw -n add 100 count icmp from any to any mac-type 0x01
00100 count icmp from any to any mac-type 0x0001
$ ipfw -n add 100 count icmp from any to any mac any any
00100 count icmp from any to any MAC any any

PR: bin/112244
Submitted by: Andrey V. Elsukov
MFC after: 1 month

17 years agoMake putenv() fully conforms to Open Group specs Issue 6
ache [Mon, 30 Apr 2007 16:56:18 +0000 (16:56 +0000)]
Make putenv() fully conforms to Open Group specs Issue 6
(also IEEE Std 1003.1-2001)

The specs explicitly says that altering passed string
should change the environment, i.e. putenv() directly puts its arg
into environment (unlike setenv() which just copies it there).
It means that putenv() can't be implemented via setenv()
(like we have before) at all. Putenv() value lives (allows modifying)
up to the next putenv() or setenv() call.

17 years agoAdd MELCO PC-OP-RS Universal remote ID.
takawata [Mon, 30 Apr 2007 16:15:19 +0000 (16:15 +0000)]
Add MELCO PC-OP-RS Universal remote ID.

17 years agoPreparing for upcoming POSIXed putenv() rewrite:
ache [Mon, 30 Apr 2007 15:16:19 +0000 (15:16 +0000)]
Preparing for upcoming POSIXed putenv() rewrite:
don't allow const as putenv() arg, dup it

17 years agoSimplify previous fix and disallow VTEXTFIXED direct pass for putenv() too,
ache [Mon, 30 Apr 2007 15:01:33 +0000 (15:01 +0000)]
Simplify previous fix and disallow VTEXTFIXED direct pass for putenv() too,
just use savestr()