]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoMerge uipc_usrreq.c:1.178,1.192 from HEAD to RELENG_6:
rwatson [Tue, 8 May 2007 10:16:23 +0000 (10:16 +0000)]
Merge uipc_usrreq.c:1.178,1.192 from HEAD to RELENG_6:

  Add two new unpcb flags, UNP_BINDING and UNP_CONNECTING, which will be
  used to mark UNIX domain sockets as being in the process of binding or
  connecting.  Use these to prevent simultaneous bind or connect
  operations by multiple threads or processes on the same socket at the
  same time, which closes race conditions present in the UNIX domain
  socket implementation since inception.

  Set UNP_CONNECTING when committing to moving ahead in unp_connect().
  This logic was lost when merging the remainder of these changes in
  1.178.

17 years agoMerge uipc_usrreq.c:1.177 from HEAD to RELENG_6:
rwatson [Tue, 8 May 2007 10:01:51 +0000 (10:01 +0000)]
Merge uipc_usrreq.c:1.177 from HEAD to RELENG_6:

  Merge unp_bind() into uipc_bind(), as it is called only from uipc_bind().

17 years agoMerge uipc_usrreq.c:1.175 from HEAD to RELENG_6:
rwatson [Tue, 8 May 2007 08:41:13 +0000 (08:41 +0000)]
Merge uipc_usrreq.c:1.175 from HEAD to RELENG_6:

  Move various UNIX socket global variables and sysctls from the middle of
  the file to the top.

17 years agoMerge uipc_usrreq.c:1.174 from HEAD to RELENG_6:
rwatson [Tue, 8 May 2007 08:37:27 +0000 (08:37 +0000)]
Merge uipc_usrreq.c:1.174 from HEAD to RELENG_6:

  In uipc_send() and uipc_rcvd(), store unp->unp_conn pointer in unp2
  while working with the second unpcb to make the code more clear.

17 years agoMerge uipc_usrreq.c:1.171 from HEAD to RELENG_6:
rwatson [Tue, 8 May 2007 08:32:29 +0000 (08:32 +0000)]
Merge uipc_usrreq.c:1.171 from HEAD to RELENG_6:

  Reduce periods of simultaneous acquisition of various socket buffer
  locks and the unplock during uipc_rcvd() and uipc_send() by caching
  certain values from one structure while its locks are held, and
  applying them to a second structure while its locks are held.  If
  done carefully, this should be correct, and will reduce the amount
  of work done with the global unp lock held.

  Tested by:      kris (earlier version)

17 years agoMerge uipc_usrreq.c:1.173 from HEAD to RELENG_6:
rwatson [Tue, 8 May 2007 08:18:55 +0000 (08:18 +0000)]
Merge uipc_usrreq.c:1.173 from HEAD to RELENG_6:

  Re-wrap and other minor formatting and punctuation fixes for UNIX domain
  socket comments.

17 years agoMerge uipc_usrreq.c:1.169 from HEAD to RELENG_6:
rwatson [Tue, 8 May 2007 08:10:37 +0000 (08:10 +0000)]
Merge uipc_usrreq.c:1.169 from HEAD to RELENG_6:

  Remove unused (and ifdef'd) unp_abort() and unp_drain().

17 years agoRFC:
grog [Tue, 8 May 2007 02:31:56 +0000 (02:31 +0000)]
RFC:

Add -A flag to adjust existing time stamps.
Print name by which program was started in usage() message.

17 years agoMFC:
simokawa [Mon, 7 May 2007 08:00:21 +0000 (08:00 +0000)]
MFC:
- Simplify tlabel handling.
- Remove unused fw_asybusy().
- Add a sysctl knob to disable cycle master mode and add some comments.
- Fix broken userland API for async packets.
- Fix typo in recv spd.
- Update state in fw_xferq_dorain() after removed from the send queue.
- Remove unnecessary 'goto err;".
- Improve asynchronous packet receive process.

17 years agoMFC: Free tlabel in fw_xfer_done().
simokawa [Mon, 7 May 2007 06:35:23 +0000 (06:35 +0000)]
MFC: Free tlabel in fw_xfer_done().

17 years agoMFC:
simokawa [Mon, 7 May 2007 06:20:49 +0000 (06:20 +0000)]
MFC:
- Detect cycle lost.
- Less verbose debug messages.
- Remove xfer->retry_req.
- Remove retry_count.
- Replace xfer->act.hand with xfer->hand.

17 years agoMFC: Configuration ROM length should be unsigned.
simokawa [Mon, 7 May 2007 06:01:25 +0000 (06:01 +0000)]
MFC: Configuration ROM length should be unsigned.

17 years agoMFC:
simokawa [Mon, 7 May 2007 05:42:45 +0000 (05:42 +0000)]
MFC:
Initialize configuration ROM before a bus reset.

17 years agoMFC a change to pmap_copy() that was overlooked because revision 1.583
alc [Sun, 6 May 2007 18:36:57 +0000 (18:36 +0000)]
MFC a change to pmap_copy() that was overlooked because revision 1.583
was MFCed before revision 1.540.

17 years agoMFC Revision 1.531 of pmap.c:
alc [Sun, 6 May 2007 05:23:19 +0000 (05:23 +0000)]
MFC Revision 1.531 of pmap.c:
  Avoid unnecessary differences between the amd64 and i386
  format strings.

MFC Revision 1.577 of pmap.c:
  Use a different bitmask for superpages' base address so that it
  doesn't conflict with the PG_PDE_PAT bit.

17 years agoMFC Revision 1.538:
alc [Sun, 6 May 2007 00:34:43 +0000 (00:34 +0000)]
MFC Revision 1.538:
  Remove stale KSE code.

MFC Revision 1.551:
  In general, bits in the page directory entry (PDE) and the page table
  entry (PTE) have the same meaning.  The exception to this rule is the
  eighth bit (0x080).  It is the PS bit in a PDE and the PAT bit in a
  PTE.  This change avoids the possibility that pmap_enter() confuses a
  PAT bit with a PS bit, avoiding a panic().

  Eliminate a diagnostic printf() from the i386 pmap_enter() that serves
  no current purpose.

MFC Revision 1.559:
  Eliminate a comment that became stale after revision 1.540.

MFC Revision 1.575:
  Finish the PG_NX support at the pmap level.

MFC Revision 1.582:
  Eliminate the misuse of PG_FRAME to truncate a virtual address
  to a virtual page boundary.

17 years agoMFC
alc [Sat, 5 May 2007 21:13:16 +0000 (21:13 +0000)]
MFC
  Acquiring smp_ipi_mtx on every call to pmap_invalidate_*() is wasteful.
  For example, during a buildworld more than half of the calls do not
  generate an IPI because the only TLB entry invalidated is on the calling
  processor.  This revision pushes down the acquisition and release of
  smp_ipi_mtx into smp_tlb_shootdown() and smp_targeted_tlb_shootdown() and
  instead uses sched_pin() and sched_unpin() in pmap_invalidate_*() so that
  thread migration doesn't lead to a missed TLB invalidation.

17 years agoMFC Revision 1.530
alc [Sat, 5 May 2007 18:58:22 +0000 (18:58 +0000)]
MFC Revision 1.530
  Replace diagnostic printf()s by assertions.  Use consistent style
  for similar assertions.

MFC Revision 1.540
  Introduce pmap_try_insert_pv_entry().

  Use pmap_try_insert_pv_entry() in pmap_copy() instead of
  pmap_insert_entry().

  Eliminate the explicit low-memory checks in pmap_copy().

MFC Revision 1.544
  Retire pmap_track_modified().

MFC Revision 1.555
  Introduce the function pmap_enter_object().

MFC Revision 1.558 (in part)
  Change pmap_enter_quick_locked() to fail rather than wait if it is
  unable to allocate a page table page.  Similarly, change
  pmap_enter_quick_locked() to call pmap_try_insert_pv_entry() rather
  than pmap_insert_entry().

  Add an assertion that the object containing m_start is locked in
  pmap_enter_object().  Remove a similar assertion from
  pmap_enter_quick_locked() because that function no longer accesses
  the containing object.

  Remove a stale comment.

17 years agoMFC: enable i810 (including i915, i945, etc) on amd64
njl [Fri, 4 May 2007 22:04:41 +0000 (22:04 +0000)]
MFC: enable i810 (including i915, i945, etc) on amd64

17 years agoMFC 1.61:
le [Fri, 4 May 2007 17:36:37 +0000 (17:36 +0000)]
MFC 1.61:

   Accept passwords which contain whitespace.

   PR:     bin/53434

17 years agoMFC all changes regarding new option -M.
le [Fri, 4 May 2007 17:33:04 +0000 (17:33 +0000)]
MFC all changes regarding new option -M.

17 years agoMFC 1.8:
le [Fri, 4 May 2007 17:22:26 +0000 (17:22 +0000)]
MFC 1.8:

    Do the right thing with symlinks in the skeleton directory.

    PR:     bin/63659

17 years agoMFC 1.28:
le [Fri, 4 May 2007 17:17:24 +0000 (17:17 +0000)]
MFC 1.28:

   Check if the new user already exists right after entering the
   username instead of watching the final call to pw(8) fail.

17 years agoMFC: s/jail id/jail ID/ in top
rafan [Fri, 4 May 2007 15:45:13 +0000 (15:45 +0000)]
MFC: s/jail id/jail ID/ in top

  - 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 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 agoMFC rev. 1.35 - remove MSG_PEEK from the description of the send(2)
roam [Fri, 4 May 2007 09:06:59 +0000 (09:06 +0000)]
MFC rev. 1.35 - remove MSG_PEEK from the description of the send(2)
syscall; it is only relevant for incoming data.

17 years ago- MFC up to 1.106:
stas [Thu, 3 May 2007 22:39:24 +0000 (22:39 +0000)]
- MFC up to 1.106:
  * add hpiod and hpssd (1.106)
  * add amanda control tcp port (1.105)
  * sync xmmp service names with IANA (1.104).

17 years agoRegen after addition of 32bit versons of getcontext, setcontext and
sobomax [Thu, 3 May 2007 11:18:44 +0000 (11:18 +0000)]
Regen after addition of 32bit versons of getcontext, setcontext and
swapcontext.

17 years agoMFC: Implement 32 bit getcontext/setcontext/swapcontext on amd64. Still
sobomax [Thu, 3 May 2007 11:13:58 +0000 (11:13 +0000)]
MFC: Implement 32 bit getcontext/setcontext/swapcontext on amd64. Still
stubs for ia64 to keep it compiling.  These are used by 32 bit apps such
as gdb.

17 years agoMFC rev. 1.32:
yar [Thu, 3 May 2007 09:56:51 +0000 (09:56 +0000)]
MFC rev. 1.32:

  Fix a typo: argv -> argvp.

  Rationale:
  We are interested in the current (last) element of the argv array
  there, not in its first element. [...]

  Also add a comment that the argv array ends up null-terminated in
  any case (it's due to the design of the for loop) as an answer to
  a possible question why the whole argv isn't zero-filled.

17 years agoMFC rev. 1.52:
thomas [Thu, 3 May 2007 09:38:54 +0000 (09:38 +0000)]
MFC rev. 1.52:
(atapi_cb): Fix test for the presence of sense data. An incorrect condition
 was being tested, which would result in a system hang in some configurations.

PR: kern/112119

17 years agoArgh, fix a mis-merge.
jhb [Wed, 2 May 2007 20:16:29 +0000 (20:16 +0000)]
Argh, fix a mis-merge.

Reported by: kib

17 years agoMFC: Honor the BUS_DMA_NOCACHE flag to bus_dmamem_alloc() on amd64 and
jhb [Wed, 2 May 2007 18:48:18 +0000 (18:48 +0000)]
MFC: Honor the BUS_DMA_NOCACHE flag to bus_dmamem_alloc() on amd64 and
i386 by mapping the pages as UC (uncacheable) using pmap_change_attr().

Requested by: ariff

17 years agoMFC: Initial PAT support including the following:
jhb [Wed, 2 May 2007 18:42:47 +0000 (18:42 +0000)]
MFC: Initial PAT support including the following:
- New pmap_mapdev_attr() function for amd64 and i386.
- pmap_mapdev() on i386 and amd64 uses UC now rather than WB.
- New pmap_mapbios()/pmap_unmapbios() functions to map firmware tables.
- New pmap_change_attr() function for amd64 and i386.
- Bump __FreeBSD_version.

17 years agoMFC: Add various constants for the PAT MSR and the PAT PTE and PDE flags
jhb [Wed, 2 May 2007 16:16:57 +0000 (16:16 +0000)]
MFC: Add various constants for the PAT MSR and the PAT PTE and PDE flags
and initialize the PAT MSR during boot.

17 years agoMFC: Add 'pmap_invalidate_cache()'.
jhb [Wed, 2 May 2007 15:40:15 +0000 (15:40 +0000)]
MFC: Add 'pmap_invalidate_cache()'.

17 years agoMFC: Comment fix in 1.110.
jhb [Wed, 2 May 2007 15:27:24 +0000 (15:27 +0000)]
MFC: Comment fix in 1.110.

17 years agoMFC: Comment fixes in 1.106 and 1.107.
jhb [Wed, 2 May 2007 15:22:20 +0000 (15:22 +0000)]
MFC: Comment fixes in 1.106 and 1.107.

17 years agoMFC: Various fixes to NFS DirectIO support.
jhb [Wed, 2 May 2007 15:15:51 +0000 (15:15 +0000)]
MFC: Various fixes to NFS DirectIO support.

17 years agoMFC rev. 1.35-1.41: Clean up and update the HARDWARE section.
yar [Wed, 2 May 2007 10:26:32 +0000 (10:26 +0000)]
MFC rev. 1.35-1.41: Clean up and update the HARDWARE section.

17 years agoMFC: rate-check the interrupt storm message and bump the counter 500 -> 1000
njl [Wed, 2 May 2007 06:15:13 +0000 (06:15 +0000)]
MFC: rate-check the interrupt storm message and bump the counter 500 -> 1000

17 years agoMFC rev 1.21: match all system-devices; don't stop after the first match.
marcel [Tue, 1 May 2007 18:08:51 +0000 (18:08 +0000)]
MFC rev 1.21: match all system-devices; don't stop after the first match.

17 years agoMFC rev 1.15: When writing to PCI configuration registers, don't
marcel [Tue, 1 May 2007 18:07:28 +0000 (18:07 +0000)]
MFC rev 1.15: When writing to PCI configuration registers, don't
      immediately read the same register back.

17 years agoMFC:
emax [Tue, 1 May 2007 16:50:03 +0000 (16:50 +0000)]
MFC:

Retire /usr/share/examples/netgraph/bluetooth/rc.bluetooth.

17 years agoMFC the top -j switch:
rafan [Tue, 1 May 2007 15:44:19 +0000 (15:44 +0000)]
MFC the top -j switch:

 - Add a new 'j' switch and runtime option to toggle display jail id for
   each process.

 src/contrib/top/commands.c: 1.13
 src/contrib/top/machine.h: 1.8
 src/contrib/top/top.X: 1.18
 src/contrib/top/top.c: 1.21 and 1.22 (-j part)
 src/usr.bin/top/machine.c: 1.80

PR: 98489, 99631
Submitted by: clsung
Approved by: delphij (mentor)

17 years agoMFC: psycho.c 1.61; psychoreg.h 1.12
marius [Tue, 1 May 2007 13:31:33 +0000 (13:31 +0000)]
MFC: psycho.c 1.61; psychoreg.h 1.12

o Changes to psycho_attach(): [1]
  - Clear the PCI AFSR and status error bits as previous errors still
    might be indicated.
  - Set up the PCI control and diagnostic registers according to the
    capabilities, workarounds, etc of/for specific revisions of the
    supported bridges. This includes no longer setting Hummingbird-/
    Sabre-specific bits in the PCI control register but preserving
    what the firmware has initialized them to like OpenSolaris does.
    Previously we were setting these bits according to the example in
    the Sabre documentation, which I doubt is appropriate for all
    Sabre based designs and especially not for Hummingbirds. This
    also includes not enabling bus parking unless the firmware tells
    us to.
  - Set the PCI latency timer register as this isn't always done by
    the firmware.
o Remove a redundant argument from psycho_set_intr() and in this
  function check the return value of bus_setup_intr(). [2]
o Let psycho_setup_intr() return ENOMEM instead of 0 when it can't
  allocate memory for the interrupt wrapper stub and EINVAL instead
  of 0 if it can't find the interrupt vector in the interrupt map.
o Add a workaround for a bug of the Sabre-APB-combination where it
  doesn't drain DMA write data for devices behind additional PCI-PCI
  bridges underneath the APB PCI-PCI bridge. This workaround (do
  things necessary in order to achieve a manual drain when coherency
  is required) is currently implemented in psycho_setup_intr() and
  psycho_intr_stub() due to lack of a real BUS_GET_DMA_TAG() and
  psycho(4)-specific bus_dma_tag_create() and bus_dmamap_sync()
  methods, respectively, in RELENG_6 and therefore is only applied
  for interrupt handlers but not for polling(4) callbacks. [3]
o Fix some minor style issues.

Info from: OpenSolaris [1]
Info from: Linux, OpenBSD, OpenSolaris [3]
Suggested by: Coverity Prevent (CID 682) [2]

17 years agoMFC rev. 1.74: Remove references to S/Key and list OPIE.
yar [Tue, 1 May 2007 11:46:29 +0000 (11:46 +0000)]
MFC rev. 1.74: Remove references to S/Key and list OPIE.

17 years agoMFC:
yar [Tue, 1 May 2007 11:40:44 +0000 (11:40 +0000)]
MFC:
ftpd.c 1.212
ftpcmd.y 1.66
ftpd.8 1.72-1.73

Add support for RFC 2389 (FEAT) and RFC 2640 (UTF8) to ftpd(8).

PR: bin/111714

17 years agoMFC: rev 1.12
simokawa [Tue, 1 May 2007 03:01:15 +0000 (03:01 +0000)]
MFC: rev 1.12
If compressed length is zero, return a zero-filled block.

17 years agoMFC: brgphy.c 1.67; miidevs 1.42
marius [Mon, 30 Apr 2007 20:59:57 +0000 (20:59 +0000)]
MFC: brgphy.c 1.67; miidevs 1.42

Let brgphy(4) attach for the Broadcom BCM5755 ASIC based chipsets
as well.

Obtained from: OpenBSD

17 years agoMFC: Handle HyperTransport MSI mapping window fixed-window flag.
jhb [Mon, 30 Apr 2007 17:58:23 +0000 (17:58 +0000)]
MFC: Handle HyperTransport MSI mapping window fixed-window flag.

17 years agoMFC: Various fixes to cpu_reset_real()
jhb [Mon, 30 Apr 2007 17:45:44 +0000 (17:45 +0000)]
MFC: Various fixes to cpu_reset_real()
- Try to use the reset control register (I/O port 0xcf9) and the fast a20
  and init register (I/O port 0x92) if the keyboard reset fails.
- Fix the triple fault to actually work when PGE is enabled.

17 years agoMFC:
brueffer [Mon, 30 Apr 2007 15:41:00 +0000 (15:41 +0000)]
MFC:

New release notes:
- edsc(4) added

Modified release notes:
- ncurses was updated from version 5.2-20020615
- MSI-X supported as well, remove ref to pci(4) manpage, which is
  different from the kernel's PCI code

17 years agoMFC rev. 1.30:
yar [Mon, 30 Apr 2007 05:58:08 +0000 (05:58 +0000)]
MFC rev. 1.30:

  Insert explicit space between the output fields to prevent them
  from running together when a field overflows.

17 years agoMFC r1.32:
ceri [Sun, 29 Apr 2007 21:43:09 +0000 (21:43 +0000)]
MFC r1.32:
  cipher(3) is gone.

17 years agoMFC calendar from with -current and remove some undeeded break statements.
dwmalone [Sun, 29 Apr 2007 20:14:19 +0000 (20:14 +0000)]
MFC calendar from with -current and remove some undeeded break statements.

17 years agoMFC: Man page improvements and don't put unix domain sockets into the
dwmalone [Sun, 29 Apr 2007 19:24:11 +0000 (19:24 +0000)]
MFC: Man page improvements and don't put unix domain sockets into the
per-ip limits code.

17 years agoMFC revision 1.58
alc [Sat, 28 Apr 2007 20:44:56 +0000 (20:44 +0000)]
MFC revision 1.58
  Correct contigmalloc2()'s implementation of M_ZERO.

17 years agoMFC revs. 1.289, 1.291 usbdevs, rev. 1.58 usb_quirks.c: add several
maxim [Sat, 28 Apr 2007 20:31:30 +0000 (20:31 +0000)]
MFC revs. 1.289, 1.291 usbdevs, rev. 1.58 usb_quirks.c: add several
CDMA-2000 terminals.
MFC rev. 1.290 usbdevs, rev. 1.41 uplcom.c: add a quirk for Sagem
USB-Serial controller.

17 years agoMFC rev. 1.102: add missed w/space in the error message.
maxim [Sat, 28 Apr 2007 20:09:26 +0000 (20:09 +0000)]
MFC rev. 1.102: add missed w/space in the error message.

17 years agoMFC: scsi_sg, rpc.lockd(8) / rpc.statd(8) -p.
bmah [Sat, 28 Apr 2007 14:29:09 +0000 (14:29 +0000)]
MFC:  scsi_sg, rpc.lockd(8) / rpc.statd(8) -p.

17 years agoAdd some whitespace, no content changes.
bmah [Sat, 28 Apr 2007 14:00:57 +0000 (14:00 +0000)]
Add some whitespace, no content changes.

17 years agoNew errata: SA-07:03.ipv6.
bmah [Sat, 28 Apr 2007 13:58:38 +0000 (13:58 +0000)]
New errata:  SA-07:03.ipv6.

17 years agoMFC: FreeBSD-SA-07:03.ipv6.
bmah [Sat, 28 Apr 2007 13:52:51 +0000 (13:52 +0000)]
MFC:  FreeBSD-SA-07:03.ipv6.

17 years agoMFC:
ariff [Sat, 28 Apr 2007 09:04:10 +0000 (09:04 +0000)]
MFC:
Disable C1 Enhanced mode on AMD K8 Family Revision F and above to keep
local APIC timer alive.

Reviewed by: jhb
PR: i386/104678

17 years agoMFC: Bring in sendmail.org code from the future 8.14.2 release which restores
gshapiro [Fri, 27 Apr 2007 03:33:51 +0000 (03:33 +0000)]
MFC: Bring in sendmail.org code from the future 8.14.2 release which restores
ABI compatibility to users of the libmilter.so shared library.

17 years agoMFC:
ariff [Thu, 26 Apr 2007 08:30:52 +0000 (08:30 +0000)]
MFC:

- Patch for AD1981B codec to enable (automuting) headphone jack sense.
- Enable tone / 3D controls for YAMAHA YMF743, 753 and 752 (partially) [1]
- AC97 quirk / patch cleanups. Most quirks doesn't work in general sense
  and should only be applied on certain specific card / vendor, hence the
  addition of ac97_getsubvendor(). [2]
- Fix low volume issue on several MSI laptops through ALC655 quirk. [2]

[1]

PR: kern/109599
Submitted by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>

[2]

Reported/Tested by: Christian Mueller
                    <raptor-freebsd-multimedia@xpls.de>

17 years agoMFC:
ariff [Thu, 26 Apr 2007 08:21:44 +0000 (08:21 +0000)]
MFC:

Memory leak killing spree, mostly bus_dma(9) related.

17 years agoMFC:
yar [Thu, 26 Apr 2007 06:39:01 +0000 (06:39 +0000)]
MFC:
pam_unix.c 1.52
pam_unix.8 1.13

  In account management, verify whether the account has been locked
  with `pw lock', so that it's impossible to log into a locked account
  using an alternative authentication mechanism, such as an ssh key.
  This change affects only accounts locked with pw(8), i.e., having a
  `*LOCKED*' prefix in their password hash field, so people still can
  use a different pattern to disable password authentication only.

  Mention all account management criteria in the manpage.

PR: bin/71147

17 years agoMFC bridgestp.c r1.35-36, bridgestp.h r1.13, if_bridge.c r1.94-95
thompsa [Thu, 26 Apr 2007 02:08:14 +0000 (02:08 +0000)]
MFC bridgestp.c r1.35-36, bridgestp.h r1.13, if_bridge.c r1.94-95
 - Change the passing of callbacks to a struct in case this needs to be
   extended in the future.
 - Properly move the setting of bstp_linkstate_p to the bridgestp module.

17 years agoMFC if_re.c, rev. 1.89 if_rlreg.h, rev 1.65 to RELENG_6.
yongari [Thu, 26 Apr 2007 00:29:47 +0000 (00:29 +0000)]
MFC if_re.c, rev. 1.89 if_rlreg.h, rev 1.65 to RELENG_6.
  Don't reinitialize the hardware if only PROMISC flag was changed.
  Previously whenever PROMISC mode turned on/off link renegotiation
  occurs and it could resulted in network unavailability for serveral
  seconds.(Depending on switch STP settings it could last several tens
  seconds.)

17 years agoMFC: Don't hold the vnode interlock across a tsleep() in nfs_flush().
jhb [Wed, 25 Apr 2007 20:53:50 +0000 (20:53 +0000)]
MFC: Don't hold the vnode interlock across a tsleep() in nfs_flush().

This was actually contained in the MPSAFE NFS client changes which is not
all being MFC'd, however, this fixes a bug in the previous fix to
nfs_flush().

Guidance from: mohans

17 years agoMFC:
jhb [Wed, 25 Apr 2007 20:47:01 +0000 (20:47 +0000)]
MFC:
- In nfs_flush(), clear the NMODIFIED bit only if there are no dirty
  buffers *and* there are no buffers queued up for writing.
- Keep track of the number of in-progress async direct IO writes in the
  nfsnode.  Make fsync/close wait until all of these drain.  Add a check to
  nfs_getpage() and nfs_putpage().

17 years agoMFC:
ups [Wed, 25 Apr 2007 18:21:24 +0000 (18:21 +0000)]
MFC:
Invalidate all TLBs and page structure caches that may reference a page
for page walk acceleration before releasing it to the free list.

This is required for CPUs implementing page structure caches as described
in the Intel application note:
        "TLBs, Paging-Structure Caches, and Their Invalidation"
         (Document Number: 317080-001)

17 years agoMFC if_sk.c, rev. 1.135 and if_skreg.h, rev. 1.41 to RELENG_6:
yongari [Wed, 25 Apr 2007 00:24:54 +0000 (00:24 +0000)]
MFC if_sk.c, rev. 1.135 and if_skreg.h, rev. 1.41 to RELENG_6:
  Use our own timer for watchdog instead of if_watchdog/if_timer
  interface.

17 years agoMFC: man page minor updates
njl [Tue, 24 Apr 2007 16:01:56 +0000 (16:01 +0000)]
MFC: man page minor updates

17 years agoAdd a new sysctl net.inet.ip6.rthdr0_allowed, which is default off,
gnn [Tue, 24 Apr 2007 11:44:22 +0000 (11:44 +0000)]
Add a new sysctl net.inet.ip6.rthdr0_allowed, which is default off,
to disable the processing of Route Header Type 0 options in IPv6.
This is not really an MFC because currently in HEAD the processing
of these options is disabled unilateraly pending discussion at the IETF
on the future of such headers.

Suggested By: itojun
Reviewed By: jinmei

17 years agoMFC rev. 1.135:
kib [Tue, 24 Apr 2007 11:08:27 +0000 (11:08 +0000)]
MFC rev. 1.135:
Fix the NAMEI zone leak when snapshot was successfully created.

17 years agoMFC rev. 1.208:
kib [Tue, 24 Apr 2007 11:06:12 +0000 (11:06 +0000)]
MFC rev. 1.208:
When LK_NOWAIT is passed as argument to process_worklist_item(), this
does not prevent handle_workitem_remove() from recursing into a blocking
version. Add the dirrem to worklist instead of processing it now if this
is the case.

17 years agoMFC rev. 1.209:
kib [Tue, 24 Apr 2007 11:03:26 +0000 (11:03 +0000)]
MFC rev. 1.209:
Recalculate the NEWBLOCK flag for pagedep structure after the softdep
lock is dropped, since pagedep may be already processed and deallocated.

17 years agoMFC: rev. 1.4
brueffer [Tue, 24 Apr 2007 04:47:21 +0000 (04:47 +0000)]
MFC: rev. 1.4

Remove useless FILES section.

17 years agoForced commit to .mc files to force creation of new .cf files for mergemaster.
gshapiro [Mon, 23 Apr 2007 22:30:23 +0000 (22:30 +0000)]
Forced commit to .mc files to force creation of new .cf files for mergemaster.

17 years agoMFC: Don't go to a whole lot of extra work to handle the race where the
jhb [Mon, 23 Apr 2007 18:08:59 +0000 (18:08 +0000)]
MFC: Don't go to a whole lot of extra work to handle the race where the
new file descriptor is closed out from under us in kern_open().  This race
is already handled and the file will be closed when kern_open() does an
fdrop just before returning.

In addition, by handling the race early, this opens the code up to an
obscure bug where opening a devfs file could replace f_ops in the file
object so that fdrop() will try to close the vnode, but f_vnode never gets
set, so the vnode close routine panics due to the NULL f_vnode.

17 years agoMFC: Correct word index calculation in pci_pending_msix().
jhb [Mon, 23 Apr 2007 18:03:57 +0000 (18:03 +0000)]
MFC: Correct word index calculation in pci_pending_msix().

17 years agoMFC: rev. 1.6
brueffer [Mon, 23 Apr 2007 04:48:23 +0000 (04:48 +0000)]
MFC: rev. 1.6

Xref linsysfs(5).

17 years agoMFC rev. 1.8: IFNAMSIZ includes a terminating null byte.
maxim [Sun, 22 Apr 2007 08:37:21 +0000 (08:37 +0000)]
MFC rev. 1.8: IFNAMSIZ includes a terminating null byte.

17 years agoMFC: edsc(4) -- a dummy Ethernet driver for testing, benchmarking,
yar [Sat, 21 Apr 2007 13:01:04 +0000 (13:01 +0000)]
MFC: edsc(4) -- a dummy Ethernet driver for testing, benchmarking,
and getting an easy intro to writing network interface drivers.

17 years agoMFC rev. 1.10: Add PCI IDs for the HP RMP3 serial port.
marcel [Fri, 20 Apr 2007 22:58:25 +0000 (22:58 +0000)]
MFC rev. 1.10: Add PCI IDs for the HP RMP3 serial port.

17 years agoMFC rev. 1.41: Better handle the -F case.
marcel [Fri, 20 Apr 2007 22:53:20 +0000 (22:53 +0000)]
MFC rev. 1.41: Better handle the -F case.

PR: bin/101979

17 years agoMerge ip_fw2.c:1.163 to RELENG_6:
rwatson [Fri, 20 Apr 2007 18:49:41 +0000 (18:49 +0000)]
Merge ip_fw2.c:1.163 to RELENG_6:

  Shorten text string for ip_fw2 dynamic rules zone by removing the word
  "zone", which is generally not present in zone names.  This reduces the
  incidence of line-wrapping in "vmstat -z " using 80-column displays.

17 years agoInclude a note in the sendmail 8.14.1 release note regarding the libmilter
gshapiro [Fri, 20 Apr 2007 05:12:48 +0000 (05:12 +0000)]
Include a note in the sendmail 8.14.1 release note regarding the libmilter
update.  Unfortunately, this problem (the need to recompile filters) was
found after the MFC.  The release engineering team has asked for this
instead of doing a full backout of sendmail 8.14 in the RELENG_[456]
branches.

Requested by: re (bmah)

17 years agoEliminate gratuitous difference from HEAD (style only).
yar [Thu, 19 Apr 2007 23:34:10 +0000 (23:34 +0000)]
Eliminate gratuitous difference from HEAD (style only).

17 years agoMFC 1.2-1.4:
yar [Thu, 19 Apr 2007 23:29:05 +0000 (23:29 +0000)]
MFC 1.2-1.4:

Explain the change in sed behaviour WRT jumping over the 2nd address.
Add $FreeBSD$.

(Forgot to cvs up -j this file when doing MFC for the respective change
to the sed code.)

17 years agoMFC:
yar [Thu, 19 Apr 2007 23:19:43 +0000 (23:19 +0000)]
MFC:

Don't forget to close the range if we branched over its end
and had no chance to match it by the 2nd address precisely.
Otherwise the unclosed range would bogusly extend to the end
of stream.

Add a regression test.

Explain the decision in the `POSIX' file.

1.44 src/usr.bin/sed/process.c
1.2-1.4 src/usr.bin/sed/POSIX
1.13 src/tools/regression/usr.bin/sed/regress.sh
1.1 src/tools/regression/usr.bin/sed/regress.b2a.out

17 years agoMFC:
yar [Thu, 19 Apr 2007 23:04:51 +0000 (23:04 +0000)]
MFC:

Make the `c' function not forget to print the text in some cases.
Add respective regression tests.

1.42 src/usr.bin/sed/process.c
1.12 src/tools/regression/usr.bin/sed/regress.sh
1.1 src/tools/regression/usr.bin/sed/regress.c0.out
1.1 src/tools/regression/usr.bin/sed/regress.c1.out
1.1 src/tools/regression/usr.bin/sed/regress.c2.out
1.1 src/tools/regression/usr.bin/sed/regress.c3.out

17 years agoMFC rev 1.4:
yar [Thu, 19 Apr 2007 22:53:21 +0000 (22:53 +0000)]
MFC rev 1.4:

Add missing newline to correct failure of the regression test.
According to IEEE Std 1003.1, 2004 "Whenever the pattern space is
written to standard output or a named file, sed shall immediately
follow it with a <newline>."

17 years agoMFC recent small fixes:
yar [Thu, 19 Apr 2007 22:38:38 +0000 (22:38 +0000)]
MFC recent small fixes:

main.c 1.37:
Kill a prototype for the defunct inplace_edit().

process.c 1.41:
Make the comment for cspace() match reality.

process.c 1.43:
Put the MATCH() macro's value in parentheses for safety.

17 years agoMFC revision 1.12
dds [Wed, 18 Apr 2007 06:29:54 +0000 (06:29 +0000)]
MFC revision 1.12
Fix the output of percentage figures, which mistakenly were
the corresponding ratios.

PR: bin/111329

17 years agoMFC: A dash as an argument to the -f option allows lastcomm to
dds [Wed, 18 Apr 2007 05:53:50 +0000 (05:53 +0000)]
MFC: A dash as an argument to the -f option allows lastcomm to
read data from the standard input.

17 years agoMFC completely (up to rev. 1.58)
pav [Tue, 17 Apr 2007 07:48:22 +0000 (07:48 +0000)]
MFC completely (up to rev. 1.58)

Requested by: foxfair