dragonfly.git
15 years agoUse .Fn for functions and macros with parameters.
Sascha Wildner [Sun, 23 Nov 2008 21:55:52 +0000 (21:55 +0000)]
Use .Fn for functions and macros with parameters.

15 years agoSave the value read from TX queue CSR, so we don't test against a stale one.
Sepherosa Ziehau [Sun, 23 Nov 2008 04:28:27 +0000 (04:28 +0000)]
Save the value read from TX queue CSR, so we don't test against a stale one.

15 years agoAdd comment about how to survive blocking operation during percpu member
Sepherosa Ziehau [Sun, 23 Nov 2008 02:58:26 +0000 (02:58 +0000)]
Add comment about how to survive blocking operation during percpu member
interface list iteration.

15 years agoBring in a devclass_get_count(9) manual page.
Sascha Wildner [Sat, 22 Nov 2008 20:08:35 +0000 (20:08 +0000)]
Bring in a devclass_get_count(9) manual page.

Taken-from: FreeBSD

15 years agoCorrect my previous commit which only preserved snapshots/ but not
Sascha Wildner [Sat, 22 Nov 2008 18:36:18 +0000 (18:36 +0000)]
Correct my previous commit which only preserved snapshots/ but not
its contents. While here, expand the comments a bit.

15 years agoRemove MSGF_PRIORITY support. The flag testing and message queue selection
Sepherosa Ziehau [Sat, 22 Nov 2008 11:03:35 +0000 (11:03 +0000)]
Remove MSGF_PRIORITY support.  The flag testing and message queue selection
on the hot code path introduce noticeable performance regression during ip
forwarding (from 667Kpps to 655Kpps w/ 64bytes packet and fastforwarding
enabled on Phenom 9550).

15 years agoParallelize bridge_input step 2/2:
Sepherosa Ziehau [Sat, 22 Nov 2008 09:54:28 +0000 (09:54 +0000)]
Parallelize bridge_input step 2/2:
- Remove bridge's serializer from bridge_input()/bridge_output() path
- Push down bridge's serializer holding into bridge_span()
- Use bridge_handoff() whenever possible
- Add a simplified version of bridge_broadcast() to be called by bridge_start()
- Remove functions which are no longer used

15 years agoParallelize bridge_input step 1.85/2
Sepherosa Ziehau [Sat, 22 Nov 2008 05:57:31 +0000 (05:57 +0000)]
Parallelize bridge_input step 1.85/2
Add a boolean field in bridge_softc to indicate whether we have span ports
to tap packets to.  Once bridge's serializer is removed from bridge_input,
we could push the serializer holding down into bridge_span.

15 years agobstp_input() always returns NULL, so nuke its return value and let caller
Sepherosa Ziehau [Sat, 22 Nov 2008 04:30:28 +0000 (04:30 +0000)]
bstp_input() always returns NULL, so nuke its return value and let caller
set m to NULL.

15 years agoFactor out ether_reinput_oncpu(). Mainly used by pseudo interfaces to change
Sepherosa Ziehau [Sat, 22 Nov 2008 04:00:53 +0000 (04:00 +0000)]
Factor out ether_reinput_oncpu().  Mainly used by pseudo interfaces to change
mbuf's input interface.

15 years ago- IFF_MONITOR processing will happen in ether_input_oncpu()
Sepherosa Ziehau [Fri, 21 Nov 2008 13:37:02 +0000 (13:37 +0000)]
- IFF_MONITOR processing will happen in ether_input_oncpu()
- Don't count parent interface's if_noproto if vlan interface is not up;
  just silently discard the incoming packet like a real interface

15 years agoWhite space changes
Sepherosa Ziehau [Fri, 21 Nov 2008 12:43:42 +0000 (12:43 +0000)]
White space changes

15 years ago- Update bridge ifnet's if_imcasts
Sepherosa Ziehau [Fri, 21 Nov 2008 12:13:02 +0000 (12:13 +0000)]
- Update bridge ifnet's if_imcasts
- Update comment
- Minor white space changes

15 years agoParallelize bridge_input step 1.8/2:
Sepherosa Ziehau [Fri, 21 Nov 2008 11:11:03 +0000 (11:11 +0000)]
Parallelize bridge_input step 1.8/2:
Parallelize bridge member interfaces list --
o  Split bridge_iflist into percpu part and shared part (bridge_ifinfo).
   The shared part contains STP related information.
o  Put create bridge_iflist on each CPU and put it onto percpu member
   interface list.
o  All of the STP operation is still serialized by bridge's serializer,
   except testing member interface's STP state.
o  Span interfaces no longer have unused STP information.

15 years agoSince kmalloc's limit testing is not synchronized across CPUs, we raise
Sepherosa Ziehau [Thu, 20 Nov 2008 14:21:01 +0000 (14:21 +0000)]
Since kmalloc's limit testing is not synchronized across CPUs, we raise
the limit by another 1/8 to take the loosememuse into account.

15 years agoMake apps using '#define _POSIX_C_SOURCE' compile.
Hasso Tepper [Thu, 20 Nov 2008 11:27:24 +0000 (11:27 +0000)]
Make apps using '#define _POSIX_C_SOURCE' compile.

15 years agoAdjust list width.
Sascha Wildner [Wed, 19 Nov 2008 19:30:02 +0000 (19:30 +0000)]
Adjust list width.

15 years agoRaise WARNS to 6 and silence resulting warnings.
Sascha Wildner [Wed, 19 Nov 2008 18:41:30 +0000 (18:41 +0000)]
Raise WARNS to 6 and silence resulting warnings.

15 years agoRaise WARNS to 6 and silence resulting warnings.
Sascha Wildner [Wed, 19 Nov 2008 17:46:55 +0000 (17:46 +0000)]
Raise WARNS to 6 and silence resulting warnings.

15 years agoDon't use "timeout" mode for RX HC. The "collect" mode gives much simpler
Sepherosa Ziehau [Wed, 19 Nov 2008 13:57:49 +0000 (13:57 +0000)]
Don't use "timeout" mode for RX HC.  The "collect" mode gives much simpler
RX HC formula:
  if (packets > rx_bds || time since 1st packet > rx_ticks)
    generate interrupt

Adjust RX BDs to 128, and RX ticks to 125.  This gives 12000~14000/s interrupt
rate across all ranges of packet size; this also gives good RX performance:
- 1GB line rate for bulk data (TCP/UDP)
- Peak packet per second rate of the hardware

Thank Brad <brad@comstyle.com> very much!

15 years agoHopefully more bulletproof workaround to fix problems with SATA ATAPI
Hasso Tepper [Wed, 19 Nov 2008 08:12:16 +0000 (08:12 +0000)]
Hopefully more bulletproof workaround to fix problems with SATA ATAPI
drives - don't allow DMA for requests with length not multiple of 16 bytes.
Matches the behaviour of the Linux ATA stack.

15 years agoWe don't have /dev/audio support any more, but make it symlink to /dev/dsp
Hasso Tepper [Wed, 19 Nov 2008 07:46:05 +0000 (07:46 +0000)]
We don't have /dev/audio support any more, but make it symlink to /dev/dsp
to preserve compatibility with older programs (all pkgsrc apps by default
up to 2008Q3).

15 years agoIf a user has turned on snapshots in /tmp and has clear_tmp_enable set,
Sascha Wildner [Tue, 18 Nov 2008 12:56:50 +0000 (12:56 +0000)]
If a user has turned on snapshots in /tmp and has clear_tmp_enable set,
do not remove the /tmp/snapshots/ dir (similar to lost+found/).

15 years agoMake ath(4) compilable into the kernel and add it to LINT.
Sascha Wildner [Mon, 17 Nov 2008 11:55:20 +0000 (11:55 +0000)]
Make ath(4) compilable into the kernel and add it to LINT.

Adapted-from: FreeBSD

15 years agoBring in some fixes from FreeBSD. Amongst other fixes, like panics in debug
Hasso Tepper [Mon, 17 Nov 2008 07:45:48 +0000 (07:45 +0000)]
Bring in some fixes from FreeBSD. Amongst other fixes, like panics in debug
mode, it should also workaround the problems (interrupt storms etc) with
SATA ATAPI devices many of us have seen lately.

Obtained-from: FreeBSD

15 years agoFix some typos in user visible messages.
Sascha Wildner [Sun, 16 Nov 2008 18:44:00 +0000 (18:44 +0000)]
Fix some typos in user visible messages.

15 years agoRestore rev1.6 in different form
Sepherosa Ziehau [Sat, 15 Nov 2008 12:34:38 +0000 (12:34 +0000)]
Restore rev1.6 in different form

15 years agoReturn the value returned by lwkt_domsg()
Sepherosa Ziehau [Sat, 15 Nov 2008 11:58:16 +0000 (11:58 +0000)]
Return the value returned by lwkt_domsg()

15 years agoParallelize bridge_input step 1/2:
Sepherosa Ziehau [Sat, 15 Nov 2008 11:46:37 +0000 (11:46 +0000)]
Parallelize bridge_input step 1/2:
Parallelize bridge route information.  See the commet at the head of
net/if_bridge.c for the detailed information.

15 years ago- Defer deep copyout which happens in bridge_ioctl_{gifs,rts}(), so that
Sepherosa Ziehau [Sat, 15 Nov 2008 04:50:23 +0000 (04:50 +0000)]
- Defer deep copyout which happens in bridge_ioctl_{gifs,rts}(), so that
  all bridge "get" ioctls could be dispatched to BRIDGE_CFGPORT.
  This could ease upcoming bridge_input parallelizing.
- Change the handling of ifbac_len==0 in bridge_ioctl_rts() a little bit
  to match bridge_ioctl_gifs()

15 years agoDeactivate -Werror for now.
Sascha Wildner [Fri, 14 Nov 2008 15:04:42 +0000 (15:04 +0000)]
Deactivate -Werror for now.

15 years agoDefault timeout is 1200
Sepherosa Ziehau [Fri, 14 Nov 2008 12:52:04 +0000 (12:52 +0000)]
Default timeout is 1200

15 years ago- Defer bridge callouts to BRIDGE_CFGPORT using dropable priority message.
Sepherosa Ziehau [Fri, 14 Nov 2008 12:48:06 +0000 (12:48 +0000)]
- Defer bridge callouts to BRIDGE_CFGPORT using dropable priority message.
- Remove unnecessary callout_stop(); bridge_stop() has already done those.

15 years agoSome mdoc cleanup: Improve markup, adjust list width.
Sascha Wildner [Thu, 13 Nov 2008 21:46:03 +0000 (21:46 +0000)]
Some mdoc cleanup: Improve markup, adjust list width.

15 years agoUpdate and switch to UTF-8.
Sascha Wildner [Thu, 13 Nov 2008 21:09:48 +0000 (21:09 +0000)]
Update and switch to UTF-8.

15 years agoSerialize bridge up/down by netisr0; this could ease the upcoming bridge_input
Sepherosa Ziehau [Thu, 13 Nov 2008 11:30:25 +0000 (11:30 +0000)]
Serialize bridge up/down by netisr0; this could ease the upcoming bridge_input
parallelizing work.

15 years agoMT_TAG has gone for a long timer, GC bridge_handoff_notag()
Sepherosa Ziehau [Thu, 13 Nov 2008 10:56:40 +0000 (10:56 +0000)]
MT_TAG has gone for a long timer, GC bridge_handoff_notag()

15 years agoAllow an error code to be returned in the head.error element of the ioctl.
Matthew Dillon [Thu, 13 Nov 2008 02:23:53 +0000 (02:23 +0000)]
Allow an error code to be returned in the head.error element of the ioctl.

15 years agoHAMMER: Correct minor oops in last commit. Do not allow downgrading.
Matthew Dillon [Thu, 13 Nov 2008 02:23:29 +0000 (02:23 +0000)]
HAMMER: Correct minor oops in last commit.  Do not allow downgrading.

15 years agoHAMMER:
Matthew Dillon [Thu, 13 Nov 2008 02:18:43 +0000 (02:18 +0000)]
HAMMER:

* Add version management ioctls to allow continued work on the filesystem
  without interfering with production systems.

* Refuse to mount an unsupported version.

15 years agoHAMMER utilities:
Matthew Dillon [Thu, 13 Nov 2008 02:04:27 +0000 (02:04 +0000)]
HAMMER utilities:

* Add the 'version' and 'version-upgrade' directives.

15 years agoSilence -Wold-style-definition.
Sascha Wildner [Wed, 12 Nov 2008 21:44:59 +0000 (21:44 +0000)]
Silence -Wold-style-definition.

15 years agoNo .Pp needed here.
Sascha Wildner [Wed, 12 Nov 2008 15:18:26 +0000 (15:18 +0000)]
No .Pp needed here.

15 years ago- Update comment: bridge_rtupdate() is no longer called within interrupt
Sepherosa Ziehau [Wed, 12 Nov 2008 13:46:04 +0000 (13:46 +0000)]
- Update comment: bridge_rtupdate() is no longer called within interrupt
  threads.
- Use M_WAITOK when allocating bridge route node.

15 years agoAllocate if_start_nmsg from M_LWKTMSG
Sepherosa Ziehau [Wed, 12 Nov 2008 11:03:28 +0000 (11:03 +0000)]
Allocate if_start_nmsg from M_LWKTMSG

15 years agoFix a bootstrapping issue, UF_NOHISTORY may not exist on older systems.
Matthew Dillon [Wed, 12 Nov 2008 00:16:46 +0000 (00:16 +0000)]
Fix a bootstrapping issue, UF_NOHISTORY may not exist on older systems.

Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
15 years agoGrab some changes from FreeBSD:
Peter Avalos [Tue, 11 Nov 2008 18:06:12 +0000 (18:06 +0000)]
Grab some changes from FreeBSD:

-Use getopt.
-Use err/warn.

While I'm here, fix some whitespace, spelling, and unneeded (void) casts.

15 years agoRecord number of valid ifaddr containers in ifaddr, so we could use
Sepherosa Ziehau [Tue, 11 Nov 2008 13:48:01 +0000 (13:48 +0000)]
Record number of valid ifaddr containers in ifaddr, so we could use
atomic_fetchadd_int() to avoid N->0 race instead of using thread based
serialization.  Remove the netmsg embedded in ifaddr_container; it is
no longer needed/used.

15 years ago- Use priority message to carry out ipfw callout.
Sepherosa Ziehau [Tue, 11 Nov 2008 12:59:11 +0000 (12:59 +0000)]
- Use priority message to carry out ipfw callout.
- Mark the callout message with DROPABLE flag, so we don't need to
  do additional netmsg_service_sync() in module event function and
  the callout function itself could much straightforward.

15 years ago- If we receive redirect or host dead ICMP message due to packets sent on
Sepherosa Ziehau [Tue, 11 Nov 2008 10:46:58 +0000 (10:46 +0000)]
- If we receive redirect or host dead ICMP message due to packets sent on
  TCP sockets, we need to go through all CPUs to check per-cpu TCP inpcbs.
- If we receive redirect ICMP message due to packets sent on UDP sockets,
  we need to go through all CPUs to free UDP inpcbs' cached route entry.

Reported-by: pavalos@
Tested-by: pavalos@
15 years agoAdd -f and -v options to chflags.
Peter Avalos [Tue, 11 Nov 2008 06:56:47 +0000 (06:56 +0000)]
Add -f and -v options to chflags.

-f ignores failures if chflags can't modify the flags.
-v prints file names as they are processed.  -vv prints the flags changes.

Obtained-from: FreeBSD

15 years agoFix a copy/paste from chmod(1). We're changing file flags, not modes.
Peter Avalos [Tue, 11 Nov 2008 06:28:19 +0000 (06:28 +0000)]
Fix a copy/paste from chmod(1).  We're changing file flags, not modes.

While I'm here, bring in some markup fixes from FreeBSD.
-List some available octects.
-Mention securelevel could affect the ability to change flags.
-Add info on utilities that may or may not be aware of file flags.
-Group equivalent flags together and delete the `aliases' section.

Obtained-from: FreeBSD

15 years agoConditionalize the lchflags() call since chflags(1) is a bootstrap tool.
Peter Avalos [Tue, 11 Nov 2008 05:53:07 +0000 (05:53 +0000)]
Conditionalize the lchflags() call since chflags(1) is a bootstrap tool.

15 years ago* Change hc_remove() to return a -errno if an error occurs instead of -1.
Matthew Dillon [Tue, 11 Nov 2008 04:36:00 +0000 (04:36 +0000)]
* Change hc_remove() to return a -errno if an error occurs instead of -1.

* Adjust most hc_remove() calls to xremove(), which calls hc_remove() and
  retries with a chflags/remove sequence if the initial removal fails with
  EPERM.  This should help when there are hardlinks to a file marked schg.

15 years agoAdd an interface to the lchflags(2) syscall. The new -h option will
Peter Avalos [Tue, 11 Nov 2008 02:55:13 +0000 (02:55 +0000)]
Add an interface to the lchflags(2) syscall.  The new -h option will
change the flags on the symlink.

Obtained-from: FreeBSD

15 years agoFix flags handling for the install program. Properly set and clear flags
Matthew Dillon [Tue, 11 Nov 2008 01:51:24 +0000 (01:51 +0000)]
Fix flags handling for the install program.  Properly set and clear flags
as requested on the command line, retaining any unspecified flags on the
source when creating the target.

The dump and history flags are special-cased.  The dump flag is not set
unless explicitly specified (as per previous behavior), and the user-history
flag is not transfered to the target and is left as the system desired
when the target was created.

15 years agoFix typo in comment.
Peter Avalos [Tue, 11 Nov 2008 01:02:40 +0000 (01:02 +0000)]
Fix typo in comment.
Use warn instead of perror.
Close file after opening to prevent leaks.

Obtained-from: FreeBSD

15 years agoAdd the lchflags() syscall.
Peter Avalos [Tue, 11 Nov 2008 00:55:49 +0000 (00:55 +0000)]
Add the lchflags() syscall.

This is essentially the same as chflags(), but it operates on the symlink,
not on the underlying file.

Documentation-from: FreeBSD
Reviewed-by: dillon
15 years agoSome small fixes.
Sascha Wildner [Mon, 10 Nov 2008 23:47:31 +0000 (23:47 +0000)]
Some small fixes.

15 years agoAdjust uio(9) a bit more to reality.
Sascha Wildner [Mon, 10 Nov 2008 22:59:00 +0000 (22:59 +0000)]
Adjust uio(9) a bit more to reality.

15 years agoAdd an entry for lchflags using the same number as FreeBSD.
Peter Avalos [Mon, 10 Nov 2008 22:11:45 +0000 (22:11 +0000)]
Add an entry for lchflags using the same number as FreeBSD.

15 years agoFollow symbolic links named as command line arguments if run without -R.
Peter Avalos [Mon, 10 Nov 2008 21:37:25 +0000 (21:37 +0000)]
Follow symbolic links named as command line arguments if run without -R.

Obtained-from: FreeBSD

15 years agoAdd required range checks prior to kmalloc()ing socket option buffer space.
Matthew Dillon [Mon, 10 Nov 2008 18:16:52 +0000 (18:16 +0000)]
Add required range checks prior to kmalloc()ing socket option buffer space.

15 years agoFix 64-bit warning.
Sascha Wildner [Mon, 10 Nov 2008 16:10:34 +0000 (16:10 +0000)]
Fix 64-bit warning.

15 years agoFix warnings.
Sascha Wildner [Mon, 10 Nov 2008 15:58:20 +0000 (15:58 +0000)]
Fix warnings.

15 years agoFix a 64-bit warning. While here, also fix a gcc34 warning.
Sascha Wildner [Mon, 10 Nov 2008 15:28:13 +0000 (15:28 +0000)]
Fix a 64-bit warning. While here, also fix a gcc34 warning.

15 years agoFix 64-bit warnings.
Sascha Wildner [Mon, 10 Nov 2008 14:56:33 +0000 (14:56 +0000)]
Fix 64-bit warnings.

15 years agoFix 64-bit warnings.
Sascha Wildner [Mon, 10 Nov 2008 14:30:02 +0000 (14:30 +0000)]
Fix 64-bit warnings.

Slightly modified from the patches which were attached to the bug report.

Submitted-by: Michel Salim <salimma@fedoraproject.org>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1028>

15 years agoReconfigure default interrupt moderation parameters:
Sepherosa Ziehau [Mon, 10 Nov 2008 14:05:03 +0000 (14:05 +0000)]
Reconfigure default interrupt moderation parameters:
- Adjust TX ticks and TX bds.  Add a note in comment that setting TX ticks
  to 1023 will have _unexpected_ effect.  With this TX ticks/bds setting:
  1472bytes UDP payload will cause ~1200HZ interrupt (ticks controls TX HC)
  1bytes UDP payload will cause ~5100HZ interrupt (bds controls TX HC)
- Restore Broadcom's default RX ticks settings (18).  Set RX bds to 12.
  This should be able to restore TCP stream RX performance.  Add a note
  in comment that setting RX ticks to any value above 13 will make RX bds
  control RX HC.  It is found out by using following method:
  Assume for bulk data RX, RX ticks should always control RX HC if RX bds is
  relative large.  So RX bds is set to 128, which should be large enough but
  less than the limit (255).  Other side of this test TXes 1472bytes payload
  UDP datagrams.  The result:
      RX ticks    Interrupt rate
         12          livelock
         13           47800
         14            1270
         15            1270
         16            1270
         17            1270
         18            1270
         19            1270
         20            1270
         30            1270
  Linux bnx2 says the RX ticks unit is microsecond, while it looks incorrect.
  FreeBSD bce(4) does not have any comment about the RX ticks setting.
  We probably need to find a dynamic RX bds tuning mechanism to prevent system
  from being livelocked if full speed tiny packets are injected.

15 years agoFix amd64 warnings.
Sascha Wildner [Mon, 10 Nov 2008 05:00:12 +0000 (05:00 +0000)]
Fix amd64 warnings.

15 years agoRaise WARNS to 6 and fix all resulting warnings.
Sascha Wildner [Mon, 10 Nov 2008 04:59:45 +0000 (04:59 +0000)]
Raise WARNS to 6 and fix all resulting warnings.

15 years ago* Raise WARNS to 6 and fix all resulting warnings.
Sascha Wildner [Mon, 10 Nov 2008 02:05:31 +0000 (02:05 +0000)]
* Raise WARNS to 6 and fix all resulting warnings.

* Fix amd64 warnings.

* Sync usage() and manual page with getopt() optstring.

* Clean up the manual page a bit.

15 years agoMove the HAMMER option around a little and add ALTQ to the default VKERNEL
Matthew Dillon [Sun, 9 Nov 2008 18:57:17 +0000 (18:57 +0000)]
Move the HAMMER option around a little and add ALTQ to the default VKERNEL
config.

15 years agoUpdate physio(9) for physread()/physwrite() separation.
Sascha Wildner [Sun, 9 Nov 2008 10:59:14 +0000 (10:59 +0000)]
Update physio(9) for physread()/physwrite() separation.

15 years agoWe don't need to register route threads for netmsg_service_sync() anymore;
Sepherosa Ziehau [Sun, 9 Nov 2008 10:50:15 +0000 (10:50 +0000)]
We don't need to register route threads for netmsg_service_sync() anymore;
route threads no longer do network output.

15 years agoUse priority messages to carry out syncache callout function.
Sepherosa Ziehau [Sun, 9 Nov 2008 10:32:16 +0000 (10:32 +0000)]
Use priority messages to carry out syncache callout function.

Reviewed-by: dillon@
15 years agothen -> than
Sascha Wildner [Sun, 9 Nov 2008 10:27:47 +0000 (10:27 +0000)]
then -> than

15 years ago- During ARP resolving, current thread msgport or current CPU's netisr msgport
Sepherosa Ziehau [Sun, 9 Nov 2008 10:18:42 +0000 (10:18 +0000)]
- During ARP resolving, current thread msgport or current CPU's netisr msgport
  (if current is not TDF_NETWORK) is recorded in addition to the mbuf.
- When ARP resolving is finished, the recorded mbuf is dispatched to the
  recorded msgport to do network output using priority message.

This eliminates the last network output in route threads.

Reviewed-by: dillon@
15 years agoAdd a bus_get_resource(9) manual page (based on bus_set_resource(9)).
Sascha Wildner [Sun, 9 Nov 2008 09:48:41 +0000 (09:48 +0000)]
Add a bus_get_resource(9) manual page (based on bus_set_resource(9)).

15 years ago- Add priority message queue to msgport. Send a message with MSGF_PRIORITY
Sepherosa Ziehau [Sun, 9 Nov 2008 09:20:09 +0000 (09:20 +0000)]
- Add priority message queue to msgport.  Send a message with MSGF_PRIORITY
  flag will queue the message into the priority message queue of the target
  port.  The priority message queue takes precendence over normal message
  queue, so the messages with MSGF_PRIORITY flag will be processed before
  other messages on the same target port.  This could be used by defering
  callout or operation that should not be delayed too long on the target
  port.
- Add dropmsg function to msgport.  Message must be marked with MSGF_DROPABLE,
  else dropmsg operation is not allowed.  Message marked with MSGF_DROPABLE
  is not waitable, i.e. you could not call domsg on this kind of message.
  Currently only thread msgport supports this operation and this operation
  must be performed in the same thread of the msgport's owner thread.

Discussed-with: dillon@

15 years agoAdd a new feature to mirror-copy and mirror-write. If the target PFS does
Matthew Dillon [Sun, 9 Nov 2008 05:22:56 +0000 (05:22 +0000)]
Add a new feature to mirror-copy and mirror-write.  If the target PFS does
not exist these directives will now ask you whether you want to create it
or not, providing a VERY convenient method for creating a new slave PFS.

WARNING! This adds another packet to the protocol to make the initial
handshake symmetrical, allowing the target to get information on the
originator's shared-uuid before the operation is initiated.  If running
to or from a remote host both sides must be running the same version of
the hammer utility.

Submitted-by: Michael Neumann <mneumann@ntecs.de>
15 years agoThe workaround is no longer needed after netinet/tcp_subr.c rev1.62
Sepherosa Ziehau [Sat, 8 Nov 2008 03:38:23 +0000 (03:38 +0000)]
The workaround is no longer needed after netinet/tcp_subr.c rev1.62

15 years agoOur raw socket expects ip.{ip_len,ip_off} in host byte order.
Sepherosa Ziehau [Wed, 5 Nov 2008 14:08:41 +0000 (14:08 +0000)]
Our raw socket expects ip.{ip_len,ip_off} in host byte order.

Reported-by: hasso@
Tested-by: hasso@
15 years agocrc32()/crc32_ext() prototypes are for userland.
Sascha Wildner [Mon, 3 Nov 2008 08:41:31 +0000 (08:41 +0000)]
crc32()/crc32_ext() prototypes are for userland.

15 years agoBring in some changes to bsd.sys.mk from FreeBSD.
Peter Avalos [Mon, 3 Nov 2008 00:25:45 +0000 (00:25 +0000)]
Bring in some changes to bsd.sys.mk from FreeBSD.

-Werror is turned on for i386/gcc41 builds (can be overridden with
 NO_WERROR.
-Use CWARNFLAGS so they can be overridden easily.
-Introduce CSTD which allows a Makefile to specify the precise
 dialect of C.

Reviewed-by: swildner
15 years agoUse %z for printing size_t/ssize_t.
Sascha Wildner [Sun, 2 Nov 2008 21:52:46 +0000 (21:52 +0000)]
Use %z for printing size_t/ssize_t.

15 years agoClean up a bit.
Sascha Wildner [Sun, 2 Nov 2008 18:56:47 +0000 (18:56 +0000)]
Clean up a bit.

* Improve wording and shuffle some paragraphs.

* Reference ffs(5).

* Mention 'hammer cleanup'.

* Use uppercase names for labels like share/examples/rconfig/hammer.sh does.

* Add URL for the HAMMER paper and add reference to NYCBSDCon slides.

15 years agoBump .Dd to when it was updated in DragonFly.
Sascha Wildner [Sun, 2 Nov 2008 18:29:07 +0000 (18:29 +0000)]
Bump .Dd to when it was updated in DragonFly.

15 years agoRegenerate the pciconf(8) database from the following files:
Sascha Wildner [Sun, 2 Nov 2008 17:59:37 +0000 (17:59 +0000)]
Regenerate the pciconf(8) database from the following files:

Hart:    Jan 22, 2008 (version 671)
Boemler: Nov  1, 2008
Mares:   Oct 27, 2008

15 years agoThe priority mask used to compartmentalize the comparison to determine
Matthew Dillon [Sat, 1 Nov 2008 23:31:19 +0000 (23:31 +0000)]
The priority mask used to compartmentalize the comparison to determine
whether a preemption is needed was covering the entire process priority
space instead of just one bucket.

Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
15 years agoFix comment.
Sascha Wildner [Sat, 1 Nov 2008 23:19:08 +0000 (23:19 +0000)]
Fix comment.

15 years agoFactor out _lwkt_pushmsg() and _lwkt_enqueue_reply(); these put message
Sepherosa Ziehau [Sat, 1 Nov 2008 12:30:23 +0000 (12:30 +0000)]
Factor out _lwkt_pushmsg() and _lwkt_enqueue_reply(); these put message
enqueuing and flags' adjusting into common place.

15 years agoAll of the thread port backend functions are static.
Sepherosa Ziehau [Sat, 1 Nov 2008 11:43:40 +0000 (11:43 +0000)]
All of the thread port backend functions are static.

15 years ago- Add comment for lwkt_initport_serialize()
Sepherosa Ziehau [Sat, 1 Nov 2008 11:17:52 +0000 (11:17 +0000)]
- Add comment for lwkt_initport_serialize()
- Adjust the comment of lwkt_getport() a little bit and put it to the
  proper place.

15 years agoUse the same indentation as the rest of the functions in this file.
Sepherosa Ziehau [Sat, 1 Nov 2008 10:38:21 +0000 (10:38 +0000)]
Use the same indentation as the rest of the functions in this file.

15 years agoUse the same indentation as the rest of the functions in this file.
Sepherosa Ziehau [Sat, 1 Nov 2008 10:29:31 +0000 (10:29 +0000)]
Use the same indentation as the rest of the functions in this file.

15 years agoInstall pr_ctlport for the rest of the protocols.
Sepherosa Ziehau [Sat, 1 Nov 2008 04:22:16 +0000 (04:22 +0000)]
Install pr_ctlport for the rest of the protocols.

Reported-by: tomas@
15 years agoSync with FreeBSD:
Peter Avalos [Sat, 1 Nov 2008 02:49:15 +0000 (02:49 +0000)]
Sync with FreeBSD:

Sync program's usage() with manpage's SYNOPSIS.

Added the EXIT STATUS section where appropriate.

Fixed handling of manpage subdirectories.

Fixed one memory leak.

Look into machine-specific manpage subdirectories too.

Obtained-from: FreeBSD

15 years agoPut unknown hardware ids print back into bootverbose, mainly to suppress it
Sepherosa Ziehau [Thu, 30 Oct 2008 11:27:40 +0000 (11:27 +0000)]
Put unknown hardware ids print back into bootverbose, mainly to suppress it
on a box with rl(4).

15 years agoUse atomic_fetchadd_int() to avoid N->0 race when freeing sfbuf. The
Sepherosa Ziehau [Thu, 30 Oct 2008 11:03:29 +0000 (11:03 +0000)]
Use atomic_fetchadd_int() to avoid N->0 race when freeing sfbuf.  The
serializer field is no longer needed.

Hint-from: dillon@
Reported-by: pavalos@
Tested-by: pavalos@