dragonfly.git
15 years agoAdd _SC_PAGE_SIZE as alias to _SC_PAGESIZE to make modern software pieces
Hasso Tepper [Mon, 22 Sep 2008 09:13:21 +0000 (09:13 +0000)]
Add _SC_PAGE_SIZE as alias to _SC_PAGESIZE to make modern software pieces
happy.

15 years agoHAMMER: Fix a couple of minor non-corrupting bugs in HAMMER.
Matthew Dillon [Sun, 21 Sep 2008 02:58:31 +0000 (02:58 +0000)]
HAMMER: Fix a couple of minor non-corrupting bugs in HAMMER.

* Fix a few cases where the kmalloc space for hammer inodes can become
  exhausted.  Add calls to hammer_inode_waitreclaims() in several places
  where modified inodes can build up without the related vnodes
  necessarily being VOP_OPEN()'d or VOP_CLOSE()'d.

* Fix a deadlock which can occur in fsync().  fsync() was holding the vnode
  lock while waiting for the inode to sync.  The inode sync can be held up
  indefinitely by dependancies on other vnodes, so holding the lock can
  result in a deadlock.

* Fix a bug where ap->a_ctllen test results were being ignored.  This
  path is only used by mountd.

Reported-by: Francois Tigeot <ftigeot@wolfpond.org>,
Damian Lubosch <dl@pless.xiqit.de>

15 years ago- Add KTR of ethernet operations
Sepherosa Ziehau [Sat, 20 Sep 2008 10:53:16 +0000 (10:53 +0000)]
- Add KTR of ethernet operations
- Measure the cost of ether_input_chain
- Measure the cost of ether_input_dispatch

15 years ago* Fix a bug in runcmd() - the argv[] list was not NULL terminated.
Matthew Dillon [Sat, 20 Sep 2008 07:08:06 +0000 (07:08 +0000)]
* Fix a bug in runcmd() - the argv[] list was not NULL terminated.

* Record PFS's by their unique_uuid instead of their pfs_id, allowing
  the clean operation to cover multiple PFSs on multiple HAMMER mounts.

15 years agoIf snapshots are disabled and the snapshots directory contains no
Matthew Dillon [Sat, 20 Sep 2008 06:46:22 +0000 (06:46 +0000)]
If snapshots are disabled and the snapshots directory contains no
snapshot softlinks, prune using 'prune-everything' instead of 'prune'.

15 years agoAdd PFIL_MPSAFE flag to give hint to pfil(9) that the underlying firewall
Sepherosa Ziehau [Sat, 20 Sep 2008 06:08:13 +0000 (06:08 +0000)]
Add PFIL_MPSAFE flag to give hint to pfil(9) that the underlying firewall
code is MPSAFE.  Set this flag for ipfw(4).

15 years agoInstead of rejecting the eligible packet back into the correct cpu,
Sepherosa Ziehau [Sat, 20 Sep 2008 04:36:51 +0000 (04:36 +0000)]
Instead of rejecting the eligible packet back into the correct cpu,
dummynet(4) now reinjects the eligible packet back into correct
network thread.

15 years agoAdd TDF_NETWORK lwkt flag, so various assertion could be performed to make sure
Sepherosa Ziehau [Sat, 20 Sep 2008 04:31:02 +0000 (04:31 +0000)]
Add TDF_NETWORK lwkt flag, so various assertion could be performed to make sure
that packets are processed in network threads (i.e. controlled enviroment)

15 years agoAdd the 'hammer cleanup' command. This is a meta-command which will
Matthew Dillon [Sat, 20 Sep 2008 04:23:21 +0000 (04:23 +0000)]
Add the 'hammer cleanup' command.  This is a meta-command which will
process specified HAMMER filesystem or, if none specified, locate all
mounted HAMMER filesystems and run snapshot, pruning, and reblocking
commands a appropriate.

If the <fs>/snapshots directory or <fs>/snapshots/config file does not
exist, they will be created.

15 years agoRemove dereference of uninitialized 'i'.
Sascha Wildner [Fri, 19 Sep 2008 18:48:33 +0000 (18:48 +0000)]
Remove dereference of uninitialized 'i'.

Found-by: LLVM/Clang Static Analyzer
15 years agoRemove dereference of 'i' which is never set. getopt() will take care of
Sascha Wildner [Fri, 19 Sep 2008 17:49:31 +0000 (17:49 +0000)]
Remove dereference of 'i' which is never set. getopt() will take care of
printing an "illegal option" message anyway.

Found-by: LLVM/Clang Static Analyzer
15 years agoUpdate comment
Sepherosa Ziehau [Fri, 19 Sep 2008 12:23:56 +0000 (12:23 +0000)]
Update comment

15 years agoCheck ipfw static rules generation after get the BGL
Sepherosa Ziehau [Fri, 19 Sep 2008 12:04:09 +0000 (12:04 +0000)]
Check ipfw static rules generation after get the BGL

15 years agoAdd workaround for JMC250A2 under 10/100 hdx mode.
Sepherosa Ziehau [Fri, 19 Sep 2008 11:36:40 +0000 (11:36 +0000)]
Add workaround for JMC250A2 under 10/100 hdx mode.

Information provided by Ethen <ethanhsiao@jmicron.com>

15 years ago- Add workaround field in softc
Sepherosa Ziehau [Fri, 19 Sep 2008 11:12:33 +0000 (11:12 +0000)]
- Add workaround field in softc
- Move "use extended fifo depth" from caps to workaround

15 years agoAs a safety measure, don't install dma with setuid bit until it has undergone
Simon Schubert [Fri, 19 Sep 2008 00:36:57 +0000 (00:36 +0000)]
As a safety measure, don't install dma with setuid bit until it has undergone
a thorough review.

15 years agoUnbreak buildworld a slightly different way. Adjust null.h to not
Matthew Dillon [Thu, 18 Sep 2008 16:08:32 +0000 (16:08 +0000)]
Unbreak buildworld a slightly different way.  Adjust null.h to not
include internal structures when being included from userland.

15 years agoIn bridge(4), if the packet is tagged for dummynet or is tagged for tranparent
Sepherosa Ziehau [Thu, 18 Sep 2008 11:55:20 +0000 (11:55 +0000)]
In bridge(4), if the packet is tagged for dummynet or is tagged for tranparent
forwarding, we simply drop it; tranparent forwarding probably will never work,
and dummynet support is not yet ready.

15 years agoUnbreak buildworld: define _KERNEL_STRUCTURES for struct netexport.
Sascha Wildner [Thu, 18 Sep 2008 11:54:25 +0000 (11:54 +0000)]
Unbreak buildworld: define _KERNEL_STRUCTURES for struct netexport.

15 years agoIf there are no pfil hooks, just remove the dummynet tag (for packets that
Sepherosa Ziehau [Thu, 18 Sep 2008 11:19:42 +0000 (11:19 +0000)]
If there are no pfil hooks, just remove the dummynet tag (for packets that
were trapped in pipes/queues before pfil hooks were deleted) and skip all
firwall related operation.

15 years ago* Implement the ability to export NULLFS mounts via NFS.
Matthew Dillon [Wed, 17 Sep 2008 21:44:25 +0000 (21:44 +0000)]
* Implement the ability to export NULLFS mounts via NFS.

* Enforce PFS isolation when exporting a HAMMER PFS via a NULLFS mount.

NOTE: Exporting anything other then HAMMER PFS root's via nullfs does
NOT protect the parent of the exported directory from being accessed via NFS.

Generally speaking this feature is implemented by giving each nullfs mount
a synthesized fsid based on what is being mounted and implementing the
NFS export infrastructure in the nullfs code instead of just bypassing those
functions to the underyling VFS.

15 years agoCall ifnet.if_output() in netisr0, so it executes in a controlled enviroment.
Sepherosa Ziehau [Wed, 17 Sep 2008 13:38:28 +0000 (13:38 +0000)]
Call ifnet.if_output() in netisr0, so it executes in a controlled enviroment.

15 years ago'dst' does not need to be static
Sepherosa Ziehau [Wed, 17 Sep 2008 11:46:43 +0000 (11:46 +0000)]
'dst' does not need to be static

15 years agoEmbed a netmsg in ifaddr_container, so IFAFREE could be non-blocking
Sepherosa Ziehau [Wed, 17 Sep 2008 11:25:16 +0000 (11:25 +0000)]
Embed a netmsg in ifaddr_container, so IFAFREE could be non-blocking

15 years agoMake net/netmsg.h userspace friendly
Sepherosa Ziehau [Wed, 17 Sep 2008 11:22:13 +0000 (11:22 +0000)]
Make net/netmsg.h userspace friendly

15 years agoUse absolute inclusion path
Sepherosa Ziehau [Wed, 17 Sep 2008 09:56:49 +0000 (09:56 +0000)]
Use absolute inclusion path

15 years ago'func' has the type of pfil_func_t
Sepherosa Ziehau [Wed, 17 Sep 2008 08:58:33 +0000 (08:58 +0000)]
'func' has the type of pfil_func_t

15 years agoAlways enable ETHER_INPUT_CHAIN support
Sepherosa Ziehau [Wed, 17 Sep 2008 08:51:30 +0000 (08:51 +0000)]
Always enable ETHER_INPUT_CHAIN support

15 years agoRemove the '2' suffix from ether_input_chain and vlan_input; their counterparts
Sepherosa Ziehau [Wed, 17 Sep 2008 07:51:59 +0000 (07:51 +0000)]
Remove the '2' suffix from ether_input_chain and vlan_input; their counterparts
have gone for a long time.

15 years agoNuke unused function
Sepherosa Ziehau [Wed, 17 Sep 2008 07:24:18 +0000 (07:24 +0000)]
Nuke unused function

15 years ago- Remove unnecessary crit sections
Sepherosa Ziehau [Wed, 17 Sep 2008 03:08:27 +0000 (03:08 +0000)]
- Remove unnecessary crit sections
- Remove no longer applied comment

15 years agoFactor out ipfw_match_uid(), put it under BGL explicitly
Sepherosa Ziehau [Wed, 17 Sep 2008 02:53:51 +0000 (02:53 +0000)]
Factor out ipfw_match_uid(), put it under BGL explicitly

15 years ago * fix markup of `auto' argument
Thomas Nikolajsen [Tue, 16 Sep 2008 20:45:36 +0000 (20:45 +0000)]
 * fix markup of `auto' argument
 * add `auto' where missing
 * delete extra synopsis
 * fix wrong single character quoting

15 years agoCommit the remainder of Max's dma work (with minor modifications).
Matthias Schmidt [Tue, 16 Sep 2008 17:57:23 +0000 (17:57 +0000)]
Commit the remainder of Max's dma work (with minor modifications).
See Max mail on kernel@ [1] for further details.

* Support of .forward files (Note: dma is now setuid root)
* Send multiple mails at once
* Fix some style(9) issues (mostly return())

Some style(9) issues are still in the code.  I take care if I have some
spare time :)  Please test!

Submitted-by: Max Lindner <gisanka@gmail.com>
Sponsored-by: Google Summer of Code 2008
[1] http://leaf.dragonflybsd.org/mailarchive/kernel/2008-08/msg00045.html

15 years agoAdd note that NFS exporting PFSs isn't supported yet.
Thomas Nikolajsen [Tue, 16 Sep 2008 15:26:17 +0000 (15:26 +0000)]
Add note that NFS exporting PFSs isn't supported yet.

15 years agoSilence warnings about unhandled enum values.
Sascha Wildner [Tue, 16 Sep 2008 14:08:48 +0000 (14:08 +0000)]
Silence warnings about unhandled enum values.

15 years agoFix stack variable names inheritted from ip_{input,output}()
Sepherosa Ziehau [Tue, 16 Sep 2008 13:36:12 +0000 (13:36 +0000)]
Fix stack variable names inheritted from ip_{input,output}()

15 years agoIf ae is NULL, just print that the controller is unsupported and return,
Sascha Wildner [Tue, 16 Sep 2008 12:39:15 +0000 (12:39 +0000)]
If ae is NULL, just print that the controller is unsupported and return,
instead of continuing and dereferencing it later.

Found-by: LLVM/Clang Static Analyzer
15 years agoAdd DUMMYNET_DEBUG option
Sepherosa Ziehau [Tue, 16 Sep 2008 12:30:57 +0000 (12:30 +0000)]
Add DUMMYNET_DEBUG option

15 years ago- Rework ipfw(4) debug print macro
Sepherosa Ziehau [Tue, 16 Sep 2008 12:16:08 +0000 (12:16 +0000)]
- Rework ipfw(4) debug print macro
- Add IPFIREWALL_DEBUG option

15 years agoSave flags pass by caller
Sepherosa Ziehau [Tue, 16 Sep 2008 11:57:30 +0000 (11:57 +0000)]
Save flags pass by caller

15 years agostruct packet_filter_hook is actually implementation detail; hide it
Sepherosa Ziehau [Tue, 16 Sep 2008 11:53:33 +0000 (11:53 +0000)]
struct packet_filter_hook is actually implementation detail; hide it

15 years agoip_dn_stop() and ip_dn_stop_dispatch() is used only if dummynet(4) is compiled
Sepherosa Ziehau [Tue, 16 Sep 2008 11:48:01 +0000 (11:48 +0000)]
ip_dn_stop() and ip_dn_stop_dispatch() is used only if dummynet(4) is compiled
as module.

15 years agoHeader inclusion
Sepherosa Ziehau [Tue, 16 Sep 2008 11:40:38 +0000 (11:40 +0000)]
Header inclusion

15 years agomycpu->gd_cpuid -> mycpuid
Sepherosa Ziehau [Tue, 16 Sep 2008 11:32:02 +0000 (11:32 +0000)]
mycpu->gd_cpuid -> mycpuid

15 years agoSYSCTL_NODE is always defined
Sepherosa Ziehau [Tue, 16 Sep 2008 11:28:31 +0000 (11:28 +0000)]
SYSCTL_NODE is always defined

15 years agoBump ipfw static rules generation when set/clear IPFW_FULE_F_STATE to avoid
Sepherosa Ziehau [Tue, 16 Sep 2008 11:24:57 +0000 (11:24 +0000)]
Bump ipfw static rules generation when set/clear IPFW_FULE_F_STATE to avoid
possible races if network thread slept on dyn_lock (e.g. to install state)

15 years agoRemove the -1 option from the installer.
Matthias Schmidt [Tue, 16 Sep 2008 11:16:36 +0000 (11:16 +0000)]
Remove the -1 option from the installer.

This option is specific to the old, now removed, ISC dhcp client.  The new
OpenBSD dhcp client does not support this option.  If a user wants to set an
IP address with the installer prior to this commit, it fails and the user sees
an error message.

The meaning of the -1 option was: "Try to get a lease only once.  If it fails,
quit."  Due to this commit, this behaviour changes.  I think its better to have
an installer which tries to get a lease more than once that having an installer
which does not try to get a lease at all.

15 years agoIf a NULL pointer was passed, panic like everywhere else.
Sascha Wildner [Tue, 16 Sep 2008 09:25:45 +0000 (09:25 +0000)]
If a NULL pointer was passed, panic like everywhere else.

Found-by: LLVM/Clang Static Analyzer
15 years ago * Move description of hw.usb.hack_defer_exploration
Thomas Nikolajsen [Mon, 15 Sep 2008 21:23:44 +0000 (21:23 +0000)]
 * Move description of hw.usb.hack_defer_exploration
and vfs.root.mountfrom from loader.conf.5 to loader.8,
as this is where other tunables are described.

15 years ago * Break line at end of sentence
Thomas Nikolajsen [Mon, 15 Sep 2008 20:41:59 +0000 (20:41 +0000)]
 * Break line at end of sentence
 * Add mark up
 * Use <module> instead of `*' for module operations

15 years agoFix old ATA driver name.
Thomas Nikolajsen [Mon, 15 Sep 2008 20:32:53 +0000 (20:32 +0000)]
Fix old ATA driver name.

15 years ago * /loader is loaded if /boot/loader fails
Thomas Nikolajsen [Mon, 15 Sep 2008 20:28:56 +0000 (20:28 +0000)]
 * /loader is loaded if /boot/loader fails
 * fix out of sync occurence of flags

15 years agoFix markup:
Thomas Nikolajsen [Mon, 15 Sep 2008 20:24:41 +0000 (20:24 +0000)]
Fix markup:
 * Add missing escape (\&) to mdoc(7) punctuation characters
 * Consistently use single (vs double) quotes for one character strings

15 years agoWhite space fix: wrong TAB in usage.
Thomas Nikolajsen [Mon, 15 Sep 2008 20:13:16 +0000 (20:13 +0000)]
White space fix: wrong TAB in usage.

15 years agoChange how DESTKERNNAME is handled:
Thomas Nikolajsen [Mon, 15 Sep 2008 20:09:03 +0000 (20:09 +0000)]
Change how DESTKERNNAME is handled:
don't prepend `boot/' to DESTKERNNAME definition,
but prepend it on use.

15 years agoAdd note on move of kernel and modules to boot directory.
Thomas Nikolajsen [Mon, 15 Sep 2008 20:03:36 +0000 (20:03 +0000)]
Add note on move of kernel and modules to boot directory.

15 years agoSmall fix.
Sascha Wildner [Mon, 15 Sep 2008 18:22:48 +0000 (18:22 +0000)]
Small fix.

15 years agoSync zoneinfo database with tzdata2008f from elsie.
Sascha Wildner [Mon, 15 Sep 2008 17:25:39 +0000 (17:25 +0000)]
Sync zoneinfo database with tzdata2008f from elsie.

africa:         8.15 -> 8.16
asia:           8.22 -> 8.23
europe:         8.17 -> 8.18
southamerica:   8.26 -> 8.27

From Arthur David Olson's comments:

* africa
        - Mauritius
                DST 2008 ff. from last Sun Oct to last Sun Mar
                (per Riad M. Hossen Ally)
        - Morocco
                End of DST 2008 ff. changed from Sep 28 to Sep 1
                (per Steffen Thorsen)

* asia
        - Gaza
                End of DST 2008 ff. changed from second Thu in Sep to
                last Thu in Aug (per Alexander Krivenyshev)
        - Pakistan
                End of DST 2008 only changed from Sep 1 to Nov 1
                (per Alexander Krivenyshev)

* europe
        - Turkey
                Add comments about proposed changes in 2011
                (per Sue Williams)

* southamerica
        - Argentina
                Start of DST 2008 ff. changed from first to third Sun
                (per Alexander Krivenyshev)
        - Brazil
                Start of DST 2008 ff. changed from second to third Sun
                (per Steffen Thorsen)

15 years agoFix an invalidation case that tends to occur under load on NFS servers or
Matthew Dillon [Mon, 15 Sep 2008 17:02:49 +0000 (17:02 +0000)]
Fix an invalidation case that tends to occur under load on NFS servers or
on machines with low amounts of main memory.  The buf was being recursively
locked and a ref count assertion was wrong.

The code-path was previously untested and would dependably panic the
machine every time prior to the fix.

Reported-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk>
15 years agoUpdate pfil manpage:
Sepherosa Ziehau [Mon, 15 Sep 2008 05:12:56 +0000 (05:12 +0000)]
Update pfil manpage:
- MPSAFE
- PFIL_WAITOK is gone
- Addition of pfil_func_t
- pfil(4) is standard part of kernel

15 years agoWe always wait during pfil hook's adding and removing; we could not afford
Sepherosa Ziehau [Mon, 15 Sep 2008 05:11:02 +0000 (05:11 +0000)]
We always wait during pfil hook's adding and removing; we could not afford
to fail upon these operations.

15 years agoAvoid conflict with <paths.h>.
Sascha Wildner [Sun, 14 Sep 2008 22:04:36 +0000 (22:04 +0000)]
Avoid conflict with <paths.h>.

15 years agoFix bug in normalization.
Sascha Wildner [Sun, 14 Sep 2008 21:08:29 +0000 (21:08 +0000)]
Fix bug in normalization.

Found-by: LLVM/Clang Static Analyzer
15 years agoAdd MLINK for dehumanize_number(3).
Sascha Wildner [Sun, 14 Sep 2008 20:18:17 +0000 (20:18 +0000)]
Add MLINK for dehumanize_number(3).

15 years agoAdd dehumanize_number(3).
Sascha Wildner [Sun, 14 Sep 2008 20:04:59 +0000 (20:04 +0000)]
Add dehumanize_number(3).

Taken-from: NetBSD

15 years agoAdd NetBSD 5.0
Sascha Wildner [Sun, 14 Sep 2008 20:03:06 +0000 (20:03 +0000)]
Add NetBSD 5.0

15 years agoCount only partitions where the size was specified and use 1M as
Sascha Wildner [Sun, 14 Sep 2008 19:15:04 +0000 (19:15 +0000)]
Count only partitions where the size was specified and use 1M as
the theoretical low limit for the '*' partition.

This simplifies the last commit and catches the case where a '*'
partition was specified but the rest of the partitions already
exceeded the slice size.

15 years agoFix calculation of total_capacity in case the user requested a partition
Sascha Wildner [Sun, 14 Sep 2008 13:49:41 +0000 (13:49 +0000)]
Fix calculation of total_capacity in case the user requested a partition
to span the remainder of the disk. This makes creating only a single '/'
partition with size '*' work.

15 years agoMake pfil(4) MPSAFE using following way:
Sepherosa Ziehau [Sun, 14 Sep 2008 11:13:00 +0000 (11:13 +0000)]
Make pfil(4) MPSAFE using following way:
- The pfil hook lists alteration is serialized by netisr0 (rev 1.10)
- Duplicate the pfil hook lists to be altered.
- Alter the pfil hook lists' duplication
- Save the original pfil hook lists, install the altered pfil hook lists
- Sync all network msgports to make sure that no one sees the original
  lists after this syncing
- Free the original pfil hook lists

15 years agoSerialize pfil hooks' adding/removing by netisr0
Sepherosa Ziehau [Sun, 14 Sep 2008 08:58:55 +0000 (08:58 +0000)]
Serialize pfil hooks' adding/removing by netisr0

15 years agoPut IPV6_RTHDR_TYPE_0 define back until the world fixes itself.
Hasso Tepper [Sun, 14 Sep 2008 08:58:33 +0000 (08:58 +0000)]
Put IPV6_RTHDR_TYPE_0 define back until the world fixes itself.

15 years agotypedef pfil_func_t
Sepherosa Ziehau [Sun, 14 Sep 2008 05:22:44 +0000 (05:22 +0000)]
typedef pfil_func_t

15 years agopfil_get_hook() is gone
Sepherosa Ziehau [Sun, 14 Sep 2008 04:48:31 +0000 (04:48 +0000)]
pfil_get_hook() is gone

15 years agoMerge pfil_hook_get() into pfil_run_hooks(), use TAILQ_FOREACH afterwards.
Sepherosa Ziehau [Sun, 14 Sep 2008 04:34:26 +0000 (04:34 +0000)]
Merge pfil_hook_get() into pfil_run_hooks(), use TAILQ_FOREACH afterwards.

15 years ago- Use {TAILQ,LIST}_FOREACH
Sepherosa Ziehau [Sun, 14 Sep 2008 04:11:10 +0000 (04:11 +0000)]
- Use {TAILQ,LIST}_FOREACH
- Minor style changes

15 years agopfil_hook_get() is only used in pfil.c, so hide it
Sepherosa Ziehau [Sun, 14 Sep 2008 02:05:07 +0000 (02:05 +0000)]
pfil_hook_get() is only used in pfil.c, so hide it

15 years agoAdd line width calculations for 15/16 and 24/32 bit modes in case
Sascha Wildner [Sat, 13 Sep 2008 19:08:05 +0000 (19:08 +0000)]
Add line width calculations for 15/16 and 24/32 bit modes in case
the "Get Scan Line Length" function fails, as it does in Parallels
(in Version 2.2, Build 2112 at least).

15 years agoMove ipfw(4) code for ip_{input,output}() into ip_fw2.c to create in/out
Sepherosa Ziehau [Sat, 13 Sep 2008 12:57:07 +0000 (12:57 +0000)]
Move ipfw(4) code for ip_{input,output}() into ip_fw2.c to create in/out
pfil hooks for AF_INET pfil head.

During ipfw(4) module loading, ipfw(4) pfil hooks will be added to AF_INET
pfil head, only if fw_enable is 1.  ipfw(4) pfil hooks could be added and
deleted from AF_INET pfil head dynamicly by setting net.inet.ip.fw.enable
(1 to add, 0 to delete)

15 years agoConsolidate moved variables.
Simon Schubert [Sat, 13 Sep 2008 11:46:28 +0000 (11:46 +0000)]
Consolidate moved variables.

15 years agoEnable hammer read support in boot2.
Simon Schubert [Sat, 13 Sep 2008 11:45:45 +0000 (11:45 +0000)]
Enable hammer read support in boot2.

15 years agoAdd hammer read support for loader.
Simon Schubert [Sat, 13 Sep 2008 11:38:58 +0000 (11:38 +0000)]
Add hammer read support for loader.

15 years agoAdd a place holder sysctl function to enable and disable ipfw(4)
Sepherosa Ziehau [Sat, 13 Sep 2008 10:47:23 +0000 (10:47 +0000)]
Add a place holder sysctl function to enable and disable ipfw(4)

15 years agoMove ipfw(4) related bits into ip_fw2_glue.c
Sepherosa Ziehau [Sat, 13 Sep 2008 10:23:39 +0000 (10:23 +0000)]
Move ipfw(4) related bits into ip_fw2_glue.c

15 years agopf(4) may reassemble ip fragments, so we probably should recalculate hlen
Sepherosa Ziehau [Sat, 13 Sep 2008 09:07:31 +0000 (09:07 +0000)]
pf(4) may reassemble ip fragments, so we probably should recalculate hlen

15 years ago- Move IPDIVERT related bits into netinet/ip_divert.c
Sepherosa Ziehau [Sat, 13 Sep 2008 08:48:42 +0000 (08:48 +0000)]
- Move IPDIVERT related bits into netinet/ip_divert.c
- Expose ip_reass(), which is used by ip_divert_in()
- Add function ptr ip_divert_p, which will be set to ip_divert(), if IPDIVERT
  support is compiled into kernel.  ip_divert() dispatches real work to either
  ip_divert_in() or ip_divert_out() based on the third parameter
- Hide divert_packet() after above change

15 years agoAdd FW_MBUF_REDISPATCH, which should be set by various firewall code,
Sepherosa Ziehau [Sat, 13 Sep 2008 07:15:14 +0000 (07:15 +0000)]
Add FW_MBUF_REDISPATCH, which should be set by various firewall code,
if ip fragments get reassembled.

15 years ago- Let caller of ip_fw_dn_io_ptr call ip_dn_queue(), so that callers have the
Sepherosa Ziehau [Sat, 13 Sep 2008 05:49:08 +0000 (05:49 +0000)]
- Let caller of ip_fw_dn_io_ptr call ip_dn_queue(), so that callers have the
  chance to save additional information to dummynet tag (e.g. ip_output)
- In ip_{input,output}(), call ip_dn_queue() outside of ipfw(4) processing
  code block
- Move saving dst, ro and flags from ipfw_dummynet_io() to ip_output()
- Remove unused fields in ip_fw_args
- Update comment

15 years agoUse extended interface FIFO depth to workaround CRC errors emitted by
Sepherosa Ziehau [Sat, 13 Sep 2008 04:04:39 +0000 (04:04 +0000)]
Use extended interface FIFO depth to workaround CRC errors emitted by
JMC250 chips before rev.B

Information provided by Ethan <ethanhsiao@jmicron.com>

15 years ago- Save device caps in device id array
Sepherosa Ziehau [Sat, 13 Sep 2008 03:12:23 +0000 (03:12 +0000)]
- Save device caps in device id array
- CAP_NOJUMBO -> CAP_JUMBO

15 years agoSplit capabilities and flags
Sepherosa Ziehau [Sat, 13 Sep 2008 03:04:17 +0000 (03:04 +0000)]
Split capabilities and flags

15 years ago- Clean up header inclusion
Sepherosa Ziehau [Sat, 13 Sep 2008 02:47:03 +0000 (02:47 +0000)]
- Clean up header inclusion
- Add revid for JMC250

15 years agoUse IDs from pcidevs.h
Sepherosa Ziehau [Sat, 13 Sep 2008 02:30:37 +0000 (02:30 +0000)]
Use IDs from pcidevs.h

15 years agoregen
Sepherosa Ziehau [Sat, 13 Sep 2008 02:22:40 +0000 (02:22 +0000)]
regen

15 years agoAdd IDs for JMicron and its JMC250/JMC260
Sepherosa Ziehau [Sat, 13 Sep 2008 02:21:56 +0000 (02:21 +0000)]
Add IDs for JMicron and its JMC250/JMC260

15 years ago- Fix function parameters order bug:
Sepherosa Ziehau [Fri, 12 Sep 2008 11:37:41 +0000 (11:37 +0000)]
- Fix function parameters order bug:
  udp_addrcpu() expects faddr,fport,laddr,lport not faddr,laddr,fport,lport
- Add IP_DEBUGROUTE flag to let ip_output() know that we have confidence in
  the inp's route cache.  Currently UDP output sets this flag, since after
  the above fix, UDP inp's route cache would only be used on its owner CPU
- Rename remote_free_panic to route_assert_owner_access, and expose it as
  global variable.  Keep net.route.remote_free_panic as an alias to
  net.route.assert_owner_access

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1134>

15 years agoSync libmd with FreeBSD:
Sascha Wildner [Thu, 11 Sep 2008 20:25:34 +0000 (20:25 +0000)]
Sync libmd with FreeBSD:

* Some bugfixes

* Addition of *_FileChunk()

* Minor changes/cleanup

15 years ago- Add rtfree_remote(), which send rtentry to its owner CPU to be freed.
Sepherosa Ziehau [Thu, 11 Sep 2008 11:23:29 +0000 (11:23 +0000)]
- Add rtfree_remote(), which send rtentry to its owner CPU to be freed.
  Print backtrace, if net.route.remote_free_panic is 0.  This function
  only serves as _temporary_ workaround.
- In ip_output(), if passed rtentry cache's owner CPU is not the current,
  then keep it untouched and use the stack variable to relocate the route.
  Add comment about it.  This at least could happen in the following
  callgraph on a TCP socket, on which listen(2) has been called:
  ip_input() -> tcp_input() -> tcp_respond() -> ip_output()

Related to Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1134>

15 years ago#ifdef DDB without including "opt_ddb.h"
YONETANI Tomokazu [Thu, 11 Sep 2008 01:11:42 +0000 (01:11 +0000)]
#ifdef DDB without including "opt_ddb.h"

15 years agoImprove code flow for KASSERT and KKASSERT using __predict_false().
Matthew Dillon [Thu, 11 Sep 2008 00:35:49 +0000 (00:35 +0000)]
Improve code flow for KASSERT and KKASSERT using __predict_false().

Fix a bug in KKASSERT related to the use of an else clause after
the KKASSERT.