]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFH: r284250
brueffer [Wed, 24 Jun 2015 12:21:25 +0000 (12:21 +0000)]
MFH: r284250

Consistently use trailing whitespace in passphrase prompts.

PR: 193496
Submitted by: Fabian Keil

git-svn-id: svn://svn.freebsd.org/base/stable/10@284752 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFH: r284249
brueffer [Wed, 24 Jun 2015 12:19:11 +0000 (12:19 +0000)]
MFH: r284249

Correct Hawaii's admission day.

PR: 192651

git-svn-id: svn://svn.freebsd.org/base/stable/10@284750 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoFix r284612: As pointed out by jhb, in stable branches, if_baudrate
gallatin [Tue, 23 Jun 2015 22:31:04 +0000 (22:31 +0000)]
Fix r284612:  As pointed out by jhb, in stable branches, if_baudrate
is 32b on 32b platforms.  So rather than a simple MFC of r284612,
we need to use if_initbaudrate() to properly express a 40Gb speed.

Spotted by: jhb
Sponsored by: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/10@284742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoRevert part of the r283303 (by jhb):
kib [Tue, 23 Jun 2015 06:30:36 +0000 (06:30 +0000)]
Revert part of the r283303 (by jhb):

Revert MFC of r270223, which bumped MAXCPU on amd64 from 64 to 256.
The cpuset_getaffinity(2) and cpuset_setaffinity(2) check minimum set
size, which now fails for binaries compiled on 10.0 with MAXCPU == 64.

Submitted by: jhb
PR:   200802

git-svn-id: svn://svn.freebsd.org/base/stable/10@284720 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284609: Interim fix for "Login not found" error.
dteske [Tue, 23 Jun 2015 04:17:12 +0000 (04:17 +0000)]
MFC r284609: Interim fix for "Login not found" error.

PR: bin/196514

git-svn-id: svn://svn.freebsd.org/base/stable/10@284716 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC (mergeinfo only) obsolete revisions 278464-278465.
dteske [Tue, 23 Jun 2015 04:15:23 +0000 (04:15 +0000)]
MFC (mergeinfo only) obsolete revisions 278464-278465.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r283863:
dteske [Tue, 23 Jun 2015 04:03:54 +0000 (04:03 +0000)]
MFC r283863:
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 r283975 (araujo):
Clean up unused variable and silence clang warnings.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284672 (antoine):
dteske [Tue, 23 Jun 2015 03:56:05 +0000 (03:56 +0000)]
MFC r284672 (antoine):
Install version.4th.8 again
It was disconnected from installation in r281081, but was never removed
from the tree or added to ObsoleteFiles.inc

git-svn-id: svn://svn.freebsd.org/base/stable/10@284713 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284612: Fix a typo
gallatin [Mon, 22 Jun 2015 19:37:04 +0000 (19:37 +0000)]
MFC r284612:  Fix a typo

Sponsored by: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/10@284706 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r284578
jkim [Mon, 22 Jun 2015 16:24:27 +0000 (16:24 +0000)]
MFC: r284578

Fix a typo.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoWhen using KTRACE, set a variable to the appropriate value and don't
tuexen [Mon, 22 Jun 2015 06:06:38 +0000 (06:06 +0000)]
When using KTRACE, set a variable to the appropriate value and don't
leave it initialized at NULL.
Since the affected functions where moved from sys/kern/uipc_syscalls.c
to sys/netinet/sctp_syscalls.c it was not possible to MFC r284613.
Therefore, this is a direct commit with the corresponding changes of r284613.

Reported by: Coverity
CID: 10180581018060

git-svn-id: svn://svn.freebsd.org/base/stable/10@284696 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284604:
tuexen [Mon, 22 Jun 2015 05:36:08 +0000 (05:36 +0000)]
MFC r284604:
Don't leak sockets.

Reported by: Coverity
CID: 1306785

git-svn-id: svn://svn.freebsd.org/base/stable/10@284694 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284596:
tuexen [Mon, 22 Jun 2015 05:34:13 +0000 (05:34 +0000)]
MFC r284596:
When setting the primary address, return an error whenever it fails.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284693 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284547:
tuexen [Mon, 22 Jun 2015 05:31:29 +0000 (05:31 +0000)]
MFC r284547:
Fix a bug reported by coverity. Since AF_UNIX sockets don't
have multiple addresses, the problem didn't show up during testing.

Reported by: Coverity
CID: 1306787

git-svn-id: svn://svn.freebsd.org/base/stable/10@284692 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284617:
gjb [Mon, 22 Jun 2015 00:54:47 +0000 (00:54 +0000)]
MFC r284617:
 Fix path to waagent.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284690 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r283141:
trasz [Sun, 21 Jun 2015 07:00:54 +0000 (07:00 +0000)]
MFC r283141:

Remove the warning about invalid PE checksum; apparently nothing
cares about those checksums anyway.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284674 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r283285:
trasz [Sun, 21 Jun 2015 06:54:54 +0000 (06:54 +0000)]
MFC r283285:

Advertise ctlstat(8) a little better.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284671 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r281929:
trasz [Sun, 21 Jun 2015 06:49:44 +0000 (06:49 +0000)]
MFC r281929:

Fix growfs(8) build with debug enabled (make -DGFSDBG).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r282238:
trasz [Sun, 21 Jun 2015 06:44:32 +0000 (06:44 +0000)]
MFC r282238:

Remove spurious period.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284668 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r282236:
trasz [Sun, 21 Jun 2015 06:40:43 +0000 (06:40 +0000)]
MFC r282236:

Make rctl(8) more user-friendly when RACCT/RCTL is disabled for some reason.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284667 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r282857:
trasz [Sun, 21 Jun 2015 06:36:54 +0000 (06:36 +0000)]
MFC r282857:

Document RCTL events in devd.conf(5).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284666 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r282213:
trasz [Sun, 21 Jun 2015 06:28:26 +0000 (06:28 +0000)]
MFC r282213:

Add kern.racct.enable tunable and RACCT_DISABLED config option.
The point of this is to be able to add RACCT (with RACCT_DISABLED)
to GENERIC, to avoid having to rebuild the kernel to use rctl(8).

MFC r282901:

Build GENERIC with RACCT/RCTL support by default.  Note that it still
needs to be enabled by adding "kern.racct.enable=1" to /boot/loader.conf.

Note those two are MFC-ed together, because the latter one changes the
name of RACCT_DISABLED option to RACCT_DEFAULT_TO_DISABLED.  Should have
committed the renaming separately...

Relnotes: yes
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284665 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284567:
gjb [Sun, 21 Jun 2015 04:39:34 +0000 (04:39 +0000)]
MFC r284567:
  Add Makefile.azure, used to upload VHD images to the
  Microsoft Azure environment, similar to the EC2 AMIs.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284661 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284127:
markj [Sun, 21 Jun 2015 00:36:02 +0000 (00:36 +0000)]
MFC r284127:
witness: don't warn about matrix inconsistencies without holding the mutex

Lock order checking is done without the witness mutex held, so multiple
threads that are racing to establish a new lock order may read matrix
entries that are in an inconsistent state. Don't print a warning in this
case, but instead just redo the check after taking the witness lock.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284653 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r284531
rmacklem [Sat, 20 Jun 2015 23:15:57 +0000 (23:15 +0000)]
MFC: r284531
Document that a forced dismount of an NFSv3 mount when the
NLM (rpc.lockd) is running can crash the system.
Unfortunately this is not easy to fix, but I have left
PR#200585 open.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284652 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r281820:
trasz [Sat, 20 Jun 2015 15:55:53 +0000 (15:55 +0000)]
MFC r281820:

Add hint about "volmode=dev" to ctl.conf(5).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284645 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284346:
dim [Sat, 20 Jun 2015 13:30:09 +0000 (13:30 +0000)]
MFC r284346:

Fix the following clang 3.7.0 warnings in lib/libfetch/http.c:

    lib/libfetch/http.c:1628:26: error: address of array 'purl->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = purl->user ?
                                                   ~~~~~~^~~~ ~
    lib/libfetch/http.c:1630:30: error: address of array 'purl->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = purl->pwd?
                                                       ~~~~~~^~~~
    lib/libfetch/http.c:1657:25: error: address of array 'url->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = url->user ?
                                                   ~~~~~^~~~ ~
    lib/libfetch/http.c:1659:29: error: address of array 'url->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = url->pwd ?
                                                       ~~~~~^~~ ~
    lib/libfetch/http.c:1669:25: error: address of array 'url->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = url->user ?
                                                   ~~~~~^~~~ ~
    lib/libfetch/http.c:1671:29: error: address of array 'url->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = url->pwd ?
                                                       ~~~~~^~~ ~

Since url->user and url->pwd are arrays, they can never be NULL, so the
checks can be removed.

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@284643 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284167:
dim [Sat, 20 Jun 2015 13:25:28 +0000 (13:25 +0000)]
MFC r284167:

Merge r283870 from amd64:

Remove unneeded NULL checks in 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 for curproc->p_pid.

Requested by: jhb

git-svn-id: svn://svn.freebsd.org/base/stable/10@284642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284526:
tuexen [Sat, 20 Jun 2015 08:28:47 +0000 (08:28 +0000)]
MFC r284526:
Fix a bug related to flow assignment I introduced in
https://svnweb.freebsd.org/base?view=revision&revision=275483

git-svn-id: svn://svn.freebsd.org/base/stable/10@284634 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284515:
tuexen [Sat, 20 Jun 2015 08:25:27 +0000 (08:25 +0000)]
MFC r284515:
Add FIB support for SCTP.
This fixes https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200379

PR: 200379

git-svn-id: svn://svn.freebsd.org/base/stable/10@284633 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r266420 (by adrian)
hiren [Fri, 19 Jun 2015 19:36:21 +0000 (19:36 +0000)]
MFC r266420 (by adrian)

Ensure that the flowid hashtype is assigned to the inp if the flowid
is also assigned.

Spotted by: gallatin
Tested by: gallatin

git-svn-id: svn://svn.freebsd.org/base/stable/10@284603 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284013: Allow setting only WWNN or only WWPN.
mav [Fri, 19 Jun 2015 00:53:15 +0000 (00:53 +0000)]
MFC r284013: Allow setting only WWNN or only WWPN.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284586 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoUpdate stable/10 from 10.1-STABLE to 10.2-PRERELEASE,
gjb [Fri, 19 Jun 2015 00:00:32 +0000 (00:00 +0000)]
Update stable/10 from 10.1-STABLE to 10.2-PRERELEASE,
marking the official start of the code slush.

Set the default mdoc(7) version to 10.2, and update the
clang(1) TARGET_TRIPLE and BUILD_TRIPLE to reflect 10.2.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284584 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r284280
kp [Thu, 18 Jun 2015 21:25:07 +0000 (21:25 +0000)]
Merge r284280

pf: Remove frc_direction

We don't use the direction of the fragments for anything. The frc_direction
field is assigned, but never read.
Just remove it.

Differential Revision: https://reviews.freebsd.org/D2825
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284581 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r284222, r284260
kp [Thu, 18 Jun 2015 21:23:41 +0000 (21:23 +0000)]
Merge r284222, r284260

pf: address family must be set when creating a pf_fragment

Fix a panic when handling fragmented ip4 packets with 'drop-ovl' set.
In that scenario we take a different branch in pf_normalize_ip(), taking us to
pf_fragcache() (rather than pf_reassemble()). In pf_fragcache() we create a
pf_fragment, but do not set the address family. This leads to a panic when we
try to insert that into pf_frag_tree because pf_addr_cmp(), which is used to
compare the pf_fragments doesn't know what to do if the address family is not
set.

Simply ensure that the address family is set correctly (always AF_INET in this
path).

When we try to look up a pf_fragment with pf_find_fragment() we compare (see
pf_frag_compare()) addresses (and family), but also protocol.  We failed to
save the protocol to the pf_fragment in pf_fragcache(), resulting in failing
reassembly.

PR: 200330
Differential Revision: https://reviews.freebsd.org/D2824
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284580 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r278874, r278925, r278868
kp [Thu, 18 Jun 2015 21:21:52 +0000 (21:21 +0000)]
Merge r278874, r278925, r278868

- Improve INET/INET6 scope.
- style(9) declarations.
- Make couple of local functions static.
- Even more fixes to !INET and !INET6 kernels.
  In collaboration with pluknet
- Toss declarations to fix regular build and NO_INET6 build.

Differential Revision: https://reviews.freebsd.org/D2823
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284579 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r281536
kp [Thu, 18 Jun 2015 20:59:48 +0000 (20:59 +0000)]
Merge r281536

pf: Fix forwarding detection

If the direction is not PF_OUT we can never be forwarding. Some input packets
have rcvif != ifp (looped back packets), which lead us to ip6_forward() inbound
packets, causing panics.

Equally, we need to ensure that packets were really received and not locally
generated before trying to ip6_forward() them.

Differential Revision: https://reviews.freebsd.org/D2822
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284577 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r281234
kp [Thu, 18 Jun 2015 20:57:21 +0000 (20:57 +0000)]
Merge r281234

Evaluate packet size after the firewall had its chance

Defer the packet size check until after the firewall has had a look at it. This
means that the firewall now has the opportunity to (re-)fragment an oversized
packet.

Differential Revision: https://reviews.freebsd.org/D2821
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r281165
kp [Thu, 18 Jun 2015 20:45:37 +0000 (20:45 +0000)]
Merge r281165

Remove duplicate code

We'll just fall into the same local delivery block under the
'if (m->m_flags & M_FASTFWD_OURS)'.

Suggested by:       ae
Differential Revision: https://reviews.freebsd.org/D2820
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284575 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r281164
kp [Thu, 18 Jun 2015 20:43:16 +0000 (20:43 +0000)]
Merge r281164

pf: Skip firewall for refragmented ip6 packets

In cases where we scrub (fragment reassemble) on both input and output
we risk ending up in infinite loops when forwarding packets.

Fragmented packets come in and get collected until we can defragment. At
that point the defragmented packet is handed back to the ip stack (at
the pfil point in ip6_input(). Normal processing continues.

Eventually we figure out that the packet has to be forwarded and we end
up at the pfil hook in ip6_forward(). After doing the inspection on the
defragmented packet we see that the packet has been defragmented and
because we're forwarding we have to refragment it.

In pf_refragment6() we split the packet up again and then ip6_forward()
the individual fragments.  Those fragments hit the pfil hook on the way
out, so they're collected until we can reconstruct the full packet, at
which point we're right back where we left off and things continue until
we run out of stack.

Break that loop by marking the fragments generated by pf_refragment6()
as M_SKIP_FIREWALL. There's no point in processing those packets in the
firewall anyway. We've already filtered on the full packet.

Differential Revision: https://reviews.freebsd.org/D2819
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284574 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r280956
kp [Thu, 18 Jun 2015 20:41:55 +0000 (20:41 +0000)]
Merge r280956

pf: Deal with runt packets

On Ethernet packets have a minimal length, so very short packets get padding
appended to them. This padding is not stripped off in ip6_input() (due to
support for IPv6 Jumbograms, RFC2675).
That means PF needs to be careful when reassembling fragmented packets to not
include the padding in the reassembled packet.

While here also remove the 'Magic from ip_input.' bits. Splitting up and
re-joining an mbuf chain here doesn't make any sense.

Differential Revision: https://reviews.freebsd.org/D2818
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r280955
kp [Thu, 18 Jun 2015 20:40:36 +0000 (20:40 +0000)]
Merge r280955

Preserve IPv6 fragment IDs accross reassembly and refragmentation

When forwarding fragmented IPv6 packets and filtering with PF we
reassemble and refragment. That means we generate new fragment headers
and a new fragment ID.

We already save the fragment IDs so we can do the reassembly so it's
straightforward to apply the incoming fragment ID on the refragmented
packets.

Differential Revision: https://reviews.freebsd.org/D2817
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r278843, r278858
kp [Thu, 18 Jun 2015 20:34:39 +0000 (20:34 +0000)]
Merge r278843, r278858

In the forwarding case refragment the reassembled packets with the same
size as they arrived in. This allows the sender to determine the optimal
fragment size by Path MTU Discovery.

Roughly based on the OpenBSD work by Alexander Bluhm.

Differential Revision: https://reviews.freebsd.org/D2816
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r278842
kp [Thu, 18 Jun 2015 20:32:53 +0000 (20:32 +0000)]
Merge r278842

Factor out ip6_fragment() function, to be used in IPv6 stack and pf(4).

Differential Revision: https://reviews.freebsd.org/D2815
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r278831, r278834
kp [Thu, 18 Jun 2015 20:28:52 +0000 (20:28 +0000)]
Merge r278831, r278834

Update the pf fragment handling code to closer match recent OpenBSD.
That partially fixes IPv6 fragment handling.

Differential Revision: https://reviews.freebsd.org/D2814
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284569 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r278828, r278832
kp [Thu, 18 Jun 2015 20:21:02 +0000 (20:21 +0000)]
Merge r278828, r278832

 - Factor out ip6_deletefraghdr() function, to be shared between IPv6 stack and pf(4).
 - Move ip6_deletefraghdr() to frag6.c. (Suggested by bz)

Differential Revision: https://reviews.freebsd.org/D2813
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284568 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284151:
ae [Thu, 18 Jun 2015 17:42:24 +0000 (17:42 +0000)]
MFC r284151:
  Teach G_PART_GPT class handle g_resize_provider event.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284565 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284229: Add support for '_' occurring at the beginning or
ume [Thu, 18 Jun 2015 16:39:05 +0000 (16:39 +0000)]
MFC r284229: Add support for '_' occurring at the beginning or
end of a name component.

PR: 176093
Submitted by: landonf__at__bikemonkey.org

git-svn-id: svn://svn.freebsd.org/base/stable/10@284559 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r283679
arybchik [Thu, 18 Jun 2015 15:50:42 +0000 (15:50 +0000)]
MFC: r283679

sfxge: do not use DEBUG_FLAGS to enable extra debug checks

DEBUG_FLAGS are set to DEBUG option value when kernel is built.
For example, it is -g in GENERIC config to have debug symbols.
Also DEBUG_FLAGS are used to determine if ctfconvert should keep
debug symbols.
Since we redefined DEBUG_FLAGS, debug symbols were always missing.
ctfconvert complains about it during kernel build.
It is incorrect to append DEBUG_FLAGS, since if DEBUG has no -g (or
similar), we'll have no debug symbols and ctfconvert will complain.
If it incorrect to always have -g in our DEBUG_FLAGS, since debug
symbols presence should be controllable by kernel config.
So, just add disabled by default addition of -DDEBUG=1 to CFLAGS.

Reviewed by:    imp
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284556 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r283514
arybchik [Thu, 18 Jun 2015 15:46:39 +0000 (15:46 +0000)]
MFC: r283514

sfxge: add 7xxx NICs family support

Support 7xxx adapters including firmware-assisted TSO and VLAN tagging:

  - Solarflare Flareon Ultra 7000 series 10/40G adapters:
    - Solarflare SFN7042Q QSFP+ Server Adapter
    - Solarflare SFN7142Q QSFP+ Server Adapter

  - Solarflare Flareon Ultra 7000 series 10G adapters:
    - Solarflare SFN7022F SFP+ Server Adapter
    - Solarflare SFN7122F SFP+ Server Adapter
    - Solarflare SFN7322F Precision Time Synchronization Server Adapter

  - Solarflare Flareon 7000 series 10G adapters:
    - Solarflare SFN7002F SFP+ Server Adapter

Support utilities to configure adapters and update firmware.

The work is done by Solarflare developers
(Andy Moreton, Andrew Lee and many others),
Artem V. Andreev <Artem.Andreev at oktetlabs.ru> and me.

Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284555 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agosfxge: use if_initbaudrate() to set interface baudrate
arybchik [Thu, 18 Jun 2015 15:41:09 +0000 (15:41 +0000)]
sfxge: use if_initbaudrate() to set interface baudrate

It is required to cope with u_long limit for 10 Gbps in a right way.
It is a direct commit to stable/10 since head differs (head does not
have if_initbaudrate(), if_baudrate is simply uint64_t).

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D2849

git-svn-id: svn://svn.freebsd.org/base/stable/10@284554 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284178:
kib [Thu, 18 Jun 2015 13:46:32 +0000 (13:46 +0000)]
MFC r284178:
Add barriers when updating and reading th_generation.

MFC r284256:
Tweaks for r284178.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284548 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r277229:
np [Wed, 17 Jun 2015 22:52:12 +0000 (22:52 +0000)]
MFC r277229:

Use parentheses instead of close proximity to ensure layer + 1 is evaluated
before the rest of the expression.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284530 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r264038 (theraven):
delphij [Wed, 17 Jun 2015 19:12:18 +0000 (19:12 +0000)]
MFC r264038 (theraven):

Fix an issue where the locale and rune locale could become out of sync,
causing mb* functions (and similar) to be called with the wrong data
(possibly a null pointer, causing a crash).

PR: standards/188036

git-svn-id: svn://svn.freebsd.org/base/stable/10@284524 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 279125, 279126, 279128, 279139:
marcel [Wed, 17 Jun 2015 19:03:32 +0000 (19:03 +0000)]
MFC 279125, 279126, 279128, 279139:
  Add the -c option for specifying the capacity of the disk image.
  Bump the version to 20150222.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284523 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284179, r283959
sbruno [Wed, 17 Jun 2015 18:50:57 +0000 (18:50 +0000)]
MFC r284179, r283959

Implement multiqueue (max 2 tx/rx queues) for the 82574L chipset.

Change default tuning parameters to handle this new configuration if
EM_MULTIQUEUE is set in the kernel configuration.  Off by default.

See r283959 changelog for the scope of these changes.

Relnotes: Yes
Sponsored by: Limelight Networks

git-svn-id: svn://svn.freebsd.org/base/stable/10@284522 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoRevert r284516, which broke the build in a way I do not fully
gjb [Wed, 17 Jun 2015 18:22:52 +0000 (18:22 +0000)]
Revert r284516, which broke the build in a way I do not fully
understand yet.  I'll redo this MFC after investigation.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284521 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284333:
gjb [Wed, 17 Jun 2015 16:29:32 +0000 (16:29 +0000)]
MFC r284333:
  Reduce the arm/armv6 image size from 1G to 480M.

  Since the images are effectively mostly zeros at 1G,
  reduce the size to allow installation on smaller SD
  cards, such as 512Mb.

  While here, stop writing the /boot.txt file on the
  WANDBOARD, which isn't used anyway.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284517 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r283989:
gjb [Wed, 17 Jun 2015 16:26:13 +0000 (16:26 +0000)]
MFC r283989:
 Implement endian-aware services_mkdb(8) in the 'distribute'
 target.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@284516 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284025,284032: dnode_read: handle hole blocks in zfs boot code
avg [Wed, 17 Jun 2015 11:47:06 +0000 (11:47 +0000)]
MFC r284025,284032: dnode_read: handle hole blocks in zfs boot code

PR: 199804

git-svn-id: svn://svn.freebsd.org/base/stable/10@284509 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284393:
tuexen [Wed, 17 Jun 2015 09:44:02 +0000 (09:44 +0000)]
MFC r284393:
Correctly detect the case where the last address is removed.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284507 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284386:
tuexen [Wed, 17 Jun 2015 09:41:16 +0000 (09:41 +0000)]
MFC r284386:
Fix name of a constant.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284506 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284384:
tuexen [Wed, 17 Jun 2015 09:39:40 +0000 (09:39 +0000)]
MFC r284384:
Stop the heartbeat timer when removing a net.
Thanks to the reporter of
https://code.google.com/p/sctp-refimpl/issues/detail?id=14
for reporting the issue.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284505 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284012:
hselasky [Wed, 17 Jun 2015 07:41:53 +0000 (07:41 +0000)]
MFC r284012:
Disable VGA PCI interrupts until a chipset driver is loaded for VGA
PCI devices. Else unhandled display adapter interrupts might freeze
the CPU or consume a lot of CPU.

PR: 156596

git-svn-id: svn://svn.freebsd.org/base/stable/10@284503 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284011:
hselasky [Wed, 17 Jun 2015 07:36:00 +0000 (07:36 +0000)]
MFC r284011:
Don't wait forever for USB data to be flushed.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284500 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284125:
hselasky [Wed, 17 Jun 2015 07:32:28 +0000 (07:32 +0000)]
MFC r284125:
Add new USB quirk.

PR: 200693

git-svn-id: svn://svn.freebsd.org/base/stable/10@284499 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r280991:
hselasky [Wed, 17 Jun 2015 07:21:43 +0000 (07:21 +0000)]
MFC r280991:
Extend fixes made in r278103 and r38754 by copying the complete packet
header and not only partial flags and fields. Firewalls can attach
classification tags to the outgoing mbufs which should be copied to
all the new fragments. Else only the first fragment will be let
through by the firewall. This can easily be tested by sending a large
ping packet through a firewall. It was also discovered that VLAN
related flags and fields should be copied for packets traversing
through VLANs. This is all handled by "m_dup_pkthdr()".

Regarding the MAC policy check in ip_fragment(), the tag provided by
the originating mbuf is copied instead of using the default one
provided by m_gethdr().

Tested by: Karim Fodil-Lemelin <fodillemlinkarim at gmail.com>
Sponsored by: Mellanox Technologies
PR: 7802

git-svn-id: svn://svn.freebsd.org/base/stable/10@284496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284385:
kib [Wed, 17 Jun 2015 04:18:30 +0000 (04:18 +0000)]
MFC r284385:
Fix typo in comment.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284493 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: The fix for the issue described in the 20150614 sendmail entry has
gshapiro [Wed, 17 Jun 2015 02:47:30 +0000 (02:47 +0000)]
MFC: The fix for the issue described in the 20150614 sendmail entry has
     been been committed in revision 284485..

git-svn-id: svn://svn.freebsd.org/base/stable/10@284487 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: The import of openssl to address the FreeBSD-SA-15:10.openssl security
gshapiro [Wed, 17 Jun 2015 02:39:10 +0000 (02:39 +0000)]
MFC: The import of openssl to address the FreeBSD-SA-15:10.openssl security
     advisory includes a change which rejects handshakes with DH parameters
     below 768 bits.  sendmail releases prior to 8.15.2 (not yet released),
     defaulted to a 512 bit DH parameter setting for client connections.
     This commit chages that default to 1024 bits.  sendmail 8.15.2, when
     released well use a default of 2048 bits.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 284165:
marcel [Wed, 17 Jun 2015 02:30:12 +0000 (02:30 +0000)]
MFC 284165:
Move contrib/top/top.X to contrib/top/top.xs and move
contrib/top/top.local.H to contrib/top/top.local.hs.
Change the makefile accordingly.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284484 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r283092, r283966
jkim [Tue, 16 Jun 2015 20:00:53 +0000 (20:00 +0000)]
MFC: r283092, r283966

Merge ACPICA 20150515.

Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@284460 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r281930 by jhb:
emaste [Tue, 16 Jun 2015 18:39:11 +0000 (18:39 +0000)]
MFC r281930 by jhb:

    Update this driver to not save copies of registers that are no longer
    used after r281874.  While here, also update it to always write the
    parent's PCI bus number to the primary bus register.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284455 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r283923
sbruno [Tue, 16 Jun 2015 12:10:55 +0000 (12:10 +0000)]
MFC r283923

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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284351:
tuexen [Tue, 16 Jun 2015 08:36:57 +0000 (08:36 +0000)]
MFC r284351:
Simplify printaddr(). No functional change.

MFC r284352:
Allow more than one socket entry for a file descriptor. This is needed
for supporting 1-to-many style SCTP sockets. For other sochets, there
is no functional change.

MFC r284353:
Allow more than one local or remote address per socket. This is needed to
support SCTP (and MPTCP in the future). No functional change for existing
protocols.

MFC r284354:
Add support for SCTP.

MFC r284355:
When using -L the code skips a socket if the local or foreign
address is loopback. So it is shown if both are not loopback.
The man page says that it is shown if the local or foreign
address is not loopback. Change the man page to reflect the
code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284441 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284332:
tuexen [Tue, 16 Jun 2015 08:26:33 +0000 (08:26 +0000)]
MFC r284332:

Fix the reporting of the PMTUD state for specific paths.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284331:
tuexen [Tue, 16 Jun 2015 08:24:08 +0000 (08:24 +0000)]
MFC r284331:

Code cleanup.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284439 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284326:
tuexen [Tue, 16 Jun 2015 08:21:58 +0000 (08:21 +0000)]
MFC r284326:

In case of an output error, continue with the next net, don't try to
continue sending on the same net.

This fixes a bug where an invalid mbuf chain was constructed, if a
full size frame of control chunks should be sent and there is a
output error.

Based on a discussion with rrs@, change move to the next net. This fixes
the bug and improves the behaviour.

Thanks to Irene Ruengeler for spending a lot of time in narrowing this
problem down.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284438 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC, r284192:
ken [Tue, 16 Jun 2015 02:31:11 +0000 (02:31 +0000)]
MFC, r284192:

  ------------------------------------------------------------------------
  r284192 | ken | 2015-06-09 15:39:38 -0600 (Tue, 09 Jun 2015) | 102 lines

  Add support for reading MAM attributes to camcontrol(8) and libcam(3).

  MAM is Medium Auxiliary Memory and is most commonly found as flash
  chips on tapes.

  This includes support for reading attributes and decoding most
  known attributes, but does not yet include support for writing
  attributes or reporting attributes in XML format.

  libsbuf/Makefile:
   Add subr_prf.c for the new sbuf_hexdump() function.  This
   function is essentially the same function.

  libsbuf/Symbol.map:
   Add a new shared library minor version, and include the
   sbuf_hexdump() function.

  libsbuf/Version.def:
   Add version 1.4 of the libsbuf library.

  libutil/hexdump.3:
   Document sbuf_hexdump() alongside hexdump(3), since it is
   essentially the same function.

  camcontrol/Makefile:
   Add attrib.c.

  camcontrol/attrib.c:
   Implementation of READ ATTRIBUTE support for camcontrol(8).

  camcontrol/camcontrol.8:
   Document the new 'camcontrol attrib' subcommand.

  camcontrol/camcontrol.c:
   Add the new 'camcontrol attrib' subcommand.

  camcontrol/camcontrol.h:
   Add a function prototype for scsiattrib().

  share/man/man9/sbuf.9:
   Document the existence of sbuf_hexdump() and point users to
   the hexdump(3) man page for more details.

  sys/cam/scsi/scsi_all.c:
   Add a table of known attributes, text descriptions and
   handler functions.

   Add a new scsi_attrib_sbuf() function along with a number
   of other related functions that help decode attributes.

   scsi_attrib_ascii_sbuf() decodes ASCII format attributes.

   scsi_attrib_int_sbuf() decodes binary format attributes, and
   will pass them off to scsi_attrib_hexdump_sbuf() if they're
   bigger than 8 bytes.

   scsi_attrib_vendser_sbuf() decodes the vendor and drive
   serial number attribute.

   scsi_attrib_volcoh_sbuf() decodes the Volume Coherency
   Information attribute that LTFS writes out.

  sys/cam/scsi/scsi_all.h:
   Add a number of attribute-related structure definitions and
   other defines.

   Add function prototypes for all of the functions added in
   scsi_all.c.

  sys/kern/subr_prf.c:
   Add a new function, sbuf_hexdump().  This is the same as
   the existing hexdump(9) function, except that it puts the
   result in an sbuf.

   This also changes subr_prf.c so that it can be compiled in
   userland for includsion in libsbuf.

   We should work to change this so that the kernel hexdump
   implementation is a wrapper around sbuf_hexdump() with a
   statically allocated sbuf with a drain.  That will require
   a drain function that goes to the kernel printf() buffer
   that can take a non-NUL terminated string as input.
   That is because an sbuf isn't NUL-terminated until it is
   finished, and we don't want to finish it while we're still
   using it.

   We should also work to consolidate the userland hexdump and
   kernel hexdump implemenatations, which are currently
   separate.  This would also mean making applications that
   currently link in libutil link in libsbuf.

  sys/sys/sbuf.h:
   Add the prototype for sbuf_hexdump(), and add another copy
   of the hexdump flag values if they aren't already defined.

   Ideally the flags should be defined in one place but the
   implemenation makes it difficult to do properly.  (See
   above.)

  Sponsored by: Spectra Logic Corporation

------------------------------------------------------------------------

git-svn-id: svn://svn.freebsd.org/base/stable/10@284435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284180:
ambrisko [Mon, 15 Jun 2015 21:08:08 +0000 (21:08 +0000)]
MFC r284180:

Switch from make_dev_alias to make_dev_alias_p since make_dev_alias_p can
gracefully fail if the /dev/megaraid_sas_ioctl_node symlink already exists.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r283889,r283891:
delphij [Mon, 15 Jun 2015 18:16:23 +0000 (18:16 +0000)]
MFC r283889,r283891:

Clear p_stops when doing PT_DETACH and PROCFS_CTL_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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284418 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284024: bhyve/vmrun.sh: pass all existing readable disks to bhyveload(8)
avg [Mon, 15 Jun 2015 13:18:30 +0000 (13:18 +0000)]
MFC r284024: bhyve/vmrun.sh: pass all existing readable disks to bhyveload(8)

git-svn-id: svn://svn.freebsd.org/base/stable/10@284414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284023: bhyve/vmrun.sh: support passing disk options same as for bhyve(8)
avg [Mon, 15 Jun 2015 13:01:42 +0000 (13:01 +0000)]
MFC r284023: bhyve/vmrun.sh: support passing disk options same as for bhyve(8)

git-svn-id: svn://svn.freebsd.org/base/stable/10@284413 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: Add a quick (?) note for users who may be having sendmail interoperability issues
gshapiro [Mon, 15 Jun 2015 04:20:32 +0000 (04:20 +0000)]
MFC: Add a quick (?) note for users who may be having sendmail interoperability issues
     due to the recent (FreeBSD-SA-15:10.openssl) OpenSSL change to reject 512 bit
     DH parameters.  Affects 11-CURRENT and 10-STABLE.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284404 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC of 284397,tzdata10:
edwin [Mon, 15 Jun 2015 01:01:25 +0000 (01:01 +0000)]
MFC of 284397,tzdata10:

Update to tzdata2015e:

  Changes affecting future time stamps

    Morocco will suspend DST from 2015-06-14 03:00 through 2015-07-19 02:00,
    not 06-13 and 07-18 as we had guessed.  (Thanks to Milamber.)

    Assume Cayman Islands will observe DST starting next year, using US rules.
    Although it isn't guaranteed, it is the most likely.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284398 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r283832:
kib [Sun, 14 Jun 2015 05:12:48 +0000 (05:12 +0000)]
MFC r283832:
Remove unused variable.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284375 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r273331, r273371, r275851:
bryanv [Sun, 14 Jun 2015 03:14:45 +0000 (03:14 +0000)]
MFC r273331, r273371, r275851:

 - Add vxlan interface

 - Use the size of the Ethernet address, not the entire header, when
   copying into forwarding entry.

 - Prefix all the vxlan ifconfig commands so they are unique

git-svn-id: svn://svn.freebsd.org/base/stable/10@284365 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r271603:
bryanv [Sat, 13 Jun 2015 19:36:32 +0000 (19:36 +0000)]
MFC r271603:

Add DEF_CLONE_CMD_ARG2

git-svn-id: svn://svn.freebsd.org/base/stable/10@284347 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r277788:
bryanv [Sat, 13 Jun 2015 17:40:33 +0000 (17:40 +0000)]
MFC r277788:

Rework vtblk dump handling of in flight requests

Previously, the driver resets the device and abandon the requests that
are caught in flight when the dump was initiated. This was problematic
if the system is resumed after the dump is completed.

While that is probably not the typical action, it is simple to rework
the driver to very likely have the device usable after the dump without
making it more likely for the dump to fail. The in flight requests are
simply queued for completion once the dump is finished.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284344 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 283546:
jhb [Sat, 13 Jun 2015 16:15:43 +0000 (16:15 +0000)]
MFC 283546:
Add KTR tracing for some MI ptrace events.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284343 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284104:
kib [Sat, 13 Jun 2015 07:31:50 +0000 (07:31 +0000)]
MFC r284104:
Updates from SDM rev. 55.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284338 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r283753
rmacklem [Fri, 12 Jun 2015 22:05:04 +0000 (22:05 +0000)]
MFC: r283753
Make the NFS server use shared vnode locks for a few cases
that are allowed by the VFS/VOP interface instead of using
exclusive locks.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284334 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r284329
jkim [Fri, 12 Jun 2015 17:10:19 +0000 (17:10 +0000)]
MFC: r284329

Merge OpenSSL 1.0.1o.

Note it is instantly merged because it restores ABI compatibility broken by
the previous OpenSSL 1.0.1n.

Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@284330 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoAdd TUNABLE_INT() macros so that the tunables MFC'd from
rmacklem [Fri, 12 Jun 2015 13:42:53 +0000 (13:42 +0000)]
Add TUNABLE_INT() macros so that the tunables MFC'd from
head as r284216 are set via /boot/loader.conf in stable/10.
This is a direct commit to stable/10 because TUNABLE_INT()
is deprecated in head.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284318 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r283525: zfs: fixes for a full stream received into an existing dataset
avg [Fri, 12 Jun 2015 11:49:05 +0000 (11:49 +0000)]
MFC r283525: zfs: fixes for a full stream received into an existing dataset

git-svn-id: svn://svn.freebsd.org/base/stable/10@284313 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r283939: userboot: enable bzipfs support
avg [Fri, 12 Jun 2015 11:41:33 +0000 (11:41 +0000)]
MFC r283939: userboot: enable bzipfs support

git-svn-id: svn://svn.freebsd.org/base/stable/10@284311 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r284283
jkim [Thu, 11 Jun 2015 19:07:45 +0000 (19:07 +0000)]
MFC: r284283

Merge OpenSSL 1.0.1n.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284285 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r282525-282533
kadesai [Thu, 11 Jun 2015 14:11:41 +0000 (14:11 +0000)]
MFC r282525-282533

r282533 : Corrected indentation on conflicted source files.

r282532 : Configured the mrsas(4) driver to support UNMAPPED I/O and updated driver version.

r282531 :

1. All LSI namings are converted to AVAGO Tech.
2. Fix in AEN path(suggested by John Baldwin).
3. Fix IOCTL path w.r.t Sense key handling

r282530 :

Bug fixes found internally as detailed below:
1. While disabling interrupt the FW disables interrupts for only 16 vectors.
In case of Invader which supports 96 MSI-x vectors, some spurious interrupts
may come on other vectors even after interrupt disable. So, driver uses a flag
and ignores the spurious interrupts.
2. Reply queue depth is made double the number of commands supported by FW.
3. Misplaced interrupt enable code is now moved down in the OCR path.
4. Updated error handling code in OCR path.
5. Removed un-necessary print.

r282529 :

Driver calls mrsas_complete_cmd() to call mrsas_wakeup() for each MFI frame that was
issued through the ioctl() interface prior to the kill adapter. This ensures
userspace ioctl() system calls issued just before a kill adapter don't get stuck in
wait state and IOCTLs are returned to application.

r282528 :

In OCR(Online Controller Reset) path, driver sets adapter state to
MEGASAS_HBA_OPERATIONAL before getting new RAID map.
There will be a small window where IO will come from OS with old RAID map.
This patch will update adapter state to MEGASAS_HBA_OPERATIONAL,
only after driver has new RAID map to avoid any IOs getting build using old RAID map.

r282527 :

Current driver does fast path read load balancing between arm and mirror disk
for two Drive Raid-1 configuration only.

Now, Driver support fast path read load balancing for all (any number of disk) Raid-1 configuration.

r282526 :

Now Driver expose Secure Jbod Support via driver_operations in MFI INIT Frame.
FW expose Secure Jbod support via Controller properity.

Firmware expect IOs to be received from different IO path than
conventional fast path queue, in case of SED drives.

To have Secure jbod support user need driver and firmware support.

r282525 : This patch adds the feature to provide PCI information via IOCTL query.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284267 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284245:
jch [Thu, 11 Jun 2015 13:44:06 +0000 (13:44 +0000)]
MFC r284245:
Fix a callout race condition introduced in TCP timers callouts with r281599.
In TCP timer context, it is not enough to check callout_stop() return value
to decide if a callout is still running or not, previous callout_reset()
return values have also to be checked.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284261 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r283635
rmacklem [Wed, 10 Jun 2015 12:17:19 +0000 (12:17 +0000)]
MFC: r283635
Make the size of the hash tables used by the NFSv4 server tunable.
No appreciable change in performance was observed after increasing
the sizes of these tables and then testing with a single client.
However, there was an email that indicated high CPU overheads for
a heavily loaded NFSv4 and it is hoped that increasing the sizes
of the hash tables via these tunables might help.
The tables remain the same size by default.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284216 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f