]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoDo not overwrite the new UTF-8 files with the old ISO one
Baptiste Daroussin [Wed, 17 Jul 2013 14:00:51 +0000 (14:00 +0000)]
Do not overwrite the new UTF-8 files with the old ISO one

11 years agoSimplify keywords.h generation.
Hiroki Sato [Wed, 17 Jul 2013 13:47:13 +0000 (13:47 +0000)]
Simplify keywords.h generation.

11 years agoRemove check forbidding requests that would result in one port being set
John Baldwin [Wed, 17 Jul 2013 13:41:54 +0000 (13:41 +0000)]
Remove check forbidding requests that would result in one port being set
to Ethernet and the subsequent port being set to IB.

Submitted by: Shakar Klein @ Mellanox
Tested by: Morgan Robertson <morganrobertson@gmail.com>
MFC after: 1 week

11 years agoFix typo.
Gleb Smirnoff [Wed, 17 Jul 2013 13:13:44 +0000 (13:13 +0000)]
Fix typo.

Submitted by: ae

11 years agoImprove example, so that it doesn't dump core when example module
Gleb Smirnoff [Wed, 17 Jul 2013 12:28:48 +0000 (12:28 +0000)]
Improve example, so that it doesn't dump core when example module
isn't loaded.

11 years agoChange Eu to the proper UTF-8 symbol this was missed in r253414
Baptiste Daroussin [Wed, 17 Jul 2013 11:51:24 +0000 (11:51 +0000)]
Change Eu to the proper UTF-8 symbol this was missed in r253414

11 years agoClear the vnode knotes before destroying vpollinfo.
Konstantin Belousov [Wed, 17 Jul 2013 10:56:21 +0000 (10:56 +0000)]
Clear the vnode knotes before destroying vpollinfo.

Reported and tested by: Patrick Lamaiziere <patfbsd@davenulle.org>
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

11 years agoFor all european contries using the euro currency, add an UTF-8 definition with the...
Baptiste Daroussin [Wed, 17 Jul 2013 10:12:31 +0000 (10:12 +0000)]
For all european contries using the euro currency, add an UTF-8 definition with the proper Euro symbol

MFC after: 1 week

11 years ago[fix to r253380] __setenv: be explicit about placing '=' after name
Andriy Gapon [Wed, 17 Jul 2013 08:45:27 +0000 (08:45 +0000)]
[fix to r253380] __setenv: be explicit about placing '=' after name

This should a regression introduced in r253380 if malloc'ed memory
happens to have '=' at the right place.

Reported by: ache
Pointyhat to: me (avg)
MFC after: 1 day
X-MFC with: r253380

11 years agoImplement workaround for BCM5719/BCM5720 TX hang.
Pyun YongHyeon [Wed, 17 Jul 2013 04:53:53 +0000 (04:53 +0000)]
Implement workaround for BCM5719/BCM5720 TX hang.
The read DMA request logic operation is based on having sufficient
available space in the transmit data buffer (TXMBUF) before a read
DMA can be requested.  There are four read DMA channels that use
the TXMBUF, and the logic checks if the available free space in the
TXMBUF is large enough for all the data in the four Send Buffers
for which buffer descriptors have been fetched.  The Enable_Request
signal is asserted only if the free TXMBUF space is larger than the
sum of the four DMA length registers.  The power-up default value
of BGE_RDMA_LSO_CRPTEN_CTRL register bit 25 (bit 21 on BCM5720) is
zero, which selects the DMA length registers to connect to the
input of the adder block.  The DMA length registers are
asynchronously reset following BCM5719/BCM5720 power-up, and due to
the lack of synchronous deassertion of the length registers reset
signal these resisters may contain uninitialized values following
the reset deassertion.
In the case of the failure the uninitialized DMA length register
values added up to more than the TXMBUF size, which prevented the
assertion of the Enable_Request signal and any subsequent read DMA
to start.  This lockup condition is the root cause of failing to
generate any transmit traffic.

To workaround the issue, select alternate output of multiplexers
and transmit the first four Ethernet frames. This overwrites the
DMA length registers with valid values.

Reported by: Geans Pin <geanspin@broadcom.com>
Reviewed by: Geans Pin <geanspin@broadcom.com>

11 years agoSpecify a timeout for the PL block.
Navdeep Parhar [Wed, 17 Jul 2013 02:37:40 +0000 (02:37 +0000)]
Specify a timeout for the PL block.

MFC after: 3 days

11 years agoAvoid magic constant.
Pyun YongHyeon [Wed, 17 Jul 2013 01:34:25 +0000 (01:34 +0000)]
Avoid magic constant.
No functional change.

11 years ago o TxD ring requires 8 bytes alignment to work so change alignment
Pyun YongHyeon [Wed, 17 Jul 2013 01:24:23 +0000 (01:24 +0000)]
 o TxD ring requires 8 bytes alignment to work so change alignment
   constraint to 8. Previously it may have triggered watchdog
   timeouts.
 o Check whether interrupt is ours or not.
 o Enable interrupts before attemping to transmit queued packets.
   This will slightly improve TX performance.
 o No need to clear IFF_DRV_OACTIVE in a loop. AE_FLAG_TXAVAIL is
   used to know whether there are enough available TxD ring space.
 o Added missing bus_dmamap_sync(9) in ae_rx_intr() and rearranged
   code to avoid unncessary register access.
 o Make sure to clear TxD, TxS, RxD rings in driver initialization.
   Otherwise some data in these rings could be interpreted as
   'updated' which in turn will advance internally maintained
   pointers and can trigger watchdog timeouts.

PR: kern/180382

11 years agoAdd missing headers.
Kevin Lo [Wed, 17 Jul 2013 00:58:23 +0000 (00:58 +0000)]
Add missing headers.

11 years agoUse PRId64 instead of %gd to print an int64_t.
Kevin Lo [Wed, 17 Jul 2013 00:54:21 +0000 (00:54 +0000)]
Use PRId64 instead of %gd to print an int64_t.

11 years agoFix vfp:
Andrew Turner [Tue, 16 Jul 2013 23:19:05 +0000 (23:19 +0000)]
Fix vfp:
 - We should check is_d32 to see howmany registers we have
 - In vfp_restore mark vfpscr as an output register

Without the second part it appears we can return the incorrect value from
vfp_bounce if the VFP condition flags are set as it may override the
register holding the return value.

11 years agoAdd a tunable to force disable MSI use for xhci(4).
Konstantin Belousov [Tue, 16 Jul 2013 20:14:23 +0000 (20:14 +0000)]
Add a tunable to force disable MSI use for xhci(4).

Requested and tested by: delphij
Sponsored by: The FreeBSD Foundation
MFC after: 3 days

11 years agoRegen.
Andrew Turner [Tue, 16 Jul 2013 19:20:50 +0000 (19:20 +0000)]
Regen.

11 years ago2 years, 10 months, 22 days after the projects/arm_eabi branch was created
Andrew Turner [Tue, 16 Jul 2013 19:15:19 +0000 (19:15 +0000)]
2 years, 10 months, 22 days after the projects/arm_eabi branch was created
make the ARM EABI the default ABI on arm, armeb, armv6 and armv6eb.

This is intended to be the default ABI from now on with the old ABI to be
retired. Because of this all users are strongly suggested to upgrade to the
ARM EABI.

As the two ABIs are incompatible it is unlikely upgrading in place will
work. Users should perform a full backup and either use an external machine
to upgrade, or install to an alternative location on their media. They
should also reinstall all ports or packages when these are available.

The only known issues are:
 - pkg incorrectly detects the ABI. This is fixed upstream, and will a
   patch will be made to the port.
 - GDB can have issues with executables built with clang.

__FreeBSD_version has been bumped.

11 years agoFree the non-fatal "timestamp missing" debug string manually as it is
Andre Oppermann [Tue, 16 Jul 2013 16:37:08 +0000 (16:37 +0000)]
Free the non-fatal "timestamp missing" debug string manually as it is
not covered by the catch-all free for the error cases.

Found by: Coverity

11 years agoDo not throw an error if the user requests to activate the image from
Jim Harris [Tue, 16 Jul 2013 15:45:37 +0000 (15:45 +0000)]
Do not throw an error if the user requests to activate the image from
an empty firmware slot, as long as the user has specified a firmware
image to download into the empty firmware slot.

Sponsored by: Intel
Reported by: Joe Golio <joseph.golio@emc.com>
MFC after: 3 days

11 years agoWorkaround some broken BIOSes that specify edge-sensitive but active-low
John Baldwin [Tue, 16 Jul 2013 14:42:16 +0000 (14:42 +0000)]
Workaround some broken BIOSes that specify edge-sensitive but active-low
settings for ACPI-enumerated serial ports by forcing any IRQs that use
an ISA IRQ value with these settings to active-high instead of active-low.

This is known to occur with the BIOS on an Intel D2500CCE motherboard.

Tested by: Robert Ames <robertames@hotmail.com>, lev
Submitted by: Juergen Weiss weiss at uni-mainz.de (original patch)

11 years agoSweep unused nlist entries.
Gleb Smirnoff [Tue, 16 Jul 2013 12:22:36 +0000 (12:22 +0000)]
Sweep unused nlist entries.

Sponsored by: Nginx, Inc.

11 years agoNeed to define NO_MAN here.
Kevin Lo [Tue, 16 Jul 2013 09:40:59 +0000 (09:40 +0000)]
Need to define NO_MAN here.

11 years agoUse MAN= instead of NO_MAN=
Kevin Lo [Tue, 16 Jul 2013 09:38:51 +0000 (09:38 +0000)]
Use MAN= instead of NO_MAN=

For some reason it still tries to install a priv.1 when using NO_MAN,
even though there isn't one yet.

11 years agoAdd missing header needed by sleep(3).
Kevin Lo [Tue, 16 Jul 2013 09:22:50 +0000 (09:22 +0000)]
Add missing header needed by sleep(3).

11 years agolibc: name passed into __setenv is not necessarily NUL-terminated
Andriy Gapon [Tue, 16 Jul 2013 07:26:46 +0000 (07:26 +0000)]
libc: name passed into __setenv is not necessarily NUL-terminated

That's particularly true when __setenv is called from __merge_environ.

MFC after: 4 days

11 years agoAdd urtwnfw.
Rui Paulo [Tue, 16 Jul 2013 06:43:37 +0000 (06:43 +0000)]
Add urtwnfw.

11 years agoSilent warnings.
Kevin Lo [Tue, 16 Jul 2013 03:12:31 +0000 (03:12 +0000)]
Silent warnings.

11 years agoAdd -n flag for compatibility with Linux version of mount(8).
Robert Millan [Mon, 15 Jul 2013 21:57:21 +0000 (21:57 +0000)]
Add -n flag for compatibility with Linux version of mount(8).

Reviewed by: freebsd-fs, eadler, mckusick, jh, wblock

11 years agoMake some improvements to r253322 to really rescan target, not a bus.
Alexander Motin [Mon, 15 Jul 2013 18:17:31 +0000 (18:17 +0000)]
Make some improvements to r253322 to really rescan target, not a bus.
Add there and in two more places checks for NULL on xpt_alloc_ccb_nowait().

11 years agoFix an argument reversal in calls to scsi_read_element_status().
Kenneth D. Merry [Mon, 15 Jul 2013 16:38:48 +0000 (16:38 +0000)]
Fix an argument reversal in calls to scsi_read_element_status().

Reported by: Ulrich Spoerlein <uqs@FreeBSD.org>
MFC after: 3 days

11 years agoInclude sys/systm.h after sys/param.h.
Andrey V. Elsukov [Mon, 15 Jul 2013 15:40:57 +0000 (15:40 +0000)]
Include sys/systm.h after sys/param.h.

Suggested by: pluknet

11 years agoAdd IBM ServeRAID M5110 to the hardware list.
Sergey Kandaurov [Mon, 15 Jul 2013 14:28:59 +0000 (14:28 +0000)]
Add IBM ServeRAID M5110 to the hardware list.
This is a rebranded MegaRAID SAS 2208 [Thunderbolt] found e.g. on x3550 M4.

Reported by: Ilia Noskov <noskov@nic.ru>
MFC after: 3 days

11 years agoNuke mbstat. It wasn't used for mbuf statistics since FreeBSD 5.
Gleb Smirnoff [Mon, 15 Jul 2013 12:18:36 +0000 (12:18 +0000)]
Nuke mbstat. It wasn't used for mbuf statistics since FreeBSD 5.

Now that r253351 moved sendfile() stats to a separate struct, the
last field used in mbstat is m_mcfail, which is updated, but never
read or obtained from userland.

11 years agoNuke "systat -mbuf". It was broken since FreeBSD 5, and since there
Gleb Smirnoff [Mon, 15 Jul 2013 12:15:14 +0000 (12:15 +0000)]
Nuke "systat -mbuf". It was broken since FreeBSD 5, and since there
haven't been any complaints, no one used it.

11 years agoWhen stopping pfsync, remove the pfsync interface's syncpeer setting.
Dag-Erling Smørgrav [Mon, 15 Jul 2013 08:48:45 +0000 (08:48 +0000)]
When stopping pfsync, remove the pfsync interface's syncpeer setting.

MFC after: 3 days

11 years agoMove the Raspberry Pi low level options out of the kernel config and into
Rui Paulo [Mon, 15 Jul 2013 07:01:30 +0000 (07:01 +0000)]
Move the Raspberry Pi low level options out of the kernel config and into
std.rpi + std.bcm2835.

Reviewed by: imp

11 years agoMFi386: add ddb "show sysregs" command.
Konstantin Belousov [Mon, 15 Jul 2013 06:30:57 +0000 (06:30 +0000)]
MFi386: add ddb "show sysregs" command.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

11 years agoIntroduce new structure sfstat for collecting sendfile's statistics
Andrey V. Elsukov [Mon, 15 Jul 2013 06:16:57 +0000 (06:16 +0000)]
Introduce new structure sfstat for collecting sendfile's statistics
and remove corresponding fields from struct mbstat. Use PCPU counters
and SFSTAT_INC() macro for update these statistics.

Discussed with: glebius

11 years agoFix compiler warnings.
Hiroki Sato [Mon, 15 Jul 2013 05:09:13 +0000 (05:09 +0000)]
Fix compiler warnings.

11 years agoDocument options for .eli devices.
Hiroki Sato [Mon, 15 Jul 2013 03:50:14 +0000 (03:50 +0000)]
Document options for .eli devices.

Submitted by: ADAM David Alan Martin

11 years agoPR: kern/168520
Craig Rodrigues [Mon, 15 Jul 2013 01:41:34 +0000 (01:41 +0000)]
PR: kern/168520

Revert GRN 253255.  It is not needed now that GRN 253346 is committed.

11 years agoPR: 168520 170096
Craig Rodrigues [Mon, 15 Jul 2013 01:32:55 +0000 (01:32 +0000)]
PR: 168520 170096
Submitted by: adrian, zec

Fix multiple kernel panics when VIMAGE is enabled in the kernel.
These fixes are based on patches submitted by Adrian Chadd and Marko Zec.

(1)  Set curthread->td_vnet to vnet0 in device_probe_and_attach() just before calling
     device_attach().  This fixes multiple VIMAGE related kernel panics
     when trying to attach Bluetooth or USB Ethernet devices because
     curthread->td_vnet is NULL.

(2)  Set curthread->td_vnet in if_detach().  This fixes kernel panics when detaching networking
     interfaces, especially USB Ethernet devices.

(3)  Use VNET_DOMAIN_SET() in ng_btsocket.c

(4)  In ng_unref_node() set curthread->td_vnet.  This fixes kernel panics
     when detaching Netgraph nodes.

11 years agoUpdate fuse_kernel header.
Pedro F. Giffuni [Mon, 15 Jul 2013 00:05:27 +0000 (00:05 +0000)]
Update fuse_kernel header.

Bring in the changes from the FUSE kernel interface 7.10
(available under a BSD license).

After 7.10 the linux FUSE developers added support for a
controversial CUSE driver and some linux especific
features that are unlikely to find its way into FreeBSD.

We currently don't implement any of the new features so we
are *not* bumping the FUSE_KERNEL_MINOR_VERSION. The header
should, nevertheless, serve  as a template to add the new
features in a compatible manner.

While here adopt some minor cleanups from the upstream version
like removing FUSE_MAJOR and FUSE_MINOR which were never
used. Also add multiple inclusion header guards,

11 years agoFix a grammatical error.
Rui Paulo [Sun, 14 Jul 2013 20:22:16 +0000 (20:22 +0000)]
Fix a grammatical error.

11 years agoUpdate to comments describing block allocation policy.
Kirk McKusick [Sun, 14 Jul 2013 18:44:33 +0000 (18:44 +0000)]
Update to comments describing block allocation policy.

Submitted by: Bruce Evans

11 years agoRevert r252725 as it breaks WPA.
Rui Paulo [Sun, 14 Jul 2013 18:26:47 +0000 (18:26 +0000)]
Revert r252725 as it breaks WPA.

We need to fix wpa_supplicant because it checks whether the card has
ic_cryptocaps set. Since net80211 can do software encryption this check in
wpa_supplicant is wrong.

11 years agoAdd some missing definitions to build a working FreeBSD's libusb under Linux.
Hans Petter Selasky [Sun, 14 Jul 2013 10:22:00 +0000 (10:22 +0000)]
Add some missing definitions to build a working FreeBSD's libusb under Linux.

11 years agoAdd some missing LIBUSB IOCTL conversion codes.
Hans Petter Selasky [Sun, 14 Jul 2013 10:13:01 +0000 (10:13 +0000)]
Add some missing LIBUSB IOCTL conversion codes.

11 years agoRe-implement $probe_only aspect of f_media_get_TYPE() (where TYPE is cdrom,
Devin Teske [Sun, 14 Jul 2013 03:08:52 +0000 (03:08 +0000)]
Re-implement $probe_only aspect of f_media_get_TYPE() (where TYPE is cdrom,
nfs, ftp, http, httpproxy, etc.) and f_device_get() (abstract method for
calling aforementioned f_media_get_TYPE()).

Previously, if $probe_only was present and non-NULL, the TYPE functions
would check for $file and exit with an appropriate error status (success if
the file exists and readable, failure otherwise).

While this has been retained, a pair of globals has been introduced:
$PROBE_EXIST and $PROBE_SIZE (see `/usr/share/bsdconfig/media/common.subr')

The $PROBE_EXIST global can be used where you need the functionality of
simply testing for existence (previously the _only_ functionality).

Meanwhile, the new $PROBE_SIZE global can be used to cause the TYPE function
to print the size of the file (in bytes) on standard-out (or -1) if not
found or an error occurs. NOTE: If an error occurs, it is logged with the
dprintf function, which is visible with `-d' flag or debug=1.

In many cases, where you need to get the size of a file _and_ check for its
existence, you can use the return status of a $PROBE_SIZE call.

11 years agoAllow regular off-the-shelf keyboards to be overclocked like so-called
Hans Petter Selasky [Sat, 13 Jul 2013 22:39:56 +0000 (22:39 +0000)]
Allow regular off-the-shelf keyboards to be overclocked like so-called
"Gamers Keyboards" by adding a tunable, "hw.usb.ukbd.pollrate", which
can fix the polling rate of the attached USB keyboards in the range
1..1000Hz. A similar feature already exists in the USB mouse
driver. Use with care! Might leave you without keyboard input. This
feature is only available when the USB_DEBUG option is set in the
kernel configuration file.

Correct "unit" type to "int" while at it.

11 years agoAdd creation timestamp (birthtime) support for fuse.
Pedro F. Giffuni [Sat, 13 Jul 2013 22:06:41 +0000 (22:06 +0000)]
Add creation timestamp (birthtime) support for fuse.

I was keeping this #ifdef'd for reference with the MacFUSE change[1]
but on second thought, this is a FreeBSD-only header so the SVN
history should be enough.

Add missing padding while here.

Reference [1]:
http://code.google.com/p/macfuse/source/detail?spec=svn1686&r=1360

11 years agoWhen fiddling with options of which registers to copy out for
Matt Jacob [Sat, 13 Jul 2013 21:24:25 +0000 (21:24 +0000)]
When fiddling with options of which registers to copy out for
a mailbox command and which registers to copy back in when
the command completes, the bits being set need to not only
specify what bits you want to add from the default from the
table but also what bits you want *subtract* (mask) from the
default from the table.

A failing ISP2200 command pointed this out.

Much appreciation to: marius, who persisted and narrowed down what
the failure delta was, and shamed me into actually fixing it.
MFC after: 1 week

11 years agoCreate a proper stack frame for i386 version of bcopy(), despite the
Konstantin Belousov [Sat, 13 Jul 2013 19:42:52 +0000 (19:42 +0000)]
Create a proper stack frame for i386 version of bcopy(), despite the
function is leaf.  The frame allows ddb to not loose the direct caller
of bcopy() in backtrace.

Other functions from support.s would benefit from the same change as
well, but for now bcopy() is the most frequent offender.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

11 years agoAssert that runningbufspace does not underflow.
Konstantin Belousov [Sat, 13 Jul 2013 19:36:18 +0000 (19:36 +0000)]
Assert that runningbufspace does not underflow.

Sponsored by: The FreeBSD Foundation

11 years agoThere is no need to count waiters for the runningbufspace.
Konstantin Belousov [Sat, 13 Jul 2013 19:34:34 +0000 (19:34 +0000)]
There is no need to count waiters for the runningbufspace.

Sponsored by: The FreeBSD Foundation

11 years agoAllow to call clock_gettime() on the clock id for zombie process.
Konstantin Belousov [Sat, 13 Jul 2013 19:32:50 +0000 (19:32 +0000)]
Allow to call clock_gettime() on the clock id for zombie process.

Reported by: Petr Salinger <Petr.Salinger@seznam.cz>
PR: threads/180496
Sponsored by: The FreeBSD Foundation

11 years agoWhen printing opcode description, map T_NODEVICE to Direct Access Device to
Alexander Motin [Sat, 13 Jul 2013 15:34:37 +0000 (15:34 +0000)]
When printing opcode description, map T_NODEVICE to Direct Access Device to
handle REPORT LUNS, etc.

11 years agoImprove handling of 0x3F/0x0E "Reported LUNs data has changed" and 0x25/0x00
Alexander Motin [Sat, 13 Jul 2013 13:35:09 +0000 (13:35 +0000)]
Improve handling of 0x3F/0x0E "Reported LUNs data has changed" and 0x25/0x00
"Logical unit not supported" errors.  First initiates specific target rescan,
second -- destroys specific LUN.  That allows to automatically detect changes
in list of device LUNs.  This mechanism doesn't work when target is completely
idle, but probably that is all what can be done without active polling.

Reviewed by: ken
Sponsored by: iXsystems, Inc.

11 years agoCleaner support for type qualifiers.
David Chisnall [Sat, 13 Jul 2013 13:04:38 +0000 (13:04 +0000)]
Cleaner support for type qualifiers.

Submitted by: Pasi Parviainen

11 years agoEnsure that the _Generic() macro in math.h works with qualified types.
David Chisnall [Sat, 13 Jul 2013 10:10:45 +0000 (10:10 +0000)]
Ensure that the _Generic() macro in math.h works with qualified types.

tgmath.h contains the same bugs and so should be fixed in the same way.

11 years agoFix mdoc syntax.
Hiroki Sato [Sat, 13 Jul 2013 08:17:55 +0000 (08:17 +0000)]
Fix mdoc syntax.

Pointed out by: joeld

11 years agoFix the urtwnfw definitions. We can now use urtwnfw in kernel config files.
Rui Paulo [Sat, 13 Jul 2013 07:17:18 +0000 (07:17 +0000)]
Fix the urtwnfw definitions. We can now use urtwnfw in kernel config files.

11 years agoClean up the modules list for PowerPC. powerpc64 has MACHINE_CPUARCH of
Justin Hibbits [Sat, 13 Jul 2013 07:16:45 +0000 (07:16 +0000)]
Clean up the modules list for PowerPC.  powerpc64 has MACHINE_CPUARCH of
powerpc.  While here, sort the list.

11 years agoBring over some link aggregation / LACP protocol improvements and debugging
Adrian Chadd [Sat, 13 Jul 2013 04:25:03 +0000 (04:25 +0000)]
Bring over some link aggregation / LACP protocol improvements and debugging
additions.

* Add some new tracing events to aid in debugging.
* Add in a debugging mode to drop transmit and received frames, specifically
  to test whether seeing or hearing heartbeats correctly cause LACP to
  drop the port.
* Add in (and make default) a strict LACP mode, which requires the
  heartbeat on a port to be heard before it's used.  Sometimes vendor ports
  will hang but the link layer stays up, resulting in hung traffic.
* Add logging the number of link status flaps, again to aid in debugging
  badly behaving switch ports.
* Calculate the lagg interface port speed as the multiple of the
  configured ports, rather than the largest.

Obtained from: Netflix
MFC after: 2 weeks

11 years agoIndent the "scp=... rlv=..." to make it easier to read the backtrace.
Rui Paulo [Sat, 13 Jul 2013 00:39:07 +0000 (00:39 +0000)]
Indent the "scp=... rlv=..." to make it easier to read the backtrace.

11 years agoConst-ify the new da_delete_functions.
Scott Long [Fri, 12 Jul 2013 23:20:11 +0000 (23:20 +0000)]
Const-ify the new da_delete_functions.
Remove a redundant sanity check

Submitted by: Steven Hartland
Obtained from: Netflix
MFC after: 3 days

11 years agoRegenerate src.conf(5) after changing WITHOUT_PKGTOOLS to WITH_PKGTOOLS
Baptiste Daroussin [Fri, 12 Jul 2013 23:12:37 +0000 (23:12 +0000)]
Regenerate src.conf(5) after changing WITHOUT_PKGTOOLS to WITH_PKGTOOLS

11 years agoDisable building of pkg_install by default
Baptiste Daroussin [Fri, 12 Jul 2013 23:11:17 +0000 (23:11 +0000)]
Disable building of pkg_install by default
If people still want to have pkg_install they can specify WITH_PKGTOOLS when building world

11 years agoEnsure the locale is LC_ALL=C when regenerating src.conf.5
Baptiste Daroussin [Fri, 12 Jul 2013 23:08:44 +0000 (23:08 +0000)]
Ensure the locale is LC_ALL=C when regenerating src.conf.5

MFC after: 3 days

11 years agoChange the E1000 driver option header handling to match the
Jack F Vogel [Fri, 12 Jul 2013 22:36:26 +0000 (22:36 +0000)]
Change the E1000 driver option header handling to match the
ixgbe driver. As it was, when building them as a module INET
and INET6 are not defined. In these drivers it does not cause
a panic, however it does result in different behavior in the
ioctl routine when you are using a module vs static, and I
think the behavior should be the same.

MFC after: 3 days

11 years agoDocument that a literal jail name of 0 (zero) is not allowed.
Glen Barber [Fri, 12 Jul 2013 22:02:11 +0000 (22:02 +0000)]
Document that a literal jail name of 0 (zero) is not allowed.

PR: 174436
Submitted by: Robert Schulze
Reviewed by: mjg
MFC after: 3 days

11 years agoMerge from hpt27xx, r249468 (mav):
Xin LI [Fri, 12 Jul 2013 21:36:29 +0000 (21:36 +0000)]
Merge from hpt27xx, r249468 (mav):

MFprojects/camlock r248982:
Stop abusing xpt_periph in random plases that really have no periph related
to CCB, for example, bus scanning.  NULL value is fine in such cases and it
is correctly logged in debug messages as "noperiph".  If at some point we
need some real XPT periphs (alike to pmpX now), quite likely they will be
per-bus, and not a single global instance as xpt_periph now.

11 years agoOpps, need to change the VF code as well.
Jack F Vogel [Fri, 12 Jul 2013 21:21:15 +0000 (21:21 +0000)]
Opps, need to change the VF code as well.

MFC after: ASAP

11 years agoRemove the conditional define around the option headers,
Jack F Vogel [Fri, 12 Jul 2013 21:14:42 +0000 (21:14 +0000)]
Remove the conditional define around the option headers,
when building the driver as a module the result of the present
system results in INET and INET6 being undefined, and will cause
the panic in ixgbe_tso_setup(). The Makefile in the module directory
now renders the conditional in the source unnecessary and wrong.

MFC after: ASAP - the panic as a module must not get into 9.2

11 years agoA complete duplication of binding should be allowed if on both new and
Mikolaj Golub [Fri, 12 Jul 2013 19:08:33 +0000 (19:08 +0000)]
A complete duplication of binding should be allowed if on both new and
duplicated sockets a multicast address is bound and either
SO_REUSEPORT or SO_REUSEADDR is set.

But actually it works for the following combinations:

  * SO_REUSEPORT is set for the fist socket and SO_REUSEPORT for the new;
  * SO_REUSEADDR is set for the fist socket and SO_REUSEADDR for the new;
  * SO_REUSEPORT is set for the fist socket and SO_REUSEADDR for the new;

and fails for this:

  * SO_REUSEADDR is set for the fist socket and SO_REUSEPORT for the new.

Fix the last case.

PR: 179901
MFC after: 1 month

11 years agoOnly copy as much bytes as there in superblock, instead of the full
Konstantin Belousov [Fri, 12 Jul 2013 18:52:33 +0000 (18:52 +0000)]
Only copy as much bytes as there in superblock, instead of the full
block copy, when copying the superblock into the snapshot.  UFS1 does
not align superblock on the block boundary, and bcopy runs off the end
of the buffer.

Reported by: Andre Albsmeier <Andre.Albsmeier@siemens.com>
Reviewed by: mckusick
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

11 years ago%d should be used for printing int32_t instead of %zd.
Jim Harris [Fri, 12 Jul 2013 18:13:41 +0000 (18:13 +0000)]
%d should be used for printing int32_t instead of %zd.

clang does not complain about this - only gcc.

MFC after: 3 days

11 years agoTypo corrected.
Jens Schweikhardt [Fri, 12 Jul 2013 17:37:05 +0000 (17:37 +0000)]
Typo corrected.

11 years agoAdd creation timestamp (birthtime) support for fuse.
Pedro F. Giffuni [Fri, 12 Jul 2013 17:22:59 +0000 (17:22 +0000)]
Add creation timestamp (birthtime) support for fuse.

This is based on similar support in MacFUSE.

11 years agoAdd -F fibnum option to specify an FIB number for -r flag.
Hiroki Sato [Fri, 12 Jul 2013 17:11:30 +0000 (17:11 +0000)]
Add -F fibnum option to specify an FIB number for -r flag.

11 years agoFix a problem with READ ELEMENT STATUS that occurs on some
Kenneth D. Merry [Fri, 12 Jul 2013 17:09:50 +0000 (17:09 +0000)]
Fix a problem with READ ELEMENT STATUS that occurs on some
changers that don't support the DVCID and CURDATA bits that were
introduced in the SMC spec.

These changers will return an Illegal Request type error if the
bits are set.  This causes "chio status" to fail.

The fix is two-fold.  First, for changers that claim to be SCSI-2
or older, don't set the DVCID and CURDATA bits for READ ELEMENT
STATUS.  For newer changers (SCSI-3 and newer), we default to
setting the new bits, but back off and try the READ ELEMENT STATUS
without the bits if we get an Illegal Request type error.

This has been tested on a Qualstar TLS-8211, which is a SCSI-2
changer that does not support the new bits, and a Spectra T-380,
which is a SCSI-3 changer that does support the new bits.  In the
absence of a SCSI-3 changer that does not support the bits, I
tested that with some error injection code.  (The SMC spec says
that support for CURDATA is mandatory, and DVCID is optional.)

scsi_ch.c: Add a new quirk, CH_Q_NO_DVCID that gets set for
SCSI-2 and older libraries, or newer libraries that
report errors when the DVCID/CURDATA bits are set.

In chgetelemstatus(), use the new quirk to
determine whether or not to set DVCID and CURDATA.
If we get an error with the bits set, back off and
try without the bits.  Set the quirk flag if the
read element status succeeds without the bits set.

Increase the READ ELEMENT STATUS timeout to 60
seconds after testing with a Spectra T-380.  The
previous value was 10 seconds, and too short for
the T-380.  This may be decreased later after
some additional testing and investigation.

Tested by: Andre Albsmeier <Andre.Albsmeier@siemens.com>
Sponsored by: Spectra Logic
MFC after: 3 days

11 years agoFix check: bitwise and has only one &.
Nathan Whitehorn [Fri, 12 Jul 2013 15:56:30 +0000 (15:56 +0000)]
Fix check: bitwise and has only one &.

MFC after: 1 week

11 years agosh: Do not read from stdin if an error occurs during -i -c cmd.
Jilles Tjoelker [Fri, 12 Jul 2013 15:29:41 +0000 (15:29 +0000)]
sh: Do not read from stdin if an error occurs during -i -c cmd.

Although using -i with -c does not seem very useful, it seems inappropriate
to read commands from the terminal in this case.

Side effect: if the -s -c extension is used and the -s option is turned off
using 'set +s' during the interactive part, the shell now exits after an
error or interrupt. Note that POSIX only specifies -s as option to sh, not
to set.

See also Austin Group issue #718.

11 years ago- mdoc: remove superfluous paragraph macros.
Sergey Kandaurov [Fri, 12 Jul 2013 15:08:37 +0000 (15:08 +0000)]
- mdoc: remove superfluous paragraph macros.
- fix typo in xref manual section number.

11 years agoRemove non existent in FreeBSD reference.
Gleb Smirnoff [Fri, 12 Jul 2013 14:46:40 +0000 (14:46 +0000)]
Remove non existent in FreeBSD reference.

11 years agoAdd manual page for vmem(9). Obtained from NetBSD, modified to match
Gleb Smirnoff [Fri, 12 Jul 2013 14:25:58 +0000 (14:25 +0000)]
Add manual page for vmem(9). Obtained from NetBSD, modified to match
our implementation.

Obtained from: NetBSD

11 years agoPrefix the alias macros for members of struct __mcontext with an underscore
Marius Strobl [Fri, 12 Jul 2013 14:24:52 +0000 (14:24 +0000)]
Prefix the alias macros for members of struct __mcontext with an underscore
in order to avoid a clash in the net80211 code.

11 years agoAdd a leaf node CTL_NET.PF_ROUTE.0.AF.NET_RT_DUMP.0.FIB. This returns
Hiroki Sato [Fri, 12 Jul 2013 12:36:12 +0000 (12:36 +0000)]
Add a leaf node CTL_NET.PF_ROUTE.0.AF.NET_RT_DUMP.0.FIB.  This returns
routing table with the specified FIB number, not td->td_proc->p_fibnum.

11 years ago- Drop GIF_ACCEPT_REVETHIP flag by default.
Hiroki Sato [Fri, 12 Jul 2013 12:18:07 +0000 (12:18 +0000)]
- Drop GIF_ACCEPT_REVETHIP flag by default.
- Add IFF_MONITOR support.

11 years agoFix the build with C++ where __builtin_types_compatible_p is not allowed.
David Chisnall [Fri, 12 Jul 2013 11:03:51 +0000 (11:03 +0000)]
Fix the build with C++ where __builtin_types_compatible_p is not allowed.

11 years agoRemove authpf-noip along with authpf.
Dag-Erling Smørgrav [Fri, 12 Jul 2013 10:07:21 +0000 (10:07 +0000)]
Remove authpf-noip along with authpf.

Reminded by: delphij@

11 years agoFix 'SEE ALSO' list.
Oleg Bulyzhin [Fri, 12 Jul 2013 09:20:55 +0000 (09:20 +0000)]
Fix 'SEE ALSO' list.

11 years agoPR: kern/168520
Craig Rodrigues [Fri, 12 Jul 2013 08:03:10 +0000 (08:03 +0000)]
PR: kern/168520
Submitted by: "YAMAMOTO, Shigeru" <shigeru@iij.ad.jp>
Reviewed by: adrian

In PC-BSD 9.1, VIMAGE is enabled in the kernel config.
For laptops with Bluetooth capability, such as the HP Elitebook 8460p,
the kernel will panic upon bootup, because curthread->td_vnet
is not initialized.

Properly initialize curthread->td_vnet when initializing the Bluetooth stack.

This allows laptops such as the HP Elitebook 8460p laptop
to properly boot with VIMAGE kernels.

11 years agoUnbreak VIMAGE by correctly naming the vnet pointer in struct tcp_syncache.
Andre Oppermann [Fri, 12 Jul 2013 07:43:56 +0000 (07:43 +0000)]
Unbreak VIMAGE by correctly naming the vnet pointer in struct tcp_syncache.

Reported by: trociny, rodrigc

11 years agoFix a wrong memcpy of struct sockaddr.
Hiroki Sato [Fri, 12 Jul 2013 06:54:29 +0000 (06:54 +0000)]
Fix a wrong memcpy of struct sockaddr.

Spotted by: dt71@gmx.com

11 years agoClarify how "hide" and "unhide" commands work on directories.
Jaakko Heinonen [Fri, 12 Jul 2013 06:03:25 +0000 (06:03 +0000)]
Clarify how "hide" and "unhide" commands work on directories.

11 years agoRevert r253247. This change should be improved based on a lesson learnt
Hiroki Sato [Fri, 12 Jul 2013 04:22:46 +0000 (04:22 +0000)]
Revert r253247.  This change should be improved based on a lesson learnt
from r233646 first.

Pointed out by: jmallett

11 years agoUse strtoumax() instead of strtoul() for id/ref attr in XML elements.
Hiroki Sato [Fri, 12 Jul 2013 02:36:00 +0000 (02:36 +0000)]
Use strtoumax() instead of strtoul() for id/ref attr in XML elements.
This improves compatibility when running an ILP32 binary on LP64 kernel.

Spotted by: gjb