]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoMake sure /home exists within the DESTDIR before creating the
gjb [Thu, 4 Jun 2015 23:11:24 +0000 (23:11 +0000)]
Make sure /home exists within the DESTDIR before creating the
'freebsd' user account.

Sponsored by: The FreeBSD Foundation

9 years agoSome hostap setups may result in raw frames being transmitted with
adrian [Thu, 4 Jun 2015 23:07:21 +0000 (23:07 +0000)]
Some hostap setups may result in raw frames being transmitted with
no parameters set.  So, don't unconditionally call things.

Thanks to jkim@ for pointing this out!

MFC after: 2 weeks
Sponsored by: Norse Corp, Inc.

9 years agostrchr(3): Mdoc fixes.
jilles [Thu, 4 Jun 2015 21:54:46 +0000 (21:54 +0000)]
strchr(3): Mdoc fixes.

9 years agoAdd a CHILD_REQUIRE macro similar to ATF_REQUIRE for use in child processes
jhb [Thu, 4 Jun 2015 21:07:27 +0000 (21:07 +0000)]
Add a CHILD_REQUIRE macro similar to ATF_REQUIRE for use in child processes
of the main test process.

Differential Revision: https://reviews.freebsd.org/D2664
Reviewed by: ngie (previous version)

9 years agoRemove compatibility shims for FreeBSD versions older than 8.0.
jhb [Thu, 4 Jun 2015 20:36:16 +0000 (20:36 +0000)]
Remove compatibility shims for FreeBSD versions older than 8.0.

9 years agoAdd a new file operations hook for mmap operations. File type-specific
jhb [Thu, 4 Jun 2015 19:41:15 +0000 (19:41 +0000)]
Add a new file operations hook for mmap operations.  File type-specific
logic is now placed in the mmap hook implementation rather than requiring
it to be placed in sys/vm/vm_mmap.c.  This hook allows new file types to
support mmap() as well as potentially allowing mmap() for existing file
types that do not currently support any mapping.

The vm_mmap() function is now split up into two functions.  A new
vm_mmap_object() function handles the "back half" of vm_mmap() and accepts
a referenced VM object to map rather than a (handle, handle_type) tuple.
vm_mmap() is now reduced to converting a (handle, handle_type) tuple to a
a VM object and then calling vm_mmap_object() to handle the actual mapping.
The vm_mmap() function remains for use by other parts of the kernel
(e.g. device drivers and exec) but now only supports mapping vnodes,
character devices, and anonymous memory.

The mmap() system call invokes vm_mmap_object() directly with a NULL object
for anonymous mappings.  For mappings using a file descriptor, the
descriptors fo_mmap() hook is invoked instead.  The fo_mmap() hook is
responsible for performing type-specific checks and adjustments to
arguments as well as possibly modifying mapping parameters such as flags
or the object offset.  The fo_mmap() hook routines then call
vm_mmap_object() to handle the actual mapping.

The fo_mmap() hook is optional.  If it is not set, then fo_mmap() will
fail with ENODEV.  A fo_mmap() hook is implemented for regular files,
character devices, and shared memory objects (created via shm_open()).

While here, consistently use the VM_PROT_* constants for the vm_prot_t
type for the 'prot' variable passed to vm_mmap() and vm_mmap_object()
as well as the vm_mmap_vnode() and vm_mmap_cdev() helper routines.
Previously some places were using the mmap()-specific PROT_* constants
instead.  While this happens to work because PROT_xx == VM_PROT_xx,
using VM_PROT_* is more correct.

Differential Revision: https://reviews.freebsd.org/D2658
Reviewed by: alc (glanced over), kib
MFC after: 1 month
Sponsored by: Chelsio

9 years agoChange directory permissions in pre-order.
pluknet [Thu, 4 Jun 2015 19:18:58 +0000 (19:18 +0000)]
Change directory permissions in pre-order.
In this order, it won't try to recurse into a directory for which
it doesn't have permission, before changing that permission.
This follows an existing behavior in other BSDs, linux, OS X.

Obtained from: NetBSD

9 years agoTag outbound raw 802.11 frames with both the node and an mbuf tag
adrian [Thu, 4 Jun 2015 17:54:41 +0000 (17:54 +0000)]
Tag outbound raw 802.11 frames with both the node and an mbuf tag
with the transmit params.

This allows raw 802.11 frames to be queued in the driver if necessary,
rather than requiring it to be direct-dispatched into the hardware.

Tested:

* ath(4), STA mode
* iwn(4), STA mode

MFC after: 2 weeks
Sponsored by: Norse Corp, Inc.

9 years agoFix a whitespace nit.
gjb [Thu, 4 Jun 2015 16:33:29 +0000 (16:33 +0000)]
Fix a whitespace nit.

Sponsored by: The FreeBSD Foundation

9 years agoAdd initial support for building images for the Duovero Gumstix
gjb [Thu, 4 Jun 2015 16:32:16 +0000 (16:32 +0000)]
Add initial support for building images for the Duovero Gumstix
board.

Sponsored by: The FreeBSD Foundation

9 years agoRe-implement endian-aware services_mkdb(8) in the 'distribute'
gjb [Thu, 4 Jun 2015 15:02:05 +0000 (15:02 +0000)]
Re-implement endian-aware services_mkdb(8) in the 'distribute'
target.  This effectively reverts r261142, which reverted both
r261031 and r261044.

Prodded by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoExport a pointer to the SCTP socket. This is needed to add SCTP support
tuexen [Thu, 4 Jun 2015 12:46:56 +0000 (12:46 +0000)]
Export a pointer to the SCTP socket. This is needed to add SCTP support
to sockstat.

MFC after: 3 days

9 years agoFix the build by hiding ieee80211_add_xmit_params and
andrew [Thu, 4 Jun 2015 10:55:36 +0000 (10:55 +0000)]
Fix the build by hiding ieee80211_add_xmit_params and
ieee80211_get_xmit_params from userspace.

9 years agoAfter r283981 it is no more needed to specify endianness when generating the
bapt [Thu, 4 Jun 2015 08:05:44 +0000 (08:05 +0000)]
After r283981 it is no more needed to specify endianness when generating the
passwd database

9 years agorevert r283969,283970 not needed anymore after r283981
bapt [Thu, 4 Jun 2015 08:00:11 +0000 (08:00 +0000)]
revert r283969,283970 not needed anymore after r283981

9 years agoDocument the disable of legacy entries in password database in UPDATING
delphij [Thu, 4 Jun 2015 07:37:09 +0000 (07:37 +0000)]
Document the disable of legacy entries in password database in UPDATING
and bump __FreeBSD_version after r283981.

9 years agoWhitespace changes for r283981. No actual code changes.
delphij [Thu, 4 Jun 2015 07:25:40 +0000 (07:25 +0000)]
Whitespace changes for r283981.  No actual code changes.

9 years agoIn r113596, version 4 of entries have been added but pwd_mkdb have
delphij [Thu, 4 Jun 2015 07:24:56 +0000 (07:24 +0000)]
In r113596, version 4 of entries have been added but pwd_mkdb have
been generating both new (machine independent) and legacy version
entries (endianness sensitive).

The base system have been using the new format for quite some time,
so disable the generation by default.

An interim option, -l, have been added to re-enable old behavior.
The -l, -B and -L options are considered deprecated and will be
removed in FreeBSD 12.0 release.

9 years agoFirst pass of adding transmit parameters as an option for outbound
adrian [Thu, 4 Jun 2015 06:30:39 +0000 (06:30 +0000)]
First pass of adding transmit parameters as an option for outbound
802.11 mbufs.

The raw transmit path currently doesn't make it easy to queue
these frames:

* there's no node reference stored in the mbuf, like for the normal
  path, and
* the bpf supplied raw transmit parameters (rate, rts/cts, etc)
  are passed in as an argument, not as an mbuf tag.

In order to support driver queuing of these frames, we need to
be able to put the above into the mbuf before the driver gets it,
so the driver /can/ put it into a queue if needed.

Use an mbuf tag and for now just verbatim copy the bpf parameters
into it.  Later on it may grow to include more options but this
will do for now.

Why would you want to queue raw frames? Well, in the case of
iwn(4), we can't send the firmware frames to transmit before
we hear a beacon - the firmware will consider passive channels
as unavailable until it hears a beacon.  The firmware "passive"
channel state is cleared upon each RXON command, which is sent to
update association status.  So, when we attempt association and
authorisation, the RXON command causes the firmware to clear out
what it's already seen, and so we have to wait for a beacon before
we can transmit.

Before people get overly excited - this alone doesn't "fix" 5GHz
operation - it just makes it (more) possible.

The aim here is to convert all the drivers over to use a raw_xmit()
API that doesn't include the node and params - instead they'd get
those from the mbuf.  Then raw_xmit() becomes just a side-channel
version of the normal transmit path for management traffic.

MFC after: 2 weeks
Sponsored by: Norse Corp, Inc.

9 years agoDisable bgscan for now - it interferes with 11n activity and general
adrian [Thu, 4 Jun 2015 05:37:07 +0000 (05:37 +0000)]
Disable bgscan for now - it interferes with 11n activity and general
stability.

I'll re-enable it once the scan overhaul is done - the NIC itself
can do bgscan, but not how we're doing it.

MFC after: 2 weeks
Sponsored by: Norse Corp, Inc.

9 years agoRemove unused variable and silence clang warnings.
araujo [Thu, 4 Jun 2015 02:50:13 +0000 (02:50 +0000)]
Remove unused variable and silence clang warnings.

Differential Revision: D2681
Reviewed by: rodrigc

9 years agoClean up unused variable and silence clang warnings.
araujo [Thu, 4 Jun 2015 02:48:04 +0000 (02:48 +0000)]
Clean up unused variable and silence clang warnings.

Differential Revision: D2682
Reviewed by: rodrigc

9 years agoRemove unused variables and silence clang warnings.
araujo [Thu, 4 Jun 2015 02:44:37 +0000 (02:44 +0000)]
Remove unused variables and silence clang warnings.

Differential Revision: D2686
Reviewed by: rodrigc

9 years agoUse tunable 'hw.vmm.svm.features' to disable specific SVM features even
neel [Thu, 4 Jun 2015 02:12:23 +0000 (02:12 +0000)]
Use tunable 'hw.vmm.svm.features' to disable specific SVM features even
though they might be available in hardware.

Use tunable 'hw.vmm.svm.num_asids' to limit the number of ASIDs used by
the hypervisor.

MFC after: 1 week

9 years agoCapitalize the list of accepted variables
bapt [Wed, 3 Jun 2015 22:01:13 +0000 (22:01 +0000)]
Capitalize the list of accepted variables

Suggested by: wblock

9 years agoAdd a pw_mkdb2(3) function which does the same thing as pw_mkdb(3) except
bapt [Wed, 3 Jun 2015 20:48:28 +0000 (20:48 +0000)]
Add a pw_mkdb2(3) function which does the same thing as pw_mkdb(3) except
it takes a new argument allowing to specify the endianness of the database
to generate

Differential Revision: https://reviews.freebsd.org/D2730
Reviewed by: ian

9 years agoSyncing a directory vnode might drop the vnode lock in the
kib [Wed, 3 Jun 2015 20:48:00 +0000 (20:48 +0000)]
Syncing a directory vnode might drop the vnode lock in the
softdep_sync() similarly to the regular vnode sync.  Allow retry for
both vnode types.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoIn r282297 \fC was wrong changed to \fCW.) when it should have been \fCW
bapt [Wed, 3 Jun 2015 20:04:39 +0000 (20:04 +0000)]
In r282297 \fC was wrong changed to \fCW.) when it should have been \fCW

Reported by: carsten.kunze@arcor.de (heirloom doctools)

9 years agoMFV: r283965
jkim [Wed, 3 Jun 2015 19:39:59 +0000 (19:39 +0000)]
MFV: r283965

- Update GUIDs for new NFIT tables.
- Fix ill-formed GUID strings for NFIT tables.
- Fix a possible fault when performing a UUID search.

9 years agoFix typo
bapt [Wed, 3 Jun 2015 19:22:16 +0000 (19:22 +0000)]
Fix typo

9 years agoUse the new pw(8) '-R' option to create the users/groups.
gjb [Wed, 3 Jun 2015 19:19:25 +0000 (19:19 +0000)]
Use the new pw(8) '-R' option to create the users/groups.

MFC after: 1 week
X-MFC-after: r283961
Sponsored by: The FreeBSD Foundation

9 years agoDocument pw(8) '-R' option, added in r283961.
gjb [Wed, 3 Jun 2015 19:17:45 +0000 (19:17 +0000)]
Document pw(8) '-R' option, added in r283961.

MFC after: 1 week
X-MFC-after: r283961
Sponsored by: The FreeBSD Foundation

9 years agoNew pw -R rootdir option
bapt [Wed, 3 Jun 2015 19:08:25 +0000 (19:08 +0000)]
New pw -R rootdir option

This allows to set an alternate root directory in which the users/groups will be
manipulated

Requested by: gjb, ian
Tested by: gjb

9 years agoChange EM_MULTIQUEUE to a real kernconf entry and enable support for
sbruno [Wed, 3 Jun 2015 18:01:09 +0000 (18:01 +0000)]
Change EM_MULTIQUEUE to a real kernconf entry and enable support for
up to 2 rx/tx queues for the 82574.

Program the 82574 to enable 5 msix vectors, assign 1 to each rx queue,
1 to each tx queue and 1 to the link handler.

Inspired by DragonFlyBSD, enable some RSS logic for handling tx queue
handling/processing.

Move multiqueue handler functions so that they line up better in a diff
review to if_igb.c

Always enqueue tx work to be done in em_mq_start, if unable to acquire
the TX lock, then this will be processed in the background later by the
taskqueue.  Remove mbuf argument from em_start_mq_locked() as the work
is always enqueued.  (stolen from igb)

Setup TARC, TXDCTL and RXDCTL registers for better performance and stability
in multiqueue and singlequeue implementations. Handle Intel errata  3 and
generic multiqueue behavior with the initialization of TARC(0) and TARC(1)

Bind interrupt threads to cpus in order.  (stolen from igb)

Add 2 new DDB functions, one to display the queue(s) and their settings and
one to reset the adapter.  Primarily used for debugging.

In the multiqueue configuration, bump RXD and TXD ring size to max for the
adapter (4096).  Setup an RDTR of 64 and an RADV of 128 in multiqueue configuration
to cut down on the number of interrupts.  RADV was arbitrarily set to 2x RDTR
and can be adjusted as needed.

Cleanup the display in top a bit to make it clearer where the taskqueue threads
are running and what they should be doing.

Ensure that both queues are processed by em_local_timer() by writing them both
to the IMS register to generate soft interrupts.

Ensure that an soft interrupt is generated when em_msix_link() is run so that
any races between assertion of the link/status interrupt and a rx/tx interrupt
are handled.

Document existing tuneables: hw.em.eee_setting, hw.em.msix, hw.em.smart_pwr_down, hw.em.sbp

Document use of hw.em.num_queues and the new kernel option EM_MULTIQUEUE

Thanks to Intel for their continued support of FreeBSD.

Reviewed by: erj jfv hiren gnn wblock
Obtained from: Intel Corporation
MFC after: 2 weeks
Relnotes: Yes
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D1994

9 years agofix missing backslash..
jmg [Wed, 3 Jun 2015 17:10:52 +0000 (17:10 +0000)]
fix missing backslash..

9 years agoinstall nanobsd.sh as a MLINK as that is the .Nm of the man page..
jmg [Wed, 3 Jun 2015 17:10:11 +0000 (17:10 +0000)]
install nanobsd.sh as a MLINK as that is the .Nm of the man page..
really the man page should be renamed as nanobsd.sh is not installed
as nanobsd..

9 years agoFix spelling.
hselasky [Wed, 3 Jun 2015 15:43:55 +0000 (15:43 +0000)]
Fix spelling.

9 years agoFix wrong variable name in the previous commit.
loos [Wed, 3 Jun 2015 15:18:32 +0000 (15:18 +0000)]
Fix wrong variable name in the previous commit.

Pointy hat to: loos
Reported by: araujo

9 years agoFix the OACTIVE handling on if_dwc.
loos [Wed, 3 Jun 2015 14:48:03 +0000 (14:48 +0000)]
Fix the OACTIVE handling on if_dwc.

Previously the OACTIVE flag was being set when the tx descriptors are fully
allocated but it wasn't unset anywhere.

As soon as a packet is transmitted, unset the OACTIVE flag and call start
routine to push any pending packets from the tx queue.

This closes another race where a full tx queue would jam the tx path (tx
queue is full, new packets cannot be added to queue and dwc_txstart never
gets called).

9 years agoBetter handling of userland sysarch() requests to flush icache.
ian [Wed, 3 Jun 2015 14:07:50 +0000 (14:07 +0000)]
Better handling of userland sysarch() requests to flush icache.

On armv6, cache maintenance can trigger page faults.  Add handling so that
these turn into SIGSEGV that kills the process rather than panics that kill
the kernel.

Differential Revision: https://reviews.freebsd.org/D2035
Submitted by: Michal Meloun <meloun@miracle.cz>

9 years agoRevert r283938 it is not needed anymore and broken
bapt [Wed, 3 Jun 2015 13:43:04 +0000 (13:43 +0000)]
Revert r283938 it is not needed anymore and broken

gzip(1) cannot be used as bootstrap tools as it depends on syscalls that only
exists on HEAD

9 years agoReplace the gunzip(1) system by a minimalistic zlib based implementation.
bapt [Wed, 3 Jun 2015 13:32:28 +0000 (13:32 +0000)]
Replace the gunzip(1) system by a minimalistic zlib based implementation.

This allows to not depend on gunzip(1) at bootstrap time, and is good enough to
wait for upstream real implementation using zlib.

9 years agouserboot: enable bzipfs support
avg [Wed, 3 Jun 2015 10:10:00 +0000 (10:10 +0000)]
userboot: enable bzipfs support

Additionally, sort all real filesystems before the virtual ones.

Differential Revision: https://reviews.freebsd.org/D2709
Reviewed by: grehan
MFC after: 5 days

9 years agomandoc's makewhatis requires gnuzip to be in the path when deadling with
bapt [Wed, 3 Jun 2015 06:02:49 +0000 (06:02 +0000)]
mandoc's makewhatis requires gnuzip to be in the path when deadling with
with compressed manpages.

This should fix spam during installworld: "exec: No such file or directory"

Reported by: many

9 years agoRestore AHCI quirks printing as base16.
mav [Tue, 2 Jun 2015 23:11:12 +0000 (23:11 +0000)]
Restore AHCI quirks printing as base16.

smh@ at r278034 made it base17, that is somewhat odd. :)

MFC after: 3 days

9 years agoMake the last revision compilable.
glebius [Tue, 2 Jun 2015 22:45:28 +0000 (22:45 +0000)]
Make the last revision compilable.

Remove extra argument from iwi_wme_setparams(), a softc has 1 to 1
accordance with ieee80211com.

9 years agoThe argument passed to the iwi_update_wme() is softc, not ieee80211com.
glebius [Tue, 2 Jun 2015 22:39:16 +0000 (22:39 +0000)]
The argument passed to the iwi_update_wme() is softc, not ieee80211com.

This fatal mismatch appeared to be absolutely harmless, since both structs
have pointer to struct ifnet as their first member, and they both point to
the same ifnet.  And the first member is the only one used from the argument.

9 years agoAdd comments to indicate where the flag for later abort" originates.
dteske [Tue, 2 Jun 2015 22:23:20 +0000 (22:23 +0000)]
Add comments to indicate where the flag for later abort" originates.

MFC after: 3 days
X-MFC-to: stable/10

9 years agoCorrect grdc(1) 12-hour display between 12:00 and 13:00
emaste [Tue, 2 Jun 2015 20:53:17 +0000 (20:53 +0000)]
Correct grdc(1) 12-hour display between 12:00 and 13:00

PM starts at 12:00, not 13:00.

PR: 194291, 200133
Submitted by: Nick Price
MFC after: 1 week

9 years agoSimilar to r280178, don't hide command for building static library.
bdrewery [Tue, 2 Jun 2015 19:05:02 +0000 (19:05 +0000)]
Similar to r280178, don't hide command for building static library.

9 years agoProvide vnode in memory map info for files on tmpfs
vangyzen [Tue, 2 Jun 2015 18:37:04 +0000 (18:37 +0000)]
Provide vnode in memory map info for files on tmpfs

When providing memory map information to userland, populate the vnode pointer
for tmpfs files.  Set the memory mapping to appear as a vnode type, to match
FreeBSD 9 behavior.

This fixes the use of tmpfs files with the dtrace pid provider,
procstat -v, procfs, linprocfs, pmc (pmcstat), and ptrace (PT_VM_ENTRY).

Submitted by:   Eric Badger <eric@badgerio.us> (initial revision)
Obtained from:  Dell Inc.
PR:             198431
MFC after:      2 weeks
Reviewed by:    jhb
Approved by:    kib (mentor)

9 years agoSimplify hang detection by stealing the techniques used in ixl(4) and
sbruno [Tue, 2 Jun 2015 18:28:41 +0000 (18:28 +0000)]
Simplify hang detection by stealing the techniques used in ixl(4) and
applying them to em(4).

Rely on iterations through the local timer, and the tx queue state to
determine if an actual hang has occurred. Any time a descriptor is used
(packet sent), the tx queue is flagged as busy. Then when txeof runs, it
either clears the flag when all is clean, or resets it to 1 if ANY are
cleaned, if nothing is cleaned it increments the flag.

Local timer simply checks to see if busy ever reaches MAX (10, which
is compile time configurable), and then sets it as HUNG, at that point
there is one more timer cycle in which to have any cleans, if not a
watchdog reset will occur.

Differential Revision: https://reviews.freebsd.org/D2019
Submitted by: jfv
Reviewed by: hiren
Obtained from: Intel Corporation
MFC after: 2 weeks
Relnotes: Yes
Sponsored by: Limelight Networks

9 years agoFix for control endpoint handling in the DWC OTG driver. The data
hselasky [Tue, 2 Jun 2015 17:40:52 +0000 (17:40 +0000)]
Fix for control endpoint handling in the DWC OTG driver. The data
stage processing is only allowed after the setup complete event has
been received. Else a race may occur and the OUT data can be corrupted.
While at it ensure resetting a FIFO has the required wait loop.

MFC after: 3 days

9 years agoAdd a configuration file to support the Cubox/Hummingboard SoC.
gjb [Tue, 2 Jun 2015 17:03:31 +0000 (17:03 +0000)]
Add a configuration file to support the Cubox/Hummingboard SoC.

Sponsored by: The FreeBSD Foundation

9 years agoRemove trailing tabs to avoid spamming stdout with long lines.
gjb [Tue, 2 Jun 2015 17:00:31 +0000 (17:00 +0000)]
Remove trailing tabs to avoid spamming stdout with long lines.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoAdd a missing wakeup when releasing ownership of the SPI hardware.
ian [Tue, 2 Jun 2015 16:07:28 +0000 (16:07 +0000)]
Add a missing wakeup when releasing ownership of the SPI hardware.

Also, validate the chipselect parameter before grabbing ownership of the
hardware, and report timeout errors after releasing it.

PR: 200584

9 years agoPass the '-b' argument to pw(8) so the '/home' directory is created
gjb [Tue, 2 Jun 2015 15:02:30 +0000 (15:02 +0000)]
Pass the '-b' argument to pw(8) so the '/home' directory is created
in the correct place.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove unused variables reported by clang.
araujo [Tue, 2 Jun 2015 09:05:45 +0000 (09:05 +0000)]
Remove unused variables reported by clang.

Differential Revision: D2688
Reviewed by: rodrigc, mav

9 years agoRemove unused variable allocated_ctx reported by clang.
araujo [Tue, 2 Jun 2015 09:03:15 +0000 (09:03 +0000)]
Remove unused variable allocated_ctx reported by clang.

Differential Revision: D2684
Reviewed by: rodrigc

9 years agoFix bug in r278331: unlike some other options MaxRecvDataSegmentLength
mav [Tue, 2 Jun 2015 01:47:12 +0000 (01:47 +0000)]
Fix bug in r278331: unlike some other options MaxRecvDataSegmentLength
is not negotiated as minimum, but only reported by sides to each other.

MFC after: 1 week

9 years agoAdd example howto configure gre(4) tunnel with the same inner and
ae [Tue, 2 Jun 2015 00:47:38 +0000 (00:47 +0000)]
Add example howto configure gre(4) tunnel with the same inner and
outer addresses using multiple FIBs.

X-MFC after: r282809

9 years agoIn arm_create_disk(), disable soft updates journaling.
gjb [Mon, 1 Jun 2015 21:10:47 +0000 (21:10 +0000)]
In arm_create_disk(), disable soft updates journaling.

Disabling soft updates journaling appears to resolve issues
with kernel panics, and may also be generally bad to have
enabled for SD cards.

Requested by: ian
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRe-enable arm_create_user(), and pass the '-V DESTDIR/etc' to
gjb [Mon, 1 Jun 2015 20:59:18 +0000 (20:59 +0000)]
Re-enable arm_create_user(), and pass the '-V DESTDIR/etc' to
pw(8) to set the correct /etc directory for the user/group
files.

Provided by: ian (thanks!)
MFC after: 3 days
X-MFC-with: r283894
Sponsored by: The FreeBSD Foundation

9 years agoDisable arm_create_user(). As-is, this does not create the
gjb [Mon, 1 Jun 2015 20:26:38 +0000 (20:26 +0000)]
Disable arm_create_user().  As-is, this does not create the
user in the userland for the target image, but creates the
user in the build chroot.

Before this is re-enabled, I want to figure out a clean way
to do this without requiring the overhead of third-party
utilities (such as qemu).

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoCatch up to the SRIOV API changes in r283670.
jhb [Mon, 1 Jun 2015 20:05:06 +0000 (20:05 +0000)]
Catch up to the SRIOV API changes in r283670.

9 years agoClear p_stops upon PROCFS_CTL_DETACH, similar to r283889.
delphij [Mon, 1 Jun 2015 18:49:31 +0000 (18:49 +0000)]
Clear p_stops upon PROCFS_CTL_DETACH, similar to r283889.

Noticed by: jhb
Reviewed by: sef
Sponsored by: iXsystems, Inc.
MFC after: 2 weeks

9 years agoClear p_stops when doing PT_DETACH.
delphij [Mon, 1 Jun 2015 18:15:45 +0000 (18:15 +0000)]
Clear p_stops when doing PT_DETACH.

Without this, if a process was being traced by truss(1), which
uses different p_stops bits than gdb(1), the latter would
misbehave because of the unexpected bits.

Reported by: jceel
Submitted by: sef
Sponsored by: iXsystems, Inc.
MFC after: 2 weeks

9 years agoRemove __ARM_EABI__ from sys/arm/arm, building for oabi is unsupported.
andrew [Mon, 1 Jun 2015 18:15:44 +0000 (18:15 +0000)]
Remove __ARM_EABI__ from sys/arm/arm, building for oabi is unsupported.

9 years agoClear the C bit of the saved program state register when also clearing the
andrew [Mon, 1 Jun 2015 18:13:32 +0000 (18:13 +0000)]
Clear the C bit of the saved program state register when also clearing the
return value. We use this bit to signal when a syscall has failed, and
without this getcontext/setcontext may fail.

MFC after: 1 week

9 years agoDelta D2489 - Add SRIOV support to the Intel 10G driver.
jfv [Mon, 1 Jun 2015 17:43:34 +0000 (17:43 +0000)]
Delta D2489 - Add SRIOV support to the Intel 10G driver.

NOTE: This is a technology preview, while it has undergone
      development testing, Intel has not yet completed full
      validation of the feature. It is being integrated for
      early access and customer testing.

9 years agoRevert last commit, to remove added skeleton tree.
jfv [Mon, 1 Jun 2015 17:35:29 +0000 (17:35 +0000)]
Revert last commit, to remove added skeleton tree.

9 years agoDelta D2489 - Add SRIOV support to the Intel 10G driver.
jfv [Mon, 1 Jun 2015 17:15:25 +0000 (17:15 +0000)]
Delta D2489 - Add SRIOV support to the Intel 10G driver.

NOTE: This is a technology preview, while it has undergone development
      tests, Intel has not yet completed full validation of the feature.
      It is being integrated for early access and customer testing.

9 years agoAdd USB MIDI template for USB device side mode.
hselasky [Mon, 1 Jun 2015 11:24:34 +0000 (11:24 +0000)]
Add USB MIDI template for USB device side mode.

9 years agoRemove unneeded NULL checks in amd64's trap_fatal().
dim [Mon, 1 Jun 2015 06:50:39 +0000 (06:50 +0000)]
Remove unneeded NULL checks in amd64's trap_fatal().

Since td_name is an array member of struct thread, it can never be NULL,
so the check can be removed.  In addition, curproc can never be NULL,
so remove the if statement, and splice the two printfs() together.

While here, remove the u_long cast, and use the correct printf format
specifier curproc->p_pid.

Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D2695

9 years agoFix the wrong format, format specifies type 'int' but the argument has type
araujo [Mon, 1 Jun 2015 06:14:17 +0000 (06:14 +0000)]
Fix the wrong format, format specifies type 'int' but the argument has type
'long', it was spotted by clang.

Differential Revision: D2663
Reviewed by: imp, rodrigc

9 years agoRemove unused variable spotted by clang.
araujo [Mon, 1 Jun 2015 06:05:53 +0000 (06:05 +0000)]
Remove unused variable spotted by clang.

Differential Revision: D2685
Reviewed by: rodrigc, stas

9 years agoRemove unused variable, this variable fmtstr was introduced at revision r225868
araujo [Mon, 1 Jun 2015 06:00:04 +0000 (06:00 +0000)]
Remove unused variable, this variable fmtstr was introduced at revision r225868
and it is not used anymore after the convertion to use libxo at revision r283304.

Differential Revision: D2678
Reviewed by: marcel

9 years agocxgbe: no need to display the per-lane GT/s rating of the pcie link.
np [Mon, 1 Jun 2015 03:24:39 +0000 (03:24 +0000)]
cxgbe: no need to display the per-lane GT/s rating of the pcie link.

MFC after: 1 week

9 years agoFix a debug statement. Only the callback function (performing the
dteske [Mon, 1 Jun 2015 02:06:57 +0000 (02:06 +0000)]
Fix a debug statement. Only the callback function (performing the
incrementing of dpv_overall_oread) knows what its purpose is (and
often times it was bytes, not lines).

MFC after: 3 days
X-MFC-to: stable/10

9 years agocxgbe: set minimum burst size when fetching freelist buffers to 128B.
np [Mon, 1 Jun 2015 00:55:15 +0000 (00:55 +0000)]
cxgbe: set minimum burst size when fetching freelist buffers to 128B.

MFC after: 3 days

9 years agoAppend to SUBDIR, not set it
ngie [Sun, 31 May 2015 22:24:29 +0000 (22:24 +0000)]
Append to SUBDIR, not set it

Pointyhat to: ngie

9 years agoypxfr(8): Use the correct enum member for checking yp_errno.
rodrigc [Sun, 31 May 2015 22:20:36 +0000 (22:20 +0000)]
ypxfr(8): Use the correct enum member for checking yp_errno.

Found-by: gcc47
Submitted by:   Sascha Wildner <swildner@dragonflybsd.org>
Obtained from:  DragonFlyBSD (commit d0b3a17c3c6)

9 years agoCast to gid_t for groups not uid_t
bapt [Sun, 31 May 2015 22:12:31 +0000 (22:12 +0000)]
Cast to gid_t for groups not uid_t

9 years agoRemove useless cast in printf and printf-like functions:
bapt [Sun, 31 May 2015 22:07:03 +0000 (22:07 +0000)]
Remove useless cast in printf and printf-like functions:
use %u for uid_t and gid_t

9 years agoCast -1 to uid_t and bump WARNING level to 3
bapt [Sun, 31 May 2015 21:44:09 +0000 (21:44 +0000)]
Cast -1 to uid_t and bump WARNING level to 3

9 years agoRemove empty tests directory
ngie [Sun, 31 May 2015 21:39:08 +0000 (21:39 +0000)]
Remove empty tests directory

X-MFC with: r282059, r283056

9 years agoSet the return value correctly on copy failure in copystr.
andrew [Sun, 31 May 2015 21:03:06 +0000 (21:03 +0000)]
Set the return value correctly on copy failure in copystr.

MFC after: 1 week

9 years agoFix some gcc compiler warnings.
rodrigc [Sun, 31 May 2015 20:45:35 +0000 (20:45 +0000)]
Fix some gcc compiler warnings.

Submitted by:   Sascha Wildner <swildner@dragonflybsd.org>
Obtained from:  DragonFlyBSD (commit 51798e10f3dd)

9 years agoyppoll(8): Comment out -h option.
rodrigc [Sun, 31 May 2015 20:20:24 +0000 (20:20 +0000)]
yppoll(8): Comment out -h option.

The implementation of it is missing (see e.g. NetBSD or OpenBSD). Until
someone works on it, comment out the existing code to silence a warning
about 'hostname' being set but unused.

Found-by: gcc47
Submitted by: Sascha Wildner <swildner@dragonflybsd.org>
Obtained from: DragonFlyBSD (commit e455855db)

9 years agoConsistently only use one end of the pipe in the parent and debugger
jhb [Sun, 31 May 2015 19:43:35 +0000 (19:43 +0000)]
Consistently only use one end of the pipe in the parent and debugger
processes and do not rely on EOF due to a close() in the debugger.

PR: 200489
Differential Revision: https://reviews.freebsd.org/D2674
Reviewed by: kib, ngie, rodrigc

9 years agoUse proper prototype for harmless().
rodrigc [Sun, 31 May 2015 19:09:24 +0000 (19:09 +0000)]
Use proper prototype for harmless().

9 years agoMake x_putlong() and x_putbytes() prototypes match the
rodrigc [Sun, 31 May 2015 18:11:20 +0000 (18:11 +0000)]
Make x_putlong() and x_putbytes() prototypes match the
prototypes in <rpc/xdr.h>

9 years agoUse ANSI C prototypes.
rodrigc [Sun, 31 May 2015 18:08:58 +0000 (18:08 +0000)]
Use ANSI C prototypes.

9 years agoRemove unused variable.
kib [Sun, 31 May 2015 15:50:54 +0000 (15:50 +0000)]
Remove unused variable.

When deallocate_dependencies() is performed,
softdep_journal_freeblocks() already called cancel_allocdirect() which
should have eliminated direct dependencies for all truncated full
blocks.  The indirect dependencies are allowed above, since second-
and third-level dependencies are only dealt with by the code which
frees indirect block, which happens after the inode write.

Discussed with: mckusick, jeff
Reviewed by: jeff
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

9 years agoAdd the needed if-then instructions to build as Thumb-2.
andrew [Sun, 31 May 2015 14:04:11 +0000 (14:04 +0000)]
Add the needed if-then instructions to build as Thumb-2.

9 years agoRemove __ARM_EABI__ from more places in libc as this is the only ARM ABI
andrew [Sun, 31 May 2015 12:53:10 +0000 (12:53 +0000)]
Remove __ARM_EABI__ from more places in libc as this is the only ARM ABI
we support.

9 years agoThe code starts with base + 1 as the first port. Fix to documentation
tuexen [Sun, 31 May 2015 12:18:30 +0000 (12:18 +0000)]
The code starts with base + 1 as the first port. Fix to documentation
to match that.

MFC after: 3 days

9 years agoA TCP checksum of 0 is completely valid. Mapping 0 to 0xffff only
tuexen [Sun, 31 May 2015 12:11:05 +0000 (12:11 +0000)]
A TCP checksum of 0 is completely valid. Mapping 0 to 0xffff only
applies to UDP and UDP-Lite.

MFC after: 3 days

9 years agoMove cleanup functions to the right place
bapt [Sun, 31 May 2015 12:04:06 +0000 (12:04 +0000)]
Move cleanup functions to the right place

9 years agoDon't send illegal packets when using UDP-Lite.
tuexen [Sun, 31 May 2015 12:03:38 +0000 (12:03 +0000)]
Don't send illegal packets when using UDP-Lite.

MFC after: 3 days