]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
10 years agoMFC r252204, r252250:
mav [Mon, 8 Jul 2013 16:02:03 +0000 (16:02 +0000)]
MFC r252204, r252250:
Add bunch of names for Seagate and HGST vennor-specififc ASC/ASCQ codes.

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

10 years agoMFC r252569:
mav [Mon, 8 Jul 2013 15:59:11 +0000 (15:59 +0000)]
MFC r252569:
Fix NULL-deference kernel panic on attempt of destroying non-existing
ramdisk-backed CTL LUN.

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

10 years agoMFC r249468:
mav [Mon, 8 Jul 2013 15:54:38 +0000 (15:54 +0000)]
MFC r249468:
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.

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

10 years agoMFC r241726:
andre [Mon, 8 Jul 2013 13:24:18 +0000 (13:24 +0000)]
MFC r241726:

 Move UMA socket zone initialization from uipc_domain.c to uipc_socket.c
 into one place next to its other related functions to avoid confusion.

MFC r241729:

 Move socket UMA zone initialization functionality together into
 one place.

MFC r241779:

 Tidy up somaxconn (accept queue limit) and related functions
 and move it together into one place.

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

10 years agoMFC r252846:
gjb [Mon, 8 Jul 2013 01:46:11 +0000 (01:46 +0000)]
MFC r252846:

 - Add SRC_FORCE_CHECKOUT configuration option to force svn to checkout
   the src/ tree into a directory that contains files/directories, such
   as a case where a custom kernel configuration file is specified.

 - Allow specification of multiple KERNCONFs to pass to 'make release'.

 - Move evaluation of NODOCS/NOPORTS earlier, and set based on how the
   release process expects these options to be evaluated.

 - Wrap KERNCONF specification in double quotes, and use 'eval' so multiple
   kernel configurations do not cause the build to fail in strange ways.

 - Set WITHOUT_X11 for the port build flags for the documentation toolchain
   build.  Also run 'clean distclean' targets during port build.

PR: 180192
MFC after: 3 days
Approved by: kib (mentor, implicit)

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

10 years agoMFC of tzdata2013d, 253009
edwin [Sun, 7 Jul 2013 22:27:36 +0000 (22:27 +0000)]
MFC of tzdata2013d, 253009

- Morocco:
  announced that the year's Ramadan daylight-savings transitions
  would be 2013-07-07 and 2013-08-10.

- Israel:
  As of 2013, DST starts at 02:00 on the Friday before the last
  Sunday in March.  DST ends at 02:00 on the first Sunday after
  October 1, unless it occurs on the second day of the Jewish Rosh
  Hashana holiday, in which case DST ends a day later (i.e. at 02:00
  the first Monday after October 2).  [Rosh Hashana holidays are
  factored in until 2100.]

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

10 years agoMFC bsdconfig(8) and sysrc(8) from HEAD. (shazam!)
dteske [Sun, 7 Jul 2013 19:13:34 +0000 (19:13 +0000)]
MFC bsdconfig(8) and sysrc(8) from HEAD. (shazam!)

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

10 years agoMFC r252720:
dim [Sun, 7 Jul 2013 19:05:35 +0000 (19:05 +0000)]
MFC r252720:

Pull in r185594 from llvm trunk:

  Add MachineBasicBlock::addLiveIn().

  This function adds a live-in physical register to an MBB and ensures
  that it is copied to a virtual register immediately.

Pull in r185615 from llvm trunk:

  Live-in copies go *after* EH_LABELs.

  This will soon be tested by exception handling working at all.

Pull in r185617 from llvm trunk:

  Simplify landing pad lowering.

  Stop using the ISD::EXCEPTIONADDR and ISD::EHSELECTION when lowering
  landing pad arguments. These nodes were previously legalized into
  CopyFromReg nodes, but that never worked properly because the
  CopyFromReg node weren't guaranteed to be  scheduled at the top of the
  basic block.

  This meant the exception pointer and selector registers could be
  clobbered before being copied to a virtual register.

  This patch copies the two physical registers to virtual registers at
  the beginning of the basic block, and lowers the landingpad instruction
  directly to two CopyFromReg nodes reading the *virtual* registers. This
  is safe because virtual registers don't get clobbered.

  A future patch will remove the ISD::EXCEPTIONADDR and ISD::EHSELECTION
  nodes.

Together, these changes fix llvm PR 16038 ('qt4 webcore file results in
"Bad machine code: Using an undefined physical register"'), and should
make it possible again to compile the www/qt4-webkit port again on the
i386 arch, without using a CPUTYPE=i686 or higher setting.

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

10 years agoMFC r252779:
tuexen [Sun, 7 Jul 2013 17:08:59 +0000 (17:08 +0000)]
MFC r252779:
Fix a bug were only 2048 streams where usable even though more than
2048 streams were negotiated on the wire. While there, remove the
hard coded limit of 2048 streams.

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

10 years agoMFC r252718:
tuexen [Sun, 7 Jul 2013 17:06:33 +0000 (17:06 +0000)]
MFC r252718:
When processing an incoming ABORT, SHUTDOWN_COMPLETE or ERROR (NAT related)
chunk, take always the T-bit into account, when checking the verification
tag.

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

10 years agoMFC r252585:
tuexen [Sun, 7 Jul 2013 17:04:23 +0000 (17:04 +0000)]
MFC r252585:
Code cleanups.

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

10 years agoMFC r251248:
tuexen [Sun, 7 Jul 2013 17:01:35 +0000 (17:01 +0000)]
MFC r251248:
Use LIST_EMPTY when appropriate.

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

10 years agoMFC r251054:
tuexen [Sun, 7 Jul 2013 16:59:33 +0000 (16:59 +0000)]
MFC r251054:
Remove redundant checks.

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

10 years agoMFC r250756:
tuexen [Sun, 7 Jul 2013 16:55:57 +0000 (16:55 +0000)]
MFC r250756:
Set errno to ETIMEDOUT if an SCTP association times out during
setup.

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

10 years agoMFC r250754:
tuexen [Sun, 7 Jul 2013 16:53:44 +0000 (16:53 +0000)]
MFC r250754:
Don't send an ABORT chunk with verification 0.

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

10 years agoMFC r250466:
tuexen [Sun, 7 Jul 2013 16:51:17 +0000 (16:51 +0000)]
MFC r250466:
Honor the net.inet6.ip6.v6only sysctl variable and the IPV6_V6ONLY
socket option for SCTP sockets in the same way as for UDP or TCP
sockets.

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

10 years agoMFC r249333:
tuexen [Sun, 7 Jul 2013 16:31:07 +0000 (16:31 +0000)]
MFC r249333:
Remove the number of addresses restriction from sctp_connectx().
Remove unused code.
While there, do some cleanup of the code.

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

10 years agoMFC r248953:
tuexen [Sun, 7 Jul 2013 16:29:16 +0000 (16:29 +0000)]
MFC r248953:
Add a macro for checking for IPv4 link local addresses.

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

10 years agoMFC r248172:
tuexen [Sun, 7 Jul 2013 16:25:39 +0000 (16:25 +0000)]
MFC r248172:
Return an error if sctp_peeloff() fails because a socket can't be allocated.
sctp_peeloff() uses sonewconn() also in cases where listen() wasn't called.
So honor this use case.

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

10 years agoMFC r247412:
tuexen [Sun, 7 Jul 2013 16:16:32 +0000 (16:16 +0000)]
MFC r247412:
Fix a potential race in returning setting errno when an
association goes down.
Reported by Mozilla in
https://bugzilla.mozilla.org/show_bug.cgi?id=845513

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

10 years agoMFC r246687:
tuexen [Sun, 7 Jul 2013 16:13:54 +0000 (16:13 +0000)]
MFC r246687:
Send the adaptation layer indication only if set by the user.

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

10 years agoMFC r246674:
tuexen [Sun, 7 Jul 2013 16:11:13 +0000 (16:11 +0000)]
MFC r246674:
Don't send kernel provided information in the User Initiated
ABORT cause, since the user can also provide this kind of
information. So the receiver doesn't know who provided the
information.
While there: Fix a bug where the stack would send a malformed
ABORT chunk when using a send() call with SCTP_ABORT|SCT_SENDALL
flags.

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

10 years agoMFC r246635:
tuexen [Sun, 7 Jul 2013 16:08:34 +0000 (16:08 +0000)]
MFC r246635:
Make sure that received packets for removed addresses are handled
consistently. While there, make variable names consistent.

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

10 years agoMFC r246629:
tuexen [Sun, 7 Jul 2013 16:05:35 +0000 (16:05 +0000)]
MFC r246629:
Improve code style. No functional change.

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

10 years agoMFC r246595:
tuexen [Sun, 7 Jul 2013 16:03:58 +0000 (16:03 +0000)]
MFC r246595:
Cleanup the handling of address scopes. Announce in the INIT/INIT-ACK
only the supported address types. While there, do some whitespace
cleanups.

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

10 years agoMFC r246588:
tuexen [Sun, 7 Jul 2013 16:01:00 +0000 (16:01 +0000)]
MFC r246588:
Fix a bug where HEARTBEATs were still sent in SHUTDOWN_SENT or
SHUTDOWN_ACK_SENT state. While there, make the corresponding
code consistent.

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

10 years agoMFC r244730:
tuexen [Sun, 7 Jul 2013 15:57:12 +0000 (15:57 +0000)]
MFC r244730:
Some cleanups.

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

10 years agoMFC r244729:
tuexen [Sun, 7 Jul 2013 15:55:01 +0000 (15:55 +0000)]
MFC r244729:
Minor cleanups of debug messages.

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

10 years agoMFC r244728:
tuexen [Sun, 7 Jul 2013 15:52:37 +0000 (15:52 +0000)]
MFC r244728:
Fix a copy and paste error.

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

10 years agoMFC r244033:
tuexen [Sun, 7 Jul 2013 15:50:01 +0000 (15:50 +0000)]
MFC r244033:
Get it compiling without INET and INET6 support (mainly userland stack).

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

10 years agoMFC r244026:
tuexen [Sun, 7 Jul 2013 15:47:44 +0000 (15:47 +0000)]
MFC r244026:
Use correct padding of the ABORT chunk in case of an user initiated
abort cause is used.

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

10 years agoMFC r244021:
tuexen [Sun, 7 Jul 2013 15:18:09 +0000 (15:18 +0000)]
MFC r244021:
Ensure that the padding of the last parameter of an INIT chunk
is not included in the chunk length as required by RFC 4960.
While there, cleanup sctp_send_initiate().

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

10 years agoMFC r252504:
lstewart [Sun, 7 Jul 2013 14:14:44 +0000 (14:14 +0000)]
MFC r252504:

Import an implementation of the CAIA Delay-Gradient (CDG) congestion control
algorithm, which is based on the 2011 v0.1 patch release and described in the
paper "Revisiting TCP Congestion Control using Delay Gradients" by David Hayes
and Grenville Armitage. It is implemented as a kernel module compatible with the
modular congestion control framework.

CDG is a hybrid congestion control algorithm which reacts to both packet loss
and inferred queuing delay. It attempts to operate as a delay-based algorithm
where possible, but utilises heuristics to detect loss-based TCP cross traffic
and will compete effectively as required. CDG is therefore incrementally
deployable and suitable for use on shared networks.

In collaboration with: David Hayes <david.hayes at ieee.org> and
Grenville Armitage <garmitage at swin edu au>
Sponsored by: Cisco University Research Program and FreeBSD Foundation

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

10 years agoMFC r243565:
tuexen [Sun, 7 Jul 2013 13:20:35 +0000 (13:20 +0000)]
MFC r243565:
Add support for sctp_peeloff() also in the front states of the
association.

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

10 years agoMFC r243564:
tuexen [Sun, 7 Jul 2013 13:18:19 +0000 (13:18 +0000)]
MFC r243564:
Find the endpoint for an incoming packet also if the endpoint
comes from sctp_peeloff().

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

10 years agoMFC r243558:
tuexen [Sun, 7 Jul 2013 13:15:56 +0000 (13:15 +0000)]
MFC r243558:
Allow shutdown() to be used on fds returned from sctp_peeloff().

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

10 years agoMFC r243516:
tuexen [Sun, 7 Jul 2013 13:13:41 +0000 (13:13 +0000)]
MFC r243516:
Remove unused function.

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

10 years agoMFC r243302:
tuexen [Sun, 7 Jul 2013 13:10:31 +0000 (13:10 +0000)]
MFC r243302:
Cleanup the code a bit, which improves the portability.

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

10 years agoMFC r243300:
tuexen [Sun, 7 Jul 2013 13:09:17 +0000 (13:09 +0000)]
MFC r243300:
Fix the handling of mapped IPv6 addresses in sctp_connectx().

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

10 years agoMFC r243186:
tuexen [Sun, 7 Jul 2013 13:07:42 +0000 (13:07 +0000)]
MFC r243186:
Add support for SCTP/UDP/IPV6.
his completes the support of
http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-udp-encaps

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

10 years agoMFC r243157:
tuexen [Sun, 7 Jul 2013 13:04:31 +0000 (13:04 +0000)]
MFC r243157:
Get the accounting working. We now have counters how many
chunks for each SCTP outgoing stream are in the send and
sent queue.
While there, improve the naming of NR-SACK related constants
recently introduced.

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

10 years agoMFC r242714:
tuexen [Sun, 7 Jul 2013 12:57:45 +0000 (12:57 +0000)]
MFC r242714:
Add per outgoing stream accounting for chunks in the send
and sent queue. This provides no functional change, but is
a preparation for an upcoming stream reset improvement.
Done with rrs@.

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

10 years agoMFC r242708, r242709:
tuexen [Sun, 7 Jul 2013 12:54:15 +0000 (12:54 +0000)]
MFC r242708, r242709:
Improve PR-SCTP if used in combination with NR-SACK.
Based on work done by Mohammad Rajiullah.

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

10 years agoMFC r242627:
tuexen [Sun, 7 Jul 2013 12:50:04 +0000 (12:50 +0000)]
MFC r242627:
Move from early SSN assignment to late SSN assignment.
This doesn't change functionality, but makes upcoming change
much easier.
Developed with rrs@ at the IETF 85.

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

10 years agoMFC r242512:
tuexen [Sun, 7 Jul 2013 12:34:47 +0000 (12:34 +0000)]
MFC r242512:
Fix errno in a couple of error cases.

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

10 years agoMFC r242327:
tuexen [Sun, 7 Jul 2013 12:32:30 +0000 (12:32 +0000)]
MFC r242327:
Whitespace changes due to upstream integration of SCTP changes in the
FreeBSD code base.

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

10 years agoMFC r242326:
tuexen [Sun, 7 Jul 2013 12:29:01 +0000 (12:29 +0000)]
MFC r242326:
Add braces (as used elsewhere in the SCTP code).

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

10 years agoMFC r240849:
tuexen [Sun, 7 Jul 2013 12:25:28 +0000 (12:25 +0000)]
MFC r240849:
Whitespace change.

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

10 years agoMFC r240848:
tuexen [Sun, 7 Jul 2013 11:58:43 +0000 (11:58 +0000)]
MFC r240848:
Declare a static function as such.

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

10 years agoMFC r240842:
tuexen [Sun, 7 Jul 2013 11:56:28 +0000 (11:56 +0000)]
MFC r240842:
Fix a bug related to handling Re-config chunks. It is not true that
the association can be removed if the socket is gone.

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

10 years agoMFC r240826:
tuexen [Sun, 7 Jul 2013 11:53:34 +0000 (11:53 +0000)]
MFC r240826:
Small cleanups. No functional change.

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

10 years agoMFC r240507:
tuexen [Sun, 7 Jul 2013 11:50:51 +0000 (11:50 +0000)]
MFC r240507:
Small cleanups. No functional change.

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

10 years agoMFC r240263:
tuexen [Sun, 7 Jul 2013 11:47:06 +0000 (11:47 +0000)]
MFC r240263:
Whitespace changes.

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

10 years agoMFC r240250:
tuexen [Sun, 7 Jul 2013 11:44:32 +0000 (11:44 +0000)]
MFC r240250:
Whitespace cleanup.

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

10 years agoMFC r240198:
tuexen [Sun, 7 Jul 2013 11:41:12 +0000 (11:41 +0000)]
MFC r240198:
Don't include a structure containing a flexible array in another
structure.

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

10 years agoMFC r240158:
tuexen [Sun, 7 Jul 2013 11:36:46 +0000 (11:36 +0000)]
MFC r240158:
Get rid of a gcc'ism.

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

10 years agoMFC r240148:
tuexen [Sun, 7 Jul 2013 11:33:51 +0000 (11:33 +0000)]
MFC r240148:
Using %p in a format string requires a void *.

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

10 years agoMFC r240115:
tuexen [Sun, 7 Jul 2013 11:28:44 +0000 (11:28 +0000)]
MFC r240115:
Use the consistenly the size of a variable. This helps to keep the code
simpler for the userland implementation.

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

10 years agoMFC r240114:
tuexen [Sun, 7 Jul 2013 11:26:15 +0000 (11:26 +0000)]
MFC r240114:
Whitespace change.

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

10 years agoMFC r239035:
tuexen [Sun, 7 Jul 2013 11:20:12 +0000 (11:20 +0000)]
MFC r239035:
Testing an interface property should depend on the interface, not
on an address.

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

10 years agoMFC r238455:
tuexen [Sun, 7 Jul 2013 11:15:54 +0000 (11:15 +0000)]
MFC r238455:
Use case for selecting the address family (as in other places).

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

10 years agoMFC r238122:
tuexen [Sun, 7 Jul 2013 11:10:15 +0000 (11:10 +0000)]
MFC r238122:
Use consistent method to determine IPV4_OUTPUT/IPV6_OUTPUT.

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

10 years agoMFC r252732:
mm [Sun, 7 Jul 2013 09:21:39 +0000 (09:21 +0000)]
MFC r252732:
Fix misleading or remove irrelevant illumos messages and manpage references
in the zfs command.

PR: bin/178996
Submitted by: Peter Schaefer <peter.schaefer@wilhelmheinrichs.de>

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

10 years agoMFC r252869:
delphij [Sat, 6 Jul 2013 23:56:58 +0000 (23:56 +0000)]
MFC r252869:

Update driver with recent vendor improvements, most notably support
of Skyhawk adapters.

Many thanks to Emulex for their continued support of FreeBSD.

Submitted by: "Duvvuru,Venkat Kumar" <VenkatKumar.Duvvuru Emulex.Com>

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

10 years agoMFC r252857:
delphij [Sat, 6 Jul 2013 23:46:23 +0000 (23:46 +0000)]
MFC r252857:

Refresh vendor driver version which fixes command queue
full issue with ARC-1214 and ARC-1224.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: 黃清隆 <ching2048 areca com tw>

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

10 years agoMFC r252867:
delphij [Sat, 6 Jul 2013 23:26:36 +0000 (23:26 +0000)]
MFC r252867:

Import HighPoint DC Series Data Center HBA (DC7280 and R750) driver.
This driver works for FreeBSD/i386 and FreeBSD/amd64 platforms.

Many thanks to HighPoint for providing this driver.

(This changeset have not included changes found in 249468 and 246713)

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

10 years agoMFC r252852:
delphij [Sat, 6 Jul 2013 23:04:59 +0000 (23:04 +0000)]
MFC r252852:

Update hpt27xx(4) driver to address a problem reported by FreeNAS
user, where when more than one hpt27xx adapters are being used,
the "unit number" stays at 0.

Many thanks to HighPoint for providing this driver update.

(This changeset have not included change found in 249468)

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

10 years agoMFC r252587:
dim [Sat, 6 Jul 2013 22:51:56 +0000 (22:51 +0000)]
MFC r252587:

Pull in r185446 from clang trunk:

 Fix to PR15826 - clang hits assert in clang::ASTContext::getASTRecordLayout.

Reported by: glebius

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

10 years agoFix minor mis-merge in contrib/llvm/tools/clang/lib/Basic/Targets.cpp,
dim [Sat, 6 Jul 2013 22:39:17 +0000 (22:39 +0000)]
Fix minor mis-merge in contrib/llvm/tools/clang/lib/Basic/Targets.cpp,
reducing the diff against the file in head.

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

10 years agoMFC e1000 driver revisions: 248906,248908,249074,249339,249509
jfv [Sat, 6 Jul 2013 22:34:42 +0000 (22:34 +0000)]
MFC e1000 driver revisions: 248906,248908,249074,249339,249509
                            250108,250109,250168,250413,250414

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

10 years agoMFC ixgbe driver revisions 248901, 250108, and 251964
jfv [Sat, 6 Jul 2013 21:38:55 +0000 (21:38 +0000)]
MFC ixgbe driver revisions 248901, 250108, and 251964

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

10 years agoMFC r238087:
tuexen [Sat, 6 Jul 2013 20:39:44 +0000 (20:39 +0000)]
MFC r238087:
Initialize a variable.

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

10 years agoMFC r238003, r239091:
tuexen [Sat, 6 Jul 2013 20:35:21 +0000 (20:35 +0000)]
MFC r238003, r239091:
Move common code parts to sctp_common_input_processing().

Fix a bug found by dim@:
Don't use an uninitilized variable, if INVARIANTS is on and an illegal
packet with destination 0 is received.

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

10 years agoMFC r226454 (by bz):
kib [Sat, 6 Jul 2013 20:10:39 +0000 (20:10 +0000)]
MFC r226454 (by bz):

Fix VNET build.

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

10 years agoMerge r252337 from head:
gavin [Sat, 6 Jul 2013 19:43:42 +0000 (19:43 +0000)]
Merge r252337 from head:

  Don't try to re-insert an already present but invalid page.

  This could happen if a thread doing a page-in loses a ZFS range lock
  race to a thread writing to the same range

  This fixes "panic: vm_page_alloc: pindex already allocated" in
  http://docs.FreeBSD.org/cgi/mid.cgi?1372165971.96049.42.camel

Submitted by: avg

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

10 years agoMFC rr237715, r238294:
tuexen [Sat, 6 Jul 2013 17:11:33 +0000 (17:11 +0000)]
MFC rr237715, r238294:
Pass the src and dst address of a received packet explicitly around.

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

10 years agoMFC r250102: socket: Make shutdown() wake up a blocked accept().
jilles [Sat, 6 Jul 2013 14:21:22 +0000 (14:21 +0000)]
MFC r250102: socket: Make shutdown() wake up a blocked accept().

A blocking accept (and some other operations) waits on &so->so_timeo. Once
it wakes up, it will detect the SBS_CANTRCVMORE bit.

The error from accept() is [ECONNABORTED] which is not the nicest one -- the
thread calling accept() needs to know out-of-band what is happening.

A spurious wakeup on so->so_timeo appears harmless (sleep retried) except
when lingering on close (SO_LINGER, and in that case there is no descriptor
to call shutdown() on) so this should be fairly safe.

A shutdown() already woke up a blocked accept() for TCP sockets, but not for
Unix domain sockets. This fix is generic for all domains.

This patch was sent to -hackers@ and -net@ on April 5.

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

10 years agoMFC r252415, r252422:
mjg [Sat, 6 Jul 2013 12:56:30 +0000 (12:56 +0000)]
MFC r252415, r252422:

acct: reduce code duplication by using acct_disable as cleanup for
failed kproc_create

acct: create a special plimit object and set it for exiting processe
instead of allocating new one each time

All limits are set to RLIM_INFINITY which sould be ok (even though we
care only about RLIMT_FSIZE in this case).

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

10 years agoMFC r250567: fdescfs: Supply a real value for d_type in readdir.
jilles [Sat, 6 Jul 2013 11:39:37 +0000 (11:39 +0000)]
MFC r250567: fdescfs: Supply a real value for d_type in readdir.

All the fdescfs nodes (except . and ..) appear as character devices to
stat(), so DT_CHR is correct.

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

10 years agoMFC r252851:
delphij [Sat, 6 Jul 2013 09:49:01 +0000 (09:49 +0000)]
MFC r252851:

Add PCI IDs for HighPoint RocketRAID 4521, 3620, 3622 and 3640
controllers.  Update the hptiop(4) manual page to reflect this
as well as mentioning that some cards are already end-of-life.

Many thanks to Highpoint for providing this driver update.

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

10 years agoMFC r237569:
tuexen [Sat, 6 Jul 2013 09:23:04 +0000 (09:23 +0000)]
MFC r237569:
Unify sctp_input() and sctp6_input().

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

10 years agoMFC r237565:
tuexen [Sat, 6 Jul 2013 09:17:54 +0000 (09:17 +0000)]
MFC r237565:
Whitespace cleanup.

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

10 years agoMFC r237542:
tuexen [Sat, 6 Jul 2013 09:11:38 +0000 (09:11 +0000)]
MFC r237542:
Pass the packet length explicitly around.

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

10 years agoMFC r237541:
tuexen [Sat, 6 Jul 2013 09:08:17 +0000 (09:08 +0000)]
MFC r237541:
Remove redundant check.

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

10 years agoMFC r237540:
tuexen [Sat, 6 Jul 2013 09:04:55 +0000 (09:04 +0000)]
MFC r237540:
Do packet logging in a consistent way.

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

10 years agoMFC r248820: rc.subr: disabling globbing while processing devfs rules
avg [Sat, 6 Jul 2013 09:02:30 +0000 (09:02 +0000)]
MFC r248820: rc.subr: disabling globbing while processing devfs rules

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

10 years agoMFC r249139: strncmp for boot code: fix an off by one error
avg [Sat, 6 Jul 2013 08:58:30 +0000 (08:58 +0000)]
MFC r249139: strncmp for boot code: fix an off by one error

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

10 years agoMFC r248645: post mountroot event after a real/final root is mounted
avg [Sat, 6 Jul 2013 08:51:56 +0000 (08:51 +0000)]
MFC r248645: post mountroot event after a real/final root is mounted

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

10 years agoMFC r248641: libdwarf: anonymous types are expected to have empty type names
avg [Sat, 6 Jul 2013 08:43:31 +0000 (08:43 +0000)]
MFC r248641: libdwarf: anonymous types are expected to have empty type names

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

10 years agoMFC r226712 (sobomax):
delphij [Sat, 6 Jul 2013 08:43:09 +0000 (08:43 +0000)]
MFC r226712 (sobomax):

Add new option -F to specify alternative location of the /etc/fstab
file.

MFC r226742 (ed):

Build swapon with WARNS=6.

Don't use a variable called stat, because it collides with stat(2).

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

10 years agoMFC r252325:
markj [Sat, 6 Jul 2013 03:39:40 +0000 (03:39 +0000)]
MFC r252325:
The dtmalloc provider uses the short description of a malloc type as the
function name of its corresponding DTrace probes. These descriptions may
contain whitespace, but probe names cannot, so just replace any whitespace
with underscores when creating probes.

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

10 years agoMFC r251238:
markj [Sat, 6 Jul 2013 02:49:56 +0000 (02:49 +0000)]
MFC r251238:
SDT probes can directly pass up to five arguments as arguments to
dtrace_probe(). Arguments beyond these five must be obtained in an
architecture-specific way; this can be done through the getargval provider
method, and through dtrace_getarg() if getargval isn't overridden.

This change fixes two off-by-one bugs in the way these arguments are fetched
in FreeBSD's DTrace implementation. First, the SDT provider must set the
aframes parameter to 1 when creating a probe. The aframes parameter controls
the number of frames that dtrace_getarg() will step over in order to find
the frame containing the extra arguments. On FreeBSD, dtrace_getarg() is
called in SDT probe context via

dtrace_probe()->dtrace_dif_emulate()->dtrace_dif_variable->dtrace_getarg()

so aframes must be 3 since the arguments are in dtrace_probe()'s frame; it
was previously being called with a value of 2 instead. illumos uses a
different aframes value for SDT probes, but this is because illumos SDT
probes fire by triggering the #UD fault handler rather than calling
dtrace_probe() directly.

The second bug has to do with the way arguments are grabbed out
dtrace_probe()'s frame on amd64. The code currently jumps over the first
stack argument and retrieves the rest of them using a pointer into the
stack. This works on i386 because all of dtrace_probe()'s arguments will be
on the stack and the first argument is the probe ID, which should be
ignored. However, it is incorrect to ignore the first stack argument on
amd64, so we correct the pointer used to access the arguments.

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

10 years agoMFC r241703:
andre [Fri, 5 Jul 2013 21:33:32 +0000 (21:33 +0000)]
MFC r241703:

  Remove double-wrapping of #ifdef ZERO_COPY_SOCKETS within
  zero copy specialized sosend_copyin() helper function.

MFC r241704:

  Remove unnecessary includes from sosend_copyin() and fix
  a couple of style issues.

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

10 years agoMFC r226433:
andre [Fri, 5 Jul 2013 20:11:27 +0000 (20:11 +0000)]
MFC r226433:

 Update the comment and description of tcp_sendspace and tcp_recvspace
 to better reflect their purpose.

MFC r226437:

 VNET virtualize tcp_sendspace/tcp_recvspace and change the
 type to INT.  A long is not necessary as the TCP window is
 limited to 2**30.  A larger initial window isn't useful.

MFC r226448:

 Move the tcp_sendspace and tcp_recvspace sysctl's from
 the middle of tcp_usrreq.c to the top of tcp_output.c
 and tcp_input.c respectively next to the socket buffer
 autosizing controls.

MFC r227034:

 Restore sysctl names for tcp_sendspace/tcp_recvspace.

 They seem to be changed unintentionally in r226437, and there were no
 any mentions of renaming in commit log message.

 Reported by: Anton Yuzhaninov <citrin citrin ru>

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

10 years agoRegenerate after r252827
emaste [Fri, 5 Jul 2013 19:45:16 +0000 (19:45 +0000)]
Regenerate after r252827

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

10 years agoMFC r241724:
andre [Fri, 5 Jul 2013 19:43:33 +0000 (19:43 +0000)]
MFC r241724:

  Remove splimp() comment from sysinit table and attribute SI_SUB_PROTO_BEGIN
  and SI_SUB_PROTO_END to VNET related initializations.

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

10 years agoUndo accidental MFC of GPL_DTC in r252827
emaste [Fri, 5 Jul 2013 19:39:19 +0000 (19:39 +0000)]
Undo accidental MFC of GPL_DTC in r252827

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

10 years agoMFC r252313, r252349, 252436:
trociny [Fri, 5 Jul 2013 19:38:57 +0000 (19:38 +0000)]
MFC r252313, r252349, 252436:

To avoid LOR, drop the filedesc lock in export_fd_to_sb(), before
writing to sbuf.

MFC r252351 (mjg):

Remove duplicate NULL check in kern_proc_filedesc_out.
No functional changes.

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

10 years agoMFC r243624:
andre [Fri, 5 Jul 2013 19:36:34 +0000 (19:36 +0000)]
MFC r243624:

  Remove unused and unnecessary CSUM_IP_FRAGS checksumming capability.
  Checksumming the IP header of fragments is no different from doing
  normal IP headers.

  Discussed with: yongari

Note that the definition of CSUM_IP_FRAGS is left in mbuf.h to allow
for stable branch source compatibility.

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

10 years agoMFC r244236,r244408,r244915,r247054,r251512:
emaste [Fri, 5 Jul 2013 19:35:51 +0000 (19:35 +0000)]
MFC r244236,r244408,r244915,r247054,r251512:

  Add a new knob WITH_DEBUG_FILES to control the building of standalone
  debug files for userland programs and libraries.  The "-g" debug flag
  is automatically applied when WITH_DEBUG_FILES is set.

  The debug files are named ${prog}.debug and ${shlib}.debug for                  consistency with other systems and documentation.  In addition they are
  installed under /usr/lib/debug, to simplify the process of installing
  them if needed after a crash.  Users of bsd.{prog,lib}.mk outside of the
  base system place the standalone debug files in a .debug subdirectory.
  GDB automatically searches both of these directories for standalone
  debug files.

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