]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r276021, r279766:
ian [Sat, 23 May 2015 21:12:51 +0000 (21:12 +0000)]
MFC r276021, r279766:

  Reduce the diff in the Ti aintc between head and arm_intrng

  Fix spurious interrupts on arm am335x (beaglebone), by doing the EOI in
  both the post-filter and post-thread callbacks.

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

9 years agoMFC r279723, r279724:
ian [Sat, 23 May 2015 20:54:25 +0000 (20:54 +0000)]
MFC r279723, r279724:

  Define new linker set, UART_FDT_CLASS_AND_DEVICE, for registering full
  (class and device) FDT UART. Define second one, UART_FDT_CLASS, for UART
  class only.

  Move the uart_class definitions and fdt compat data into the individual
  uart implementations, and export them using the new linker-set mechanism.

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

9 years agoMFC r268137, r268138:
ian [Sat, 23 May 2015 20:53:19 +0000 (20:53 +0000)]
MFC r268137, r268138:

  Define a "__weak" macro for declaring symbols "weak".

  Add support for empty data sets. Data set begin and end pointers
  should resolve to "NULL" when not present. This is done by declaring
  the data set begin and end symbols as "weak".

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

9 years agoMFC r279239:
ian [Sat, 23 May 2015 20:01:20 +0000 (20:01 +0000)]
MFC r279239:

  Enable 'receive timeout' interrupt allowing us to not
  loose 'rx buffer full' event.

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

9 years agoMFC r277132: Rename Exynos UART driver functions. No functional change.
ian [Sat, 23 May 2015 19:57:44 +0000 (19:57 +0000)]
MFC r277132: Rename Exynos UART driver functions. No functional change.

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

9 years agoMFC r266942, r266944:
ian [Sat, 23 May 2015 19:50:14 +0000 (19:50 +0000)]
MFC r266942, r266944:

  Do only receive chars if there are some data in the buffer.
  This fixes operation on newer Exynos boards.

  Rename exynos uart driver filenames.

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

9 years agoMFC r272399, r272602, r274451, r274452:
ian [Sat, 23 May 2015 19:27:04 +0000 (19:27 +0000)]
MFC r272399, r272602, r274451, r274452:

  Add uart driver for Qualcomm MSM 7000/8000 series chips.
  It is working on IFC6410 board which has Qualcomm Snapdragon SoC.

  Use documented compat string for msm uart.

  Make PL011 UART to wait on putc only when TX FIFO is full

  Make uart_bus_fdt a decendant of ofwbus

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

9 years agoMFC r279702: Update a comment that had drifted out of date.
ian [Sat, 23 May 2015 17:48:09 +0000 (17:48 +0000)]
MFC r279702: Update a comment that had drifted out of date.

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

9 years agoMFC r279359, r279360:
ian [Sat, 23 May 2015 17:43:02 +0000 (17:43 +0000)]
MFC r279359, r279360:

For new eMMC chips, we must signal controller HC capability in OP_COND command.

Detect, report and use 8-bit bus if is available.

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

9 years agoMFC r278770, r279114, r279215, r279338, r279543:
ian [Sat, 23 May 2015 17:30:30 +0000 (17:30 +0000)]
MFC r278770, r279114, r279215, r279338, r279543:

  Add logic for handling new-style ARM cpu ID info.

  Correct a comment which was exactly backwards from reality.

  There is no reason to do i+dcache writeback and invalidate when changing
  the translation table (this may be left over from armv5 days).  It's
  especially bad to do so using a cache operation that isn't coherent on
  SMP systems.

  Add casting to make atomic ops work for pointers.  (Apparently nobody has
  ever done atomic ops on pointers before now on arm).

  Revert incorrect casting.

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

9 years agoMerge: 278618 278633 278636 278653 278742 278776 279121
rodrigc [Sat, 23 May 2015 09:48:59 +0000 (09:48 +0000)]
Merge: 278618 278633 278636 278653 278742 278776 279121

Multiple fixes for pgrep and pkill tests.

PR: 19109

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

9 years agoMerge: r277829
rodrigc [Sat, 23 May 2015 09:16:35 +0000 (09:16 +0000)]
Merge: r277829

Revert r277357 as expr has been enhanced to better detect overflow conditions,
and now the tests pass

PR: 196867
X-MFC with: r277798
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r282690:
kib [Sat, 23 May 2015 09:14:29 +0000 (09:14 +0000)]
MFC r282690:
Call uma_reclaim() from the additional pagedaemon thread to reclaim kmem
arena address space.

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

9 years agoMFC 282273:
jhb [Fri, 22 May 2015 23:55:59 +0000 (23:55 +0000)]
MFC 282273:
Update this page to note that XENHVM now works on i386.  (It shipped
enabled in GENERIC in 10.0.)

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

9 years agoMFC 281872:
jhb [Fri, 22 May 2015 23:54:12 +0000 (23:54 +0000)]
MFC 281872:
Fix some incorrect #if conditions around older workarounds for bus
numbering goofs.

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

9 years agoMFC 266852,270223:
jhb [Fri, 22 May 2015 21:51:36 +0000 (21:51 +0000)]
MFC 266852,270223:
- Fix pf(4) to build with MAXCPU set to 256.  MAXCPU is actually a count,
  not a maximum ID value (so it is a cap on mp_ncpus, not mp_maxid).
- Bump MAXCPU on amd64 from 64 to 256.  In practice APIC only permits 255
  CPUs (IDs 0 through 254).  Getting above that limit requires x2APIC.

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

9 years agoMFC r281011 (jkim):
gjb [Fri, 22 May 2015 16:38:55 +0000 (16:38 +0000)]
MFC r281011 (jkim):
  Fix powerpc, powerpc64 build.

Sponsored by: The FreeBSD Foundation

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

9 years agoFix a i386 build failure cause by commit r283280.
whu [Fri, 22 May 2015 11:20:59 +0000 (11:20 +0000)]
Fix a i386 build failure cause by commit r283280.

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

9 years agoMFC r282212:
whu [Fri, 22 May 2015 09:03:55 +0000 (09:03 +0000)]
MFC r282212:

Microsoft vmbus, storage and other related driver enhancements for HyperV.
    - Vmbus multi channel support.
    - Vector interrupt support.
    - Signal optimization.
    - Storvsc driver performance improvement.
    - Scatter and gather support for storvsc driver.
    - Minor bug fix for KVP driver.
Thanks royger, jhb and delphij from FreeBSD community for the reviews
and comments. Also thanks Hovy Xu from NetApp for the contributions to
the storvsc driver.

PR:     195238
Submitted by:   whu
Reviewed by:    royger
Approved by:    royger
Relnotes:       yes
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D2575

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

9 years agoMFC r282944:
kib [Fri, 22 May 2015 08:11:31 +0000 (08:11 +0000)]
MFC r282944:
Decrement p_boundary_count in the single-threading thread, during making
other thread runnable.  This guarantees that upon return from the
thread_single_end(), p_boundary_count is zero.

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

9 years agoMFC r282613: MFV r282611: netcat from OpenBSD 5.7.
delphij [Thu, 21 May 2015 21:45:37 +0000 (21:45 +0000)]
MFC r282613: MFV r282611: netcat from OpenBSD 5.7.

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

9 years agoMFC r282863:
pfg [Thu, 21 May 2015 20:39:39 +0000 (20:39 +0000)]
MFC r282863:

Adjust visibility macros.

The GCC visibility attributes were introduced in GCC 4.0.
Apparently the "protected" attribute was introduced only
until GCC 4.2, but we are not currently using it.

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

9 years agoMFC r258431: Disable amd64 boot time memory test by default
emaste [Thu, 21 May 2015 19:40:31 +0000 (19:40 +0000)]
MFC r258431: Disable amd64 boot time memory test by default

  The page presence memory test takes a long time on large memory systems
  and has little value on contemporary amd64 hardware.

Relnotes: Yes
Reviewed by: jhb, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1544

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

9 years agoMFC r282144: crunchide: add basic string table sanity checks
emaste [Thu, 21 May 2015 19:16:28 +0000 (19:16 +0000)]
MFC r282144: crunchide: add basic string table sanity checks

Reported by: Coverity Scan
CID: 978805, 980919
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r282932: MFV r282927,r282928,r282930 (kientzle):
delphij [Thu, 21 May 2015 19:05:47 +0000 (19:05 +0000)]
MFC r282932: MFV r282927,r282928,r282930 (kientzle):

Don't segfault when reading malformed cpio archives.

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

9 years agoMFC r282608:
delphij [Thu, 21 May 2015 18:59:11 +0000 (18:59 +0000)]
MFC r282608:

date(1): Make -r behave like GNU's version when the option can not be
interpreted as a number, which checks the file's modification time and
use that as the date/time value.

This improves compatibility with GNU coreutils's version of date(1).

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

9 years agoMFC r282574:
bdrewery [Thu, 21 May 2015 16:44:31 +0000 (16:44 +0000)]
MFC r282574:

  Remove references to Giant in namei(9).  This was removed in r241896.

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

9 years agoMFC r279955:
trasz [Thu, 21 May 2015 13:42:37 +0000 (13:42 +0000)]
MFC r279955:

Add -noauto autofs map, for automatic handling of fstab entries
marked "noauto".

Relnotes: yes
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279954:
trasz [Thu, 21 May 2015 13:41:08 +0000 (13:41 +0000)]
MFC r279954:

Get executable direct maps to work.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279953:
trasz [Thu, 21 May 2015 13:39:38 +0000 (13:39 +0000)]
MFC r279953:

Rework the concat() algorithm to be correct in all cases.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279916:
trasz [Thu, 21 May 2015 13:37:48 +0000 (13:37 +0000)]
MFC r279916:

Make "automount -LL -o whatever" present options in the same order
as used by automountd(8).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279915:
trasz [Thu, 21 May 2015 13:36:00 +0000 (13:36 +0000)]
MFC r279915:

Make concat() accept NULL arguments.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279914:
trasz [Thu, 21 May 2015 13:34:33 +0000 (13:34 +0000)]
MFC r279914:

Options from auto_master must be appended to options from maps,
not prepended.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279851:
trasz [Thu, 21 May 2015 13:33:06 +0000 (13:33 +0000)]
MFC r279851:

Fix typo.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279846:
trasz [Thu, 21 May 2015 13:31:44 +0000 (13:31 +0000)]
MFC r279846:

Properly pass options for direct maps.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276774: ar: Avoid null pointer deref while reading corrupt archives
emaste [Thu, 21 May 2015 13:30:10 +0000 (13:30 +0000)]
MFC r276774: ar: Avoid null pointer deref while reading corrupt archives

  ELF Tool Chain ticket #467

Reported by: Alexander Cherepanov <cherepan@mccme.ru>
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279845:
trasz [Thu, 21 May 2015 13:29:34 +0000 (13:29 +0000)]
MFC r279845:

Fix handling of direct maps, broken in r275756.  Previously, running
automount(8) would unmount direct map trigger nodes every second time.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279843:
trasz [Thu, 21 May 2015 13:26:52 +0000 (13:26 +0000)]
MFC r279843:

Refactor.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279813:
trasz [Thu, 21 May 2015 13:25:28 +0000 (13:25 +0000)]
MFC r279813:

Make things more readable; no functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279812:
trasz [Thu, 21 May 2015 13:23:49 +0000 (13:23 +0000)]
MFC r279812:

Remove some particularly bad code; no functional changes.

MFC r279815:

Erm, revert chunk committed by mistake.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279808:
trasz [Thu, 21 May 2015 13:21:03 +0000 (13:21 +0000)]
MFC r279808:

Fix memory leak.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279807:
trasz [Thu, 21 May 2015 13:19:44 +0000 (13:19 +0000)]
MFC r279807:

Improve separated_concat() to properly handle the case of concatenating
"/" and "/foo".

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

9 years agoMFC r279806:
trasz [Thu, 21 May 2015 13:18:02 +0000 (13:18 +0000)]
MFC r279806:

Minor optimization/cleanup in node_path(); no functional changes.

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

9 years agoMFC r277171:
trasz [Thu, 21 May 2015 13:13:56 +0000 (13:13 +0000)]
MFC r277171:

Use newly added GEOM notifications to discard autofs caches.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276883:
trasz [Thu, 21 May 2015 13:11:48 +0000 (13:11 +0000)]
MFC r276883:

Improve documentation for autofs variables and executable maps;
also some markup fixes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r276833:
trasz [Thu, 21 May 2015 13:10:08 +0000 (13:10 +0000)]
MFC r276833:

Make /net use -intr by default.  Linux does that, and it seems a good idea.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275681:
trasz [Thu, 21 May 2015 13:08:30 +0000 (13:08 +0000)]
MFC r275681:

Add "-media" autofs map, to access data on removable media, such as CD
drives or flash keys.  It can be enabled by uncommenting a single entry
in default /etc/auto_master.  It can also be easily modified to use
fuse-based filesystems instead of in-kernel ones.

There is still one deficiency - the mountpoints are permanent, they
don't disappear when user removes the media.  Fixing it needs some
autofs changes.

Relnotes: yes
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC: r282269, r282277
royger [Thu, 21 May 2015 10:40:18 +0000 (10:40 +0000)]
MFC: r282269, r282277

atkbd: remove usage of x86bios
Remove leftover from r282269.

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

9 years agoMFC: r282908
royger [Thu, 21 May 2015 10:28:33 +0000 (10:28 +0000)]
MFC: r282908

netfront: wait for backend to connect before sending ARP

Sponsored by: Citrix Systems R&D

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

9 years agoMFC: r283051
arybchik [Thu, 21 May 2015 09:24:35 +0000 (09:24 +0000)]
MFC: r283051

sfxge: do not advertise LRO capability if LRO is compiled out

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r283050
arybchik [Thu, 21 May 2015 09:23:28 +0000 (09:23 +0000)]
MFC: r283050

sfxge: automatically turn off TSO when Tx checksum offload is disabled

Also return error if TSO is requested without Tx checksum offload.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r283049
arybchik [Thu, 21 May 2015 09:22:15 +0000 (09:22 +0000)]
MFC: r283049

sfxge: allow to disable checksum offloads over VLAN

It just affects capabilities of the created VLAN interface.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r283048
arybchik [Thu, 21 May 2015 09:21:05 +0000 (09:21 +0000)]
MFC: r283048

sfxge: fix overflow queue freeze

If TxQ lock is obtained, deferred packet list shold be serviced even if
the packet addition fails because of overflow.

Without the patch freeze happens if:
 - queue is not blocked (i.e. completion does not trigger unblock and service)
 - put-list overflow (1024 entries)
 - sfxge_tx_packet_add() acquires TxQ lock just as it is released it in
   sfxge_tx_qdpl_service() on the second CPU but before pending check
 - sfxge_tx_packet_add() swizzles put-list to get-list, fails because of
   non-tcp get-list overflow and returns without packet list service
 - sfxge_tx_qdpl_service() on the second CPU checks that there are no
   pending packets in the put-list and returns

Other possible solution is to guaranee that maximum length of the put-list
is less than maximum length of any get-list.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r283007
arybchik [Thu, 21 May 2015 09:15:19 +0000 (09:15 +0000)]
MFC: r283007

sfxge: avoid usage of ifm_data

The driver uses ifm_data to save capabilities mask calculated during
initialization when supported phy modes are discovered.
The patch simply calculates it when either media or options are changed.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r283000
arybchik [Thu, 21 May 2015 09:13:47 +0000 (09:13 +0000)]
MFC: r283000

sfxge: add local variable with changed capabilities mask

It is required for the next patch which adds dependency of TSO
capabilities from Tx checksum offloads.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r282998
arybchik [Thu, 21 May 2015 09:12:25 +0000 (09:12 +0000)]
MFC: r282998

sfxge: move mbuf free to sfxge_if_transmit()

It is a preparation to the next patch which will service packet queue
even if packet addtion fails.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r282997
arybchik [Thu, 21 May 2015 09:11:03 +0000 (09:11 +0000)]
MFC: r282997

sfxge: get rid of locked variable in sfxge_tx_packet_add()

Now each branch has one and only one possible TxQ lock state.
It simplifies understanding of the code.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r282996
arybchik [Thu, 21 May 2015 09:09:51 +0000 (09:09 +0000)]
MFC: r282996

sfxge: support Rx checksum offloads disabling

We can't disable it in HW, but we can ignore result.
Discard Rx descriptor checksum flags if Rx checksum offload is off.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r282942
arybchik [Thu, 21 May 2015 09:08:10 +0000 (09:08 +0000)]
MFC: r282942

sfxge: split sfxge_tx_qdpl_put() into *_locked() and *_unlocked()

It simplifies understanding of the sfxge_tx_packet_add() logic and
avoids passing of 'locked' to called function.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r282941
arybchik [Thu, 21 May 2015 09:06:41 +0000 (09:06 +0000)]
MFC: r282941

sfxge: do not change CSUM_TSO when IFCAP_TSOx is changed

It is simply not required since the kernel checks corresponding
IFCAP_TSOx capability and CSUM_TSO in hw-assisted offloads.
Note that CSUM_TSO is two bits (CSUM_IP_TSO|CSUM_IP6_TSO) and both bits
are set in IPv4 and IPv6 mbufs.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r282940
arybchik [Thu, 21 May 2015 09:05:13 +0000 (09:05 +0000)]
MFC: r282940

sfxge: LRO may be done only if checksums are OK

Also it is cheaper to check Rx descriptor flags than TCP protocol in IP
header.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r282903
arybchik [Thu, 21 May 2015 09:03:18 +0000 (09:03 +0000)]
MFC: r282903

sfxge: advertise IPv6 Rx and Tx checksum offload support

Tx checksum offload may be enabled/disabled.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r282900
arybchik [Thu, 21 May 2015 09:00:45 +0000 (09:00 +0000)]
MFC: r282900

sfxge: IPv4 Tx checksum offload may be disabled in fact

Split IFCAP_HWCSUM to IFCAP_RXCSUM and IFCAP_TXCSUM to highlight Tx and Rx.

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r282899
arybchik [Thu, 21 May 2015 08:59:03 +0000 (08:59 +0000)]
MFC: r282899

sfxge: add local variable with Rx descriptor flags

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC: r282897
arybchik [Thu, 21 May 2015 08:55:06 +0000 (08:55 +0000)]
MFC: r282897

sfxge: add missing const qualifier to sfxge_link_mode

Sponsored by:   Solarflare Communications, Inc.

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

9 years agoMFC r282594:
ae [Thu, 21 May 2015 08:28:35 +0000 (08:28 +0000)]
MFC r282594:
  m_dup() is supposed to give a writable copy of an mbuf chain. It uses
  m_dup_pkthdr(), that uses M_COPYFLAGS mask to copy m_flags field.
  If original mbuf chain has M_RDONLY flag, its copy also will have it.
  Reset this flag explicitly.

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

9 years agoMFC r282505:
hselasky [Thu, 21 May 2015 07:49:44 +0000 (07:49 +0000)]
MFC r282505:
Add new USB ID.

PR: 199843

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

9 years agoMFC r282017:
hselasky [Thu, 21 May 2015 07:48:06 +0000 (07:48 +0000)]
MFC r282017:
Allow DSP basename cloning to be disabled or enabled at boot and
runtime. This is useful when implementing OSS sound stacks in
userspace via libcuse for example.

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

9 years agoMFC r279726:
hselasky [Thu, 21 May 2015 07:41:03 +0000 (07:41 +0000)]
MFC r279726:
Add DA_Q_NO_RC16 quirk for USB mass storage device.

PR: 194062

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

9 years agoMFC r282645, r282646 and r282730:
hselasky [Thu, 21 May 2015 07:34:08 +0000 (07:34 +0000)]
MFC r282645, r282646 and r282730:
* Prevent switching to NULL or own window in the "vt_proc_window_switch"
  function. This fixes an issue where X11 keyboard input can appear
  stuck. The cause of the problem is a duplicate TTY device window
  switch IOCTL during boot, which leaves the "vt_switch_timer" running,
  because the current window is already selected. While at it factor out
  some NULL checks.
* The "SYSCTL_INT()" default value is only used for read only SYSCTLs
  and is not applicable unless the integer pointer is NULL. Set it to
  zero to avoid confusion. While at it remove extra semicolon at the end
  of the "VT_SYSCTL_INT()" macro.
* Ensure the result from signed subtraction under modulus does not
  become negative.

PR: 200032

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

9 years agoMFC r282652:
hselasky [Thu, 21 May 2015 07:10:49 +0000 (07:10 +0000)]
MFC r282652:
Ensure the USB audio driver doesn't attach twice on the same USB
device by grabbing all the USB audio device interfaces.

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

9 years agoMFC r282817:
hselasky [Thu, 21 May 2015 06:56:35 +0000 (06:56 +0000)]
MFC r282817:
Apply proper locking when iterating the multicast addresses and add a
missing check for NULL from a non-blocking "kzalloc()" function call.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r282577:
hselasky [Thu, 21 May 2015 06:47:20 +0000 (06:47 +0000)]
MFC r282577:
Add support for DYMO LabelWriter PnP.

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

9 years agoMFC r280495:
hselasky [Thu, 21 May 2015 06:30:44 +0000 (06:30 +0000)]
MFC r280495:
Implement a simple OID number garbage collector. Given the increasing
number of dynamically created and destroyed SYSCTLs during runtime it
is very likely that the current new OID number limit of 0x7fffffff can
be reached. Especially if dynamic OID creation and destruction results
from automatic tests. Additional changes:

- Optimize the typical use case by decrementing the next automatic OID
sequence number instead of incrementing it. This saves searching time
when inserting new OIDs into a fresh parent OID node.

- Add simple check for duplicate non-automatic OID numbers.

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

9 years agoMFC r282904: kbdmap(1): increase description size to 256 bytes
emaste [Thu, 21 May 2015 01:50:06 +0000 (01:50 +0000)]
MFC r282904: kbdmap(1): increase description size to 256 bytes

  After conversion to UTF-8 some INDEX.keymaps descriptions are longer
  than the previous limit of 64 bytes.

PR: 193656

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

9 years agoMFC INDEX.keymaps fixes
emaste [Thu, 21 May 2015 01:47:12 +0000 (01:47 +0000)]
MFC INDEX.keymaps fixes

r282898: Correct UTF-8 encoding in Británico

  One á was ISO 8859-1 0xE1 instead of UTF-8 0xC3 0xA1.

r282902: Correct language code -- "Danish" is English

  The menu entry "Danish ISO-8859-1 (macbook)" was first added to the
  syscons(4) INDEX.keymaps in r241851 with no language code, and then in
  r256367 incorrectly tagged with "da".  It is a Danish keyboard map, but
  the description is in English and therefore must be "en".

  This error subsequently propagated into the vt(4) INDEX.keymaps.

r282905: Restore 'he' language code for Hebrew kbdmap(1) menu title

r282914: kbdmap(1): Correct menu title: keyboards have a layout, not a language

PR: 146793, 193656

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

9 years agoMFC r282500, r282693:
gjb [Wed, 20 May 2015 19:32:57 +0000 (19:32 +0000)]
MFC r282500, r282693:
 r282500:
  Add initial support for building RPI2 images.

  In release.sh, allow overriding buildenv_setup() before
  the handoff to arm/release.sh.

  Copy arm/RPI-B.conf -> arm/RPI2.conf, set UBOOT_PORT and
  the correct KERNEL, and add the buildenv_setup() override
  to install the sysutils/u-boot-rpi2 port/package.

  Copy tools/arm/crochet-RPI-B.conf -> tools/arm/crochet-RPI2.conf,
  and set the correct entries for the RaspberryPi2 board.

 r282693:
  Merge ^/projects/release-arm-redux into ^/head.

  Of note:

  - This commit adds native FreeBSD/arm release build support without
    requiring out-of-tree utilities.

  - Part of this merge removes the WANDBOARD-{SOLO,DUAL,QUAD} kernel
    configuration files, for which the IMX6 kernel configuration file
    should be used instead.

  - The resulting images have a 'freebsd' user (password 'freebsd'),
    to allow ssh(1) access when console access is not available (VGA
    or serial).  The default 'root' user password is set to 'root'.

  - The /etc/ttys file for arm images now enable both ttyv0 and ttyu0
    by default.

Note:  The RPI2 kernel configuration does not yet exist in stable/10,
however the merge conflicts needed to be properly resolved.
Additionally, SRCBRANCH has been set to base/stable/10 in the updated
arm configuration files as part of this commit.

Sponsored by: The FreeBSD Foundation

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

9 years agoRecord mergeinfo for r282772, missed in r282877.
gjb [Wed, 20 May 2015 17:02:30 +0000 (17:02 +0000)]
Record mergeinfo for r282772, missed in r282877.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r282436 (the portion that makes sense):
brooks [Tue, 19 May 2015 19:01:52 +0000 (19:01 +0000)]
MFC r282436 (the portion that makes sense):

Remove "capability mode sandbox enabled" messages.

These messages serve little purpose and break some consumers.

PR: 199855
Differential Revision: https://reviews.freebsd.org/D2440
Reviewed by: rwatson
Approved by: pjd
Sponsored by: DARPA, AFRL

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

9 years agoMFC r279819:
delphij [Tue, 19 May 2015 08:00:39 +0000 (08:00 +0000)]
MFC r279819:

Fix CARP when in use in a HyperV environment:

 - Bump link state when stopping or starting the interface;
 - Don't handle SIOCGIFADDR specially, similar to r277103.

This change is based on a previous revision from Andy Zhang
(Microsoft) who did the diagnostic work and many thanks to
them for their help in supporting the HyperV work.

PR: kern/187203

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

9 years agoMFC r281959,282885 (fanf, partial),282888 (fanf):
delphij [Mon, 18 May 2015 21:27:46 +0000 (21:27 +0000)]
MFC r281959,282885 (fanf, partial),282888 (fanf):

Try alternate addresses more agressively.

PR:             158125
Submitted by:   Mark Andrews <marka isc org> (with changes from me)

whois: code cleanup

Use pedantically correct types.

whois: do not clobber command-line flags when tweaking O_NONBLOCK

This can make whois fail to follow referrals when it should.
The bug was introduced in r281959.

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

9 years agoMFC of 283079,tzdata10:
edwin [Mon, 18 May 2015 21:07:44 +0000 (21:07 +0000)]
MFC of 283079,tzdata10:

Update to tzdata2015d:

Release 2015d - 2015-04-24 08:09:46 -0700

  Changes affecting future time stamps

    Egypt will not observe DST in 2015 and will consider canceling it
    permanently.  For now, assume no DST indefinitely.
    (Thanks to Ahmed Nazmy and Tim Parenti.)

  Change affecting past and future time zone abbreviations

    The abbreviations for Hawaii-Aleutian standard and daylight times
    have been changed from HAST/HADT to HST/HDT, as per US Government
    Printing Office style.  This affects only America/Adak since 1983,
    as America/Honolulu was already using the new style.

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

9 years agoMFC r282921:
jimharris [Mon, 18 May 2015 19:48:41 +0000 (19:48 +0000)]
MFC r282921:

  Add nvme and nvd drivers to GENERIC for amd64 and i386.

Sponsored by: Intel

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

9 years agoMFC r281928:
ngie [Mon, 18 May 2015 10:45:18 +0000 (10:45 +0000)]
MFC r281928:

Avoid an infinite loop by ensuring that the amount of bytes read is greater
than 0 in MDXFileChunk when calculating the checksum

This edgecase can be triggered if the file is truncated while the checksum
is being calculated (i.e. the EOF is reached)

Differential Revision: https://reviews.freebsd.org/D2351 (patch by darius)
PR: 196694
Reviewed by: delphij, ngie
Submitted by: Daniel O'Connor <darius@dons.net.au>
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC of 283042,tzdata10:
edwin [Mon, 18 May 2015 02:05:56 +0000 (02:05 +0000)]
MFC of 283042,tzdata10:

Update to tzdata2015c:

    Release 2015c - 2015-04-11 08:55:55 -0700

    Changes affecting future time stamps

    Egypt's spring-forward transition is at 24:00 on April's last Thursday,
    not 00:00 on April's last Friday.  2015's transition will therefore be on
    Thursday, April 30 at 24:00, not Friday, April 24 at 00:00.  Similar fixes
    apply to 2026, 2037, 2043, etc.  (Thanks to Steffen Thorsen.)

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

9 years agoFor clang 3.4.1, when using -fformat-extensions, and warning about the
dim [Sun, 17 May 2015 20:38:01 +0000 (20:38 +0000)]
For clang 3.4.1, when using -fformat-extensions, and warning about the
FreeBSD-specific %D and %b printf format specifiers, avoid possible
argument overruns.  Also reduce the differences with the version added
in r280031 (which has been sent upstream).

Direct commit to stable/10, since head already has clang 3.6.0.

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

9 years agoMFC r282061:
ngie [Sat, 16 May 2015 23:39:54 +0000 (23:39 +0000)]
MFC r282061:

Integrate tools/regression/execve into the FreeBSD test suite as
tests/sys/kern/execve

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

9 years agoMFC r282747:
ngie [Sat, 16 May 2015 22:36:19 +0000 (22:36 +0000)]
MFC r282747:

Use MIN from sys/param.h instead of handrolling the macro

Replace sys/types.h with sys/param.h per-style(9)

Sponsored by: EMC / Isilon Storage Division

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

9 years agoBring the contrib/llvm/patches directory up-to-date.
dim [Sat, 16 May 2015 22:06:40 +0000 (22:06 +0000)]
Bring the contrib/llvm/patches directory up-to-date.

MFC r263892:
Add the llvm/clang patch for r263891.

MFC r264350:
Update the llvm/clang patch for r264345.

MFC r266675:
Add the clang patch for r266674.

MFC r275651:
Add llvm patch corresponding to r275633.

MFC r275747:
Update llvm patches for r274286 and r275633 so all the tests will pass.

MFC r275760:
Add clang patch corresponding to r275759.

MFC r275772:
Update clang patch for r275759 to use correct test cases.

Additionally:
* Remove the clang patch corresponding to r263619, as ARM EABI
  hard-float support was never MFC'd.
* Add clang patch corresponding to r279302.

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

9 years agoMFC r282115, r282152, r282201
pfg [Sat, 16 May 2015 15:44:13 +0000 (15:44 +0000)]
MFC r282115, r282152, r282201
MFV r282150
libgomp: Update to version 4.3.5.
bring initial BSD support from upstream.

This was not meant to be MFC'd at first but the original OMP support
for FreeBSD was in very poor shape.  The effect of this change should
be minimal as all ports are already using the version of libgomp that
comes with the gcc ports. The local libgomp is planned to be disabled
for platforms that are not using older gcc by default so this version
of libgomp will not be shipped in tier-1 platform releases.

Discussed with: emaste

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

9 years agoMFC r282679:
kib [Sat, 16 May 2015 09:13:56 +0000 (09:13 +0000)]
MFC r282679:
Do not return from thread_single(SINGLE_BOUNDARY) until all stopped
thread are guarenteed to be removed from the processors.

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

9 years agoMFC r282880:
smh [Sat, 16 May 2015 01:13:37 +0000 (01:13 +0000)]
MFC r282880:

Add copyright info missing from r282205

Sponsored by: Multiplay

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

9 years agoMFH: r282485
julian [Fri, 15 May 2015 15:49:24 +0000 (15:49 +0000)]
MFH: r282485
  Tweak seekdir, telldir and readdir so that when htere are deletes going on,
  as seek to teh last location saved will still work. This is needed for Samba
  to be able to correctly handle delete requests from windows. This does not
  completely fix seekdir when deletes are present but fixes the worst of the
  problems. The real solution must involve some changes to the API for eh VFS
  and getdirentries(2).

  Obtained from: Panzura inc
MFH: r282550 (jhb@)
  A few style fixes and expand the comment a bit on what _fixtelldir() is
  doing.
MFH: r282560 (jhb@)
  Tweak the comment here some more.  In particular, the previous opening
  sentence was a bit confusing.
  Noted by: kib

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

9 years agoMFC r279316:
trasz [Fri, 15 May 2015 15:13:51 +0000 (15:13 +0000)]
MFC r279316:

Add uefisign(8) reference to uefi(8) manual page.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279321:
trasz [Fri, 15 May 2015 15:12:12 +0000 (15:12 +0000)]
MFC r279321:

Make the uefikeys script output slightly more obvious.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279317:
trasz [Fri, 15 May 2015 15:10:34 +0000 (15:10 +0000)]
MFC r279317:

Add key/cert generation script for uefisign(8).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279315:
trasz [Fri, 15 May 2015 15:08:37 +0000 (15:08 +0000)]
MFC r279315:

Add uefisign(8), UEFI Secure Boot signing utility.

Relnotes: yes
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279821:
jch [Fri, 15 May 2015 12:35:18 +0000 (12:35 +0000)]
MFC r279821:

    In TCP, connect() can return incorrect error code EINVAL
    instead of EADDRINUSE or ECONNREFUSED

    PR:                         196035
    Differential Revision:      https://reviews.freebsd.org/D1982
    Reported by:                Mark Nunberg <mnunberg@haskalah.org>
    Submitted by:               Harrison Grundy <harrison.grundy@astrodoggroup.com>
    Reviewed by:                adrian, jch, glebius, gnn
    Approved by:                jhb

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

9 years agoMFC: r280904, r280990, r281599
jch [Fri, 15 May 2015 12:07:43 +0000 (12:07 +0000)]
MFC: r280904, r280990, r281599

r280904:
    Use appropriate timeout_t* instead of void* in tcp_timer_activate()

    Suggested by:               imp
    Differential Revision:      https://reviews.freebsd.org/D2154
    Reviewed by:                imp, jhb
    Approved by:                jhb

r280990:
    Provide better debugging information in tcp_timer_activate() and
    tcp_timer_active()

    Differential Revision:      https://reviews.freebsd.org/D2179
    Suggested by:               bz
    Reviewed by:                jhb
    Approved by:                jhb

r281599:
    Fix an old and well-documented use-after-free race condition in
    TCP timers:
     - Add a reference from tcpcb to its inpcb
     - Defer tcpcb deletion until TCP timers have finished

    Differential Revision:      https://reviews.freebsd.org/D2079
    Submitted by:               jch, Marc De La Gueronniere <mdelagueronniere@verisign.com>
    Reviewed by:                imp, rrs, adrian, jhb, bz
    Approved by:                jhb
    Sponsored by:               Verisign, Inc.

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

9 years agoMFC r281265:
trasz [Fri, 15 May 2015 11:10:01 +0000 (11:10 +0000)]
MFC r281265:

Add a hint that "device ctl" kind of depends on "device iscsi".

It actually doesn't - "device ctl" automatically pulls in ICL, which
would normally be a part of iscsi.ko.  However, doing it that way makes
iscsi.ko unloadable, and building ctl.ko without iscsi.ko (using
MODULES_OVERRIDE) results in ctl.ko that is unloadable, due to missing
symbols that would be resolved to iscsi.ko.  And since the symbols
are named "icl_whatever", it's not obvious that it's iscsi.ko that's
required.

If there is a better way - let me know.

Sponsored by: The FreeBSD Foundation

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