freebsd.git
8 years agoAnother follow-up to r290475: Bump .Dd in sysctl_add_oid.9
cem [Sat, 7 Nov 2015 01:58:17 +0000 (01:58 +0000)]
Another follow-up to r290475: Bump .Dd in sysctl_add_oid.9

Sponsored by: EMC / Isilon Storage Division

8 years agoFollow-up to r290475: Add sysctl(8) support for added types
cem [Sat, 7 Nov 2015 01:56:32 +0000 (01:56 +0000)]
Follow-up to r290475: Add sysctl(8) support for added types

Sponsored by: EMC / Isilon Storage Division

8 years agoRound out SYSCTL macros to the full set of fixed-width types
cem [Sat, 7 Nov 2015 01:43:01 +0000 (01:43 +0000)]
Round out SYSCTL macros to the full set of fixed-width types

Add S8, S16, S32, and U32 types;  add SYSCTL*() macros for them, as well
as for the existing 64-bit types.  (While SYSCTL*QUAD and UQUAD macros
already exist, they do not take the same sort of 'val' parameter that
the other macros do.)

Clean up the documented "types" in the sysctl.9 document.  (These are
macros and thus not real types, but the manual page documents intent.)

The sysctl_add_oid(9) arg2 has been bumped from intptr_t to intmax_t to
accommodate 64-bit types on 32-bit pointer architectures.

This is just the kernel support piece; the userspace sysctl(1) support
will follow in a later patch.

Submitted by: Ravi Pokala <rpokala@panasas.com>
Reviewed by: cem
Relnotes: no
Sponsored by: Panasas
Differential Revision: https://reviews.freebsd.org/D4091

8 years agoath(4) - reflect whether this is a full or fast channel change.
adrian [Sat, 7 Nov 2015 00:51:51 +0000 (00:51 +0000)]
ath(4) - reflect whether this is a full or fast channel change.

It's no longer "outdoor."

8 years agofd: implement kern.proc.nfds sysctl
mjg [Sat, 7 Nov 2015 00:18:14 +0000 (00:18 +0000)]
fd: implement kern.proc.nfds sysctl

Intended purpose is to provide an equivalent of OpenBSD's getdtablecount
syscall for the compat library..

8 years agoSet correct code for signal in abort_align() routine.
skra [Fri, 6 Nov 2015 23:17:00 +0000 (23:17 +0000)]
Set correct code for signal in abort_align() routine.
Remove superfluous printf() and both unnecessary and obsolete comments.

Approved by: kib (mentor)

8 years ago[netinet6]: Create a new IPv6 netisr which expects the frames to have been verified.
adrian [Fri, 6 Nov 2015 23:07:43 +0000 (23:07 +0000)]
[netinet6]: Create a new IPv6 netisr which expects the frames to have been verified.

This is required for fragments and encapsulated data (eg tunneling) to be redistributed
to the RSS bucket based on the eventual IPv6 header and protocol (TCP, UDP, etc) header.

* Add an mbuf tag with the state of IPv6 options parsing before the frame is queued
  into the direct dispatch handler;
* Continue processing and complete the frame reception in the correct RSS bucket /
  netisr context.

Testing results are in the phabricator review.

Differential Revision: https://reviews.freebsd.org/D3563
Submitted by: Tiwei Bie <btw@mail.ustc.edu.cn>

8 years agoAdd maintainer entries for llvm, lldb, compiler-rt, libc++ and libcxxrt.
dim [Fri, 6 Nov 2015 22:24:41 +0000 (22:24 +0000)]
Add maintainer entries for llvm, lldb, compiler-rt, libc++ and libcxxrt.

8 years agoUse the correct length. The wrong one was too large.
tuexen [Fri, 6 Nov 2015 22:08:05 +0000 (22:08 +0000)]
Use the correct length. The wrong one was too large.

MFC after: 3 days

8 years agoThe 'buildenv' target can safely be ran with '+'.
bdrewery [Fri, 6 Nov 2015 21:49:17 +0000 (21:49 +0000)]
The 'buildenv' target can safely be ran with '+'.

8 years agoSwitch zfs_panic_recover to panic for bad DVA
smh [Fri, 6 Nov 2015 20:45:19 +0000 (20:45 +0000)]
Switch zfs_panic_recover to panic for bad DVA

As reported by Coverity a null pointer de-reference panic would be triggered
when zfs_recover was set so switch to straight panic as it can never be
recovered.

Reported by: Coverity Scan
MFC after: 1
X-MFC-With: r290401
Sponsored by: Multiplay

8 years agoInclude opt_platform.h to get FDT defined.
cognet [Fri, 6 Nov 2015 20:12:31 +0000 (20:12 +0000)]
Include opt_platform.h to get FDT defined.

8 years agoAlways check the return value of lseek.
asomers [Fri, 6 Nov 2015 19:18:20 +0000 (19:18 +0000)]
Always check the return value of lseek.

This is a follow-up to r289845, which only fixed one occurence of CID
1009429.

Coverity CID: 1009429
Reviewed by: markj
MFC after: 2 weeks
X-MFC-With: r289845
Sponsored by: Spectra Logic
Differential Revision: https://reviews.freebsd.org/D4096

8 years agoRemoved unused malloc types.
mav [Fri, 6 Nov 2015 18:50:01 +0000 (18:50 +0000)]
Removed unused malloc types.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 1 week

8 years agoFix a typo. I did not mean it, really.
jkim [Fri, 6 Nov 2015 18:24:49 +0000 (18:24 +0000)]
Fix a typo.  I did not mean it, really.

8 years agoClean up OpenSSL makefiles.
jkim [Fri, 6 Nov 2015 17:39:17 +0000 (17:39 +0000)]
Clean up OpenSSL makefiles.

8 years agoRefresh my entries
des [Fri, 6 Nov 2015 17:29:51 +0000 (17:29 +0000)]
Refresh my entries

8 years agoAdd two more KASSERTs.
mav [Fri, 6 Nov 2015 17:29:21 +0000 (17:29 +0000)]
Add two more KASSERTs.

8 years agoMake interrupt dispatching MP safe. Use GPU interrupt bit in per-core
skra [Fri, 6 Nov 2015 17:12:33 +0000 (17:12 +0000)]
Make interrupt dispatching MP safe. Use GPU interrupt bit in per-core
interrupt status register to process shared interrupts only if the bit
is active and only on core to which they are routed.

Reviewed by: imp, loos
Approved by: kib (mentor)
Differential Revision: https://reviews.freebsd.org/D3723

8 years agoI am still maintaining iscsi, nvme, nvd and nvmecontrol.
jimharris [Fri, 6 Nov 2015 16:54:17 +0000 (16:54 +0000)]
I am still maintaining iscsi, nvme, nvd and nvmecontrol.

8 years agoI still maintain sh(1).
jilles [Fri, 6 Nov 2015 16:43:22 +0000 (16:43 +0000)]
I still maintain sh(1).

8 years agozfsboottest: catch up with r241289, call zfs_spa_init() for all found pools
avg [Fri, 6 Nov 2015 16:27:22 +0000 (16:27 +0000)]
zfsboottest: catch up with r241289, call zfs_spa_init() for all found pools

MFC after: 8 days

8 years agozfsboottest: build as a 32 bit application
avg [Fri, 6 Nov 2015 16:26:09 +0000 (16:26 +0000)]
zfsboottest: build as a 32 bit application

For better emulation of the actual zfs boot code.

MFC after: 8 days

8 years agoAdd sysctl to control LACP strict compliance default
smh [Fri, 6 Nov 2015 15:33:27 +0000 (15:33 +0000)]
Add sysctl to control LACP strict compliance default

Add net.link.lagg.lacp.default_strict_mode which defines
the default value for LACP strict compliance for created
lagg devices.

Also:
* Add lacp_strict option to ifconfig(8).
* Fix lagg(4) creation examples.
* Minor style(9) fix.

MFC after: 1 week

8 years agoDo not truncate addresses when printing in encoded format.
ume [Fri, 6 Nov 2015 14:50:23 +0000 (14:50 +0000)]
Do not truncate addresses when printing in encoded format.

8 years agoMark the thunder_mdio_fdt driver as early, the bgx needs it to exist so it
andrew [Fri, 6 Nov 2015 14:40:51 +0000 (14:40 +0000)]
Mark the thunder_mdio_fdt driver as early, the bgx needs it to exist so it
can find the network phy.

Sponsored by: ABT Systems Ltd

8 years agoMark the arm64 nexus devices to be attached early. This allows multipass
andrew [Fri, 6 Nov 2015 14:36:21 +0000 (14:36 +0000)]
Mark the arm64 nexus devices to be attached early. This allows multipass
to work correctly. Without it the pass quickly moves to the final pass
before the nexus device attaches.

Sponsored by: ABT Systems Ltd

8 years ago- Fix alignment for padding link address.
ume [Fri, 6 Nov 2015 14:35:22 +0000 (14:35 +0000)]
- Fix alignment for padding link address.
- Trim whitespace of link address.

8 years agoThe field modifier for trimming whitespace
ume [Fri, 6 Nov 2015 14:29:25 +0000 (14:29 +0000)]
The field modifier for trimming whitespace
is not `q' but `t'.

8 years agoThe field sinfo_timetolive should have been sinfo_pr_value.
tuexen [Fri, 6 Nov 2015 14:00:26 +0000 (14:00 +0000)]
The field sinfo_timetolive should have been sinfo_pr_value.
Thanks to Jens Hoelscher for making me aware of the bug.

MFC after: 1 week

8 years agoFix typos in field names of struct sctp_extrcvinfo.
tuexen [Fri, 6 Nov 2015 13:08:16 +0000 (13:08 +0000)]
Fix typos in field names of struct sctp_extrcvinfo.
Provide defines to allow applications to compile.
Thanks to Jens Hoelscher for making me aware of the typos.

MFC after: 1 week

8 years agoFix for unaligned IP-header.
hselasky [Fri, 6 Nov 2015 12:54:27 +0000 (12:54 +0000)]
Fix for unaligned IP-header.

The mbuf length fields must be set before m_adj() is called else
m_adj() will not always adjust the mbuf and an unaligned read
exception can trigger inside the network stack. This can happen on
platforms where unaligned reads are not supported. Adjust a length
check to include the 2-byte ethernet alignment while at it.

MFC after: 3 days

8 years agoCorrect posix_openpt reference in pty(3)
smh [Fri, 6 Nov 2015 12:02:24 +0000 (12:02 +0000)]
Correct posix_openpt reference in pty(3)

MFC after: 1 week
Sponsored by: Multiplay

8 years agourtwn(4): simplify urtwn_tsf_sync_enable().
avos [Fri, 6 Nov 2015 11:29:24 +0000 (11:29 +0000)]
urtwn(4): simplify urtwn_tsf_sync_enable().

- Drop TSF initialization; device can discover it without our help.
- Do not touch R92C_BCN_CTRL_EN_BCN bit in STA mode.
- Add 'static' keyword for function definition.

Tested with RTL8188EU, STA mode.

Reviewed by: kevlo
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D3801

8 years agoifconfig: fix padding for '<ifname> scan' command output
avos [Fri, 6 Nov 2015 11:17:23 +0000 (11:17 +0000)]
ifconfig: fix padding for '<ifname> scan' command output
(S:N and beacon interval fields).

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4085

8 years agoFix compiling netstat after r290367 by substituting sys/types.h for
ngie [Fri, 6 Nov 2015 08:43:12 +0000 (08:43 +0000)]
Fix compiling netstat after r290367 by substituting sys/types.h for
sys/param.h, as sys/param.h defines the MAX(..) macro

Reported by: O. Hartmann <ohartman@zedat.fu-berlin.de>
Pointyhat to: ume

8 years agoRegenerate for WITH_FAST_DEPEND in r290433.
bdrewery [Fri, 6 Nov 2015 05:32:18 +0000 (05:32 +0000)]
Regenerate for WITH_FAST_DEPEND in r290433.

8 years agoDon't allow environment-set options to bleed into src.conf.5 generation.
bdrewery [Fri, 6 Nov 2015 05:28:08 +0000 (05:28 +0000)]
Don't allow environment-set options to bleed into src.conf.5 generation.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

8 years agoWrite 2- and 4-byte aligned values as single writes in ddb(4)
jhibbits [Fri, 6 Nov 2015 04:56:52 +0000 (04:56 +0000)]
Write 2- and 4-byte aligned values as single writes in ddb(4)

On the mpc85xx SoC family, writes to any part of a word in the CCSR affect the
full word.  This prevents single-byte writes from taking the desired effect.

Code copied directly from ARM.

8 years agoAdd a FAST_DEPEND option, off by default, which speeds up the build significantly.
bdrewery [Fri, 6 Nov 2015 04:45:29 +0000 (04:45 +0000)]
Add a FAST_DEPEND option, off by default, which speeds up the build significantly.

This speeds up buildworld by 16% on my system and buildkernel by 35%.

Rather than calling mkdep(1), which is just a wrapper around 'cc -E',
use the modern -MD -MT -MF flags to gather and generate dependencies during
compilation.  This flag was introduced in GCC "a long time ago", in GCC 3.0,
and is also supported by Clang.  (It appears that ICC also supports this but I
do not have access to test it).  This avoids running the preprocessor *twice*
for every build, in both 'make depend' and 'make all'.  This is especially
noticeable when using ccache since it does not cache preprocessor results from
mkdep(1) / 'cc -E', but still speeds up compilation with the -MD flags.

For 'make depend' a tree-walk is still done to ensure that all DPSRCS
are generated when expected, and that beforedepend/afterdepend and
_EXTRADEPEND are all still respected.  In time this may change but for now
I've been conservative.  The time for a tree-walk with -j combined with
SUBDIR_PARALLEL is not significant.  For example, it takes about 9 seconds
with -j15 to walk all of src/ for 'make depend' now on my system.

A .depend file is still generated with the various rules that apply to
the final target, or custom rules.  Otherwise there are now
per-built-object-file .depend files, such as .depend.filename.o.  These
are included directly by make rather than populating .depend with a loop
and .depend lines, which only added overhead to the now almost-NOP 'make
depend' phase.

Before this I experimented with having mkdep(1) called in parallel per-file.
While this improved the kernel and lib/libc 'make depend' phase, it resulted
in slower build times overall.

The -M flags are removed from CFLAGS when linking since they have no effect.

Enabling this by default, for src or out-of-src, can be done once more testing
has been done, such as a ports exp-run, and with more compilers.

The system I used for testing was:
  WITNESS
  Build options: -j20 WITH_LLDB=yes WITH_DEBUG_FILES=yes WITH_FAST_DEPEND=yes
  DISK: ZFS 3-way mirror with very slow disks using SSD l2arc/log.
        The arc was fully populated with src tree files.
  RAM: 76GiB
  CPU: Intel(R) Xeon(R) CPU L5520 @2.27GHz
       2 package(s) x 4 core(s) x 2 SMT threads = hw.ncpu=16

buildworld:
  x buildworld-before
  + buildworld-fastdep
  +-------------------------------------------------------------------------------+
  |+                                                                              |
  |+                                                                              |
  |+                                                                       xx    x|
  |                                                                       |_MA___||
  |A                                                                              |
  +-------------------------------------------------------------------------------+
      N           Min           Max        Median           Avg        Stddev
  x   3       3744.13       3794.31       3752.25     3763.5633     26.935139
  +   3       3153.34       3155.16        3154.2     3154.2333    0.91045776
  Difference at 95.0% confidence
          -609.33 +/- 43.1943
          -16.1902% +/- 1.1477%
          (Student's t, pooled s = 19.0569)

buildkernel:
  x buildkernel-before
  + buildkernel-fastdep
  +-------------------------------------------------------------------------------+
  |+                                                                            x |
  |++                                                                           xx|
  |                                                                             A||
  |A|                                                                             |
  +-------------------------------------------------------------------------------+
      N           Min           Max        Median           Avg        Stddev
  x   3        571.57        573.94        571.79     572.43333     1.3094401
  +   3        369.12        370.57         369.3     369.66333    0.79033748
  Difference at 95.0% confidence
          -202.77 +/- 2.45131
          -35.4225% +/- 0.428227%
          (Student's t, pooled s = 1.0815)

Sponsored by: EMC / Isilon Storage Division
MFC after: 3 weeks
Relnotes: yes

8 years agootus(4) - add flags for RX filter, configuration and sniffer.
adrian [Fri, 6 Nov 2015 03:09:26 +0000 (03:09 +0000)]
otus(4) - add flags for RX filter, configuration and sniffer.

Obtained from: Linux carl9170

8 years agoAdd SUBDIR_PARALLEL.
bdrewery [Fri, 6 Nov 2015 00:06:10 +0000 (00:06 +0000)]
Add SUBDIR_PARALLEL.

None of these libraries depend on each other.

Submitted by: Jia-Shiun Li <jiashiun@gmail.com>
MFC after: 2 weeks

8 years agoUpdate MAINTAINERS file to reflect re (gjb) wants to review changes
gjb [Thu, 5 Nov 2015 23:28:48 +0000 (23:28 +0000)]
Update MAINTAINERS file to reflect re (gjb) wants to review changes
to release.sh

Sponsored by: The FreeBSD Foundation

8 years agoWhen dumping an rman in DDB, include the RID of each resource.
jhb [Thu, 5 Nov 2015 23:12:23 +0000 (23:12 +0000)]
When dumping an rman in DDB, include the RID of each resource.

Submitted by: Ravi Pokala (rpokala@panasas.com)
Reviewed by: imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D4086

8 years agoremove \, it confuses things.
adrian [Thu, 5 Nov 2015 22:50:21 +0000 (22:50 +0000)]
remove \, it confuses things.

8 years agoiwn(4): various simple fixes
avos [Thu, 5 Nov 2015 22:44:36 +0000 (22:44 +0000)]
iwn(4): various simple fixes

- Fix mbuf leaks in iwn_raw_xmit() and iwn_xmit_task()
(regression since r288178).
- Check IWN_FLAG_RUNNING flag under lock.
- Remove m->m_pkthdr.rcvif initialization (fixed in r283994).
- Enclose some values in return statements into parentheses.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4069

8 years agoCorrect a comment which appears to be mistakingly mechanically changed in r265420.
bdrewery [Thu, 5 Nov 2015 22:42:40 +0000 (22:42 +0000)]
Correct a comment which appears to be mistakingly mechanically changed in r265420.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoOpenSSL is still maintained by us.
jkim [Thu, 5 Nov 2015 22:36:09 +0000 (22:36 +0000)]
OpenSSL is still maintained by us.

8 years agoAllow 'make buildenv' to work anywhere in the src tree.
bdrewery [Thu, 5 Nov 2015 22:28:31 +0000 (22:28 +0000)]
Allow 'make buildenv' to work anywhere in the src tree.

Sponsored by: EMC / Isilon Storage Division

8 years agoAllow 'make buildenv' to default to the caller's shell by using SHELL.
bdrewery [Thu, 5 Nov 2015 22:09:00 +0000 (22:09 +0000)]
Allow 'make buildenv' to default to the caller's shell by using SHELL.

Also pass BUILDENV=1 into the sub-shell to allow modifying PS1 in .profile such
as:
  if [ -n "${BUILDENV}" ]; then
          PS1="(buildenv) ${PS1}"
  fi

SHELL defaults to 'sh' in share/mk/sys.mk, but is typically passed down by
the shell invoking make as well.  Rather than forcing all 'buildenv' users
to use plain /bin/sh, let them use their favorite shell.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Discussed with: imp

8 years agoMake if_macb work with FDT.
cognet [Thu, 5 Nov 2015 22:03:42 +0000 (22:03 +0000)]
Make if_macb work with FDT.

8 years agoI'm still maintaining these...
jmg [Thu, 5 Nov 2015 22:03:27 +0000 (22:03 +0000)]
I'm still maintaining these...

8 years agoMake at91_pmc probe any at91 pmc device we support, not just at91rm9200.
cognet [Thu, 5 Nov 2015 22:03:20 +0000 (22:03 +0000)]
Make at91_pmc probe any at91 pmc device we support, not just at91rm9200.

MFC after: 1 week

8 years agoAdd wifi bits.
adrian [Thu, 5 Nov 2015 21:54:35 +0000 (21:54 +0000)]
Add wifi bits.

8 years agomake is hard, so definitely move it.
imp [Thu, 5 Nov 2015 21:50:11 +0000 (21:50 +0000)]
make is hard, so definitely move it.
Still mulling moving vs deleting the rest of mine.

8 years agoFix CC being wrong during install* targets.
imp [Thu, 5 Nov 2015 21:48:12 +0000 (21:48 +0000)]
Fix CC being wrong during install* targets.

Move CROSS_TOOLS stuff to top of file (before bsd.compiler.mk) so that
decisions made by bsd.compiler.mk can properly affect the defaults in
src.opts.mk. Move that to after bsd.compiler.mk. Add a comment about
why we include bsd.compiler.mk here despite the fact that src.opts.mk
currently does too. Also remove bsd.arch.inc.mk that's been OBE.

Differential Revision: https://reviews.freebsd.org/D4087

8 years agoChelsio T5 chips do not properly echo the No Snoop and Relaxed Ordering
jhb [Thu, 5 Nov 2015 21:33:15 +0000 (21:33 +0000)]
Chelsio T5 chips do not properly echo the No Snoop and Relaxed Ordering
attributes when replying to a TLP from a Root Port.  As a workaround,
disable No Snoop and Relaxed Ordering in the Root Port of each T5 adapter
during attach so that CPU-initiated requests do not contain these flags.

Note that this affects CPU-initiated requests to all devices under this
root port.

Reviewed by: np
MFC after: 1 week
Sponsored by: Chelsio

8 years agoAdd a new helper function for PCI devices to locate the upstream
jhb [Thu, 5 Nov 2015 21:27:25 +0000 (21:27 +0000)]
Add a new helper function for PCI devices to locate the upstream
PCI-express root port of a given PCI device.

Reviewed by: kib, imp
MFC after: 1 week
Sponsored by: Chelsio
Differential Revision: https://reviews.freebsd.org/D4089

8 years agoAdd helper routines for PCI device drivers to read, write, and modify
jhb [Thu, 5 Nov 2015 21:26:06 +0000 (21:26 +0000)]
Add helper routines for PCI device drivers to read, write, and modify
PCI-Express capability registers (that is, PCI config registers in the
standard PCI config space belonging to the PCI-Express capability
register set).

Note that all of the current PCI-e registers are either 16 or 32-bits,
so only widths of 2 or 4 bytes are supported.

Reviewed by: imp
MFC after: 1 week
Sponsored by: Chelsio
Differential Revision: https://reviews.freebsd.org/D4088

8 years agoNote if relaxed ordering or no snoop is enabled for each PCI-express device.
jhb [Thu, 5 Nov 2015 20:24:56 +0000 (20:24 +0000)]
Note if relaxed ordering or no snoop is enabled for each PCI-express device.

MFC after: 1 week

8 years agoStart a cleanup of the MAINTAINERS file. This adds an "OLD" line at the
jhb [Thu, 5 Nov 2015 19:52:18 +0000 (19:52 +0000)]
Start a cleanup of the MAINTAINERS file.  This adds an "OLD" line at the
top of the list.  Any entries in the list that are still below this line
after December 5th will be removed.

Approved by: core

8 years agoMake rctl(8) use more reasonable buffer size for retrieving the rules.
trasz [Thu, 5 Nov 2015 19:15:39 +0000 (19:15 +0000)]
Make rctl(8) use more reasonable buffer size for retrieving the rules.

Reviewed by: mjg@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agonet80211: WME callback cleanup in various drivers
avos [Thu, 5 Nov 2015 17:58:18 +0000 (17:58 +0000)]
net80211: WME callback cleanup in various drivers

Since r288350, ic_wme_task() is called via ieee80211_runtask(),
so, any additional deferring from the driver side is not needed.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4072

8 years agoFix g_eli error loss conditions
smh [Thu, 5 Nov 2015 17:37:35 +0000 (17:37 +0000)]
Fix g_eli error loss conditions

* Ensure that error information isn't lost.
* Log the error code in all cases.
* Don't overwrite bio_completed set to 0 from the error condition.

MFC after: 2 weeks
Sponsored by: Multiplay

8 years agoRestrict 520.pfdenied to only list rules that blocked traffic.
lidl [Thu, 5 Nov 2015 17:37:14 +0000 (17:37 +0000)]
Restrict 520.pfdenied to only list rules that blocked traffic.
Before this change, the 520.pfdenied script listed all rules that
matched /^block/ in the rule. Restrict the printed output to only
those rules that result in packets being dropped.

PR: conf/187224
Approved by: rpaulo (mentor)
Differential Revision: https://reviews.freebsd.org/D4068

8 years agoFix markup in rctl(8) - the 'rule' or 'filter' arguments are not optional.
trasz [Thu, 5 Nov 2015 17:26:56 +0000 (17:26 +0000)]
Fix markup in rctl(8) - the 'rule' or 'filter' arguments are not optional.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoAdd MTU support to carp interfaces
smh [Thu, 5 Nov 2015 17:23:02 +0000 (17:23 +0000)]
Add MTU support to carp interfaces

MFC after: 2 weeks
Sponsored by: Multiplay

8 years agoProvide information about bad DVA
smh [Thu, 5 Nov 2015 17:12:41 +0000 (17:12 +0000)]
Provide information about bad DVA

Provide information about which vdev has an issue with a bad DVA.

MFC after: 1 week
Sponsored by: Multiplay

8 years agoUpdate authors' contact info and fix grammar bugs.
asomers [Thu, 5 Nov 2015 17:04:18 +0000 (17:04 +0000)]
Update authors' contact info and fix grammar bugs.

MFC after: 2 weeks
Sponsored by: Spectra Logic

8 years agoAllow zfs_recover to be changed at runtime
smh [Thu, 5 Nov 2015 17:00:42 +0000 (17:00 +0000)]
Allow zfs_recover to be changed at runtime

MFC after: 1 week
Sponsored by: Multiplay

8 years agoRevert r290298. Per discussion on tech-userlevel@netbsd.org this change
brooks [Thu, 5 Nov 2015 17:00:38 +0000 (17:00 +0000)]
Revert r290298.  Per discussion on tech-userlevel@netbsd.org this change
was incorrect.

8 years agoFix the open solaris atomic functions on arm64. Without this we may use the
andrew [Thu, 5 Nov 2015 16:55:27 +0000 (16:55 +0000)]
Fix the open solaris atomic functions on arm64. Without this we may use the
wrong value in the comparison, leading to incorrectly setting the new
value.

This has been observed in the ZFS code. Without this we can lose track of
the reference count in a zrlock object.

We should move to use the generic atomic functions, however as this has
been observed I would prefer to have this working, then move to the generic
functions.

PR: 204037
Sponsored by: ABT Systems Ltd

8 years agoRename __sentinel to __null_sentinel
pfg [Thu, 5 Nov 2015 14:55:58 +0000 (14:55 +0000)]
Rename __sentinel to __null_sentinel

GCC 5 uses a conflicting __sentinel definition in include/c++/bits/stl_algo.h

Reported by: matteo

8 years agoxen-netfront: remove unused header files
royger [Thu, 5 Nov 2015 14:37:17 +0000 (14:37 +0000)]
xen-netfront: remove unused header files

Submitted by: Wei Liu <wei.liu2@citrix.com>
Reviewed by: royger
Sponsored by: Citrix Systems R&D
Differential Revision: https://reviews.freebsd.org/D4079

8 years agoxen/intr: fix the event channel enabled per-cpu mask
royger [Thu, 5 Nov 2015 14:33:46 +0000 (14:33 +0000)]
xen/intr: fix the event channel enabled per-cpu mask

Fix two issues with the current event channel code, first ENABLED_SETSIZE is
not correctly defined and then using a BITSET to store the per-cpu masks is
not portable to other arches, since on arm32 the event channel arrays shared
with the hypervisor are of type uint64_t and not long. Partially restore the
previous code but switch the bit operations to use the recently introduced
xen_{set/clear/test}_bit versions.

Reviewed by: Julien Grall <julien.grall@citrix.com>
Sponsored by: Citrix Systems R&D
Differential Revision: https://reviews.freebsd.org/D4080

8 years agoGive enough room for addresses when -W option is specified.
ume [Thu, 5 Nov 2015 11:06:46 +0000 (11:06 +0000)]
Give enough room for addresses when -W option is specified.

8 years agoFix alignment of `Drop' header.
ume [Thu, 5 Nov 2015 11:04:43 +0000 (11:04 +0000)]
Fix alignment of `Drop' header.

8 years agoUse returned network name from getnetbyaddr() correctly.
ume [Thu, 5 Nov 2015 11:02:28 +0000 (11:02 +0000)]
Use returned network name from getnetbyaddr() correctly.

8 years agoRevert previous workaround. This problem was fixed
ume [Thu, 5 Nov 2015 10:58:19 +0000 (10:58 +0000)]
Revert previous workaround.  This problem was fixed
by r290318.

8 years agoExtend mask of VMware virtual disks.
mav [Thu, 5 Nov 2015 09:07:53 +0000 (09:07 +0000)]
Extend mask of VMware virtual disks.

8 years agoFix typo in the function name
bapt [Thu, 5 Nov 2015 07:43:15 +0000 (07:43 +0000)]
Fix typo in the function name

Submitted by: Sascha Wildner <saw@online.de>
Obtained from: DragonflyBSD

8 years agoReplace the fastforward path with tryforward which does not require a
gnn [Thu, 5 Nov 2015 07:26:32 +0000 (07:26 +0000)]
Replace the fastforward path with tryforward which does not require a
sysctl and will always be on. The former split between default and
fast forwarding is removed by this commit while preserving the ability
to use all network stack features.

Differential Revision: https://reviews.freebsd.org/D4042
Reviewed by: ae, melifaro, olivier, rwatson
MFC after: 1 month
Sponsored by: Rubicon Communications (Netgate)

8 years agoAdd /dev/vcio, userland access point to VideoCore mailbox property channel
gonzo [Thu, 5 Nov 2015 04:16:03 +0000 (04:16 +0000)]
Add /dev/vcio, userland access point to VideoCore mailbox property channel
It's required by some applications in raspberrypi-userland package

8 years agoRefactor mailbox property API to make it usable for /dev/vcio driver:
gonzo [Thu, 5 Nov 2015 03:46:54 +0000 (03:46 +0000)]
Refactor mailbox property API to make it usable for /dev/vcio driver:

- Add bcm2835_mbox_property for generic property request, it accepts
    pointer to prepared property chan message and its size, forwards
    it to MBOX and copies result back
- Make all bcm2835_mbox_XXX functions that use property channel go
    through bcm2835_mbox_property path. Do not accept device_t as
    an argument, it's not required: all DMA operatiosn should go
    through mbox device, and all API consumers should report errors
    on their side.

8 years agoAdd support for s25fl256s. I /think/ it's a 32mb NOR flash part.
adrian [Thu, 5 Nov 2015 03:13:10 +0000 (03:13 +0000)]
Add support for s25fl256s.  I /think/ it's a 32mb NOR flash part.

This is submitted by a FreeBSD wifi user who has requested they not
be named.  Thankyou!

8 years agoImprove the sysctl node name.
hiren [Thu, 5 Nov 2015 02:09:48 +0000 (02:09 +0000)]
Improve the sysctl node name.

X-MFC with: r290122
Sponsored by: Limelight Networks

8 years agoFix spelling error.
rodrigc [Thu, 5 Nov 2015 01:54:38 +0000 (01:54 +0000)]
Fix spelling error.

Reported by: junovitch

8 years agoAdd README, similar to the one from libnetbsd.
rodrigc [Thu, 5 Nov 2015 01:29:48 +0000 (01:29 +0000)]
Add README, similar to the one from libnetbsd.

8 years agoImport imsg from OpenBSD's libutil.
rodrigc [Wed, 4 Nov 2015 23:52:19 +0000 (23:52 +0000)]
Import imsg from OpenBSD's libutil.

imsg provides functions for communication between processes
using sockets.  imsg is used by programs in OpenBSD such as ypldap.

8 years agoRemove unneeded mutex.h include, missed in r287155.
bdrewery [Wed, 4 Nov 2015 22:49:34 +0000 (22:49 +0000)]
Remove unneeded mutex.h include, missed in r287155.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoAdd a compile time switch to distinguish between 7-bit and 8-bit I2C address
andreast [Wed, 4 Nov 2015 22:46:30 +0000 (22:46 +0000)]
Add a compile time switch to distinguish between 7-bit and 8-bit I2C address
usage. The comment in the code should explain the situation.

Discussed with:  ian@

8 years agoSince sa->sa_len doesn't match sizeof(struct sockaddr_dl),
ume [Wed, 4 Nov 2015 19:09:42 +0000 (19:09 +0000)]
Since sa->sa_len doesn't match sizeof(struct sockaddr_dl),
getnameinfo() fails against sockaddr_dl.  This commit is workaround
for this problem.

8 years agoFix alignment of AF_LINK address.
ume [Wed, 4 Nov 2015 19:05:04 +0000 (19:05 +0000)]
Fix alignment of AF_LINK address.

8 years agoSimplify r290367 using asterisk for a field width
ume [Wed, 4 Nov 2015 16:59:12 +0000 (16:59 +0000)]
Simplify r290367 using asterisk for a field width
and precision.

8 years agoFix comment about unpriviledged instructions. Now, it matches with
skra [Wed, 4 Nov 2015 15:35:22 +0000 (15:35 +0000)]
Fix comment about unpriviledged instructions.  Now, it matches with
current state after r289372.

While here, do some style and comment cleanups.  No functional changes.

Approved by: kib (mentor)

8 years agoUnify AF_INET case and AF_INET6 case.
ume [Wed, 4 Nov 2015 15:05:15 +0000 (15:05 +0000)]
Unify AF_INET case and AF_INET6 case.

8 years agoChange to not truncate an interface name when -W option
ume [Wed, 4 Nov 2015 14:57:46 +0000 (14:57 +0000)]
Change to not truncate an interface name when -W option
is specified.

8 years agoMask an IPv6 network address.
ume [Wed, 4 Nov 2015 14:47:10 +0000 (14:47 +0000)]
Mask an IPv6 network address.

8 years agoRestore an interface name field to left align.
ume [Wed, 4 Nov 2015 13:59:13 +0000 (13:59 +0000)]
Restore an interface name field to left align.

8 years agoRename libohash to libopenbsd.
rodrigc [Wed, 4 Nov 2015 07:20:55 +0000 (07:20 +0000)]
Rename libohash to libopenbsd.

libopenbsd is an internal library which
to bring in compatibility stuff from OpenBSD.
This will allow us to bring in more
OpenBSD utilities into the FreeBSD base system.

We similarly use libnetbsd for bringing in stuff from NetBSD.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D4078