]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
9 years agoMFC: r272243
nyan [Mon, 3 Nov 2014 05:36:12 +0000 (05:36 +0000)]
MFC: r272243

  Add missing library dependencies.

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

9 years agoMFC 273834:
jhb [Mon, 3 Nov 2014 00:13:20 +0000 (00:13 +0000)]
MFC 273834:
Rework the EXAMPLES section to be a bit clearer.
- Add an example of using etcupdate diff.
- Create a subsection on bootstrapping that is below the simple
  examples.  This should make it clearer that 'etcupdate extract' is
  a one-time operation and not part of the common workflow.  It also
  adds more suggestions on when bootstrapping is needed and additional
  steps to make future merges simpler.

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

9 years agoMFC 273644,273738:
jhb [Sun, 2 Nov 2014 23:22:22 +0000 (23:22 +0000)]
MFC 273644,273738:
Clarify that pthread_cleanup_push()/pop() are implemented as macros that
create a new code block and thus must be balanced at the same lexical
scope.  (This is also a requirement in POSIX.)

PR: 194280
Submitted by: dr2867.business@pacbell.net

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

9 years agoMFC r273837:
dim [Sat, 1 Nov 2014 13:45:01 +0000 (13:45 +0000)]
MFC r273837:

Fix a clang 3.5 warning about abs(3) being given an argument of type
quad_t in setusercontext().  While here, sanitize the clamping of the
priority value, and use the correct type for the return value of
login_getcapnum().

Reviewed by: kib

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

9 years agoMFC r273733, r273740 and r273773:
hselasky [Fri, 31 Oct 2014 18:53:16 +0000 (18:53 +0000)]
MFC r273733, r273740 and r273773:

The SYSCTL data pointers can come from userspace and must not be
directly accessed. Although this will work on some platforms, it can
throw an exception if the pointer is invalid and then panic the kernel.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r271975:
hselasky [Fri, 31 Oct 2014 18:42:56 +0000 (18:42 +0000)]
MFC r271975:
Improvements to asmc(4):

1. changed the code so that 2**16 keys are supported
2. changed the number of possible fans in a system from 2 to 6
3. added write support for some fan sysctls
4. added a new sysctl which shows the ID of the fan
5. added four more apple models with their temperature keys
6. changed the maxnumber of temperature keys from 36 to 80
7. replaced several fixed buf sizes to sizeof buf

Obtained from:      Denis Ahrens denis at h3q.com

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

9 years agoMFC r228478, r263710, r273377, r273378, r273423, r273455 and r273899:
hselasky [Fri, 31 Oct 2014 18:18:04 +0000 (18:18 +0000)]
MFC r228478, r263710, r273377, r273378, r273423, r273455 and r273899:
- Reimplement CTASSERT() using _Static_assert().
- De-vnet hash sizes and hash masks.
- Fix multiple issues related to arguments passed to SYSCTL macros.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r264801, r264802, r264934, r273181, r273216 and r273252:
hselasky [Fri, 31 Oct 2014 08:14:13 +0000 (08:14 +0000)]
MFC r264801, r264802, r264934, r273181, r273216 and r273252:
Add more USB IDs.

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

9 years agoMFC r269575, r269576 and r269578:
hselasky [Fri, 31 Oct 2014 08:12:04 +0000 (08:12 +0000)]
MFC r269575, r269576 and r269578:
- Add a second Huawei SCSI eject command as USB mode switch config files
sometimes use one or the other. Maybe newer Huawei modems switched.
- Return USB_ERR_INVAL if the eject method is not known.

PR: 145319

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

9 years agoMFC r250986:
hselasky [Fri, 31 Oct 2014 08:10:26 +0000 (08:10 +0000)]
MFC r250986:
Fix some statical clang analyzer warnings.

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

9 years agoMFC r246360:
hselasky [Fri, 31 Oct 2014 08:06:21 +0000 (08:06 +0000)]
MFC r246360:
Fix some nits.

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

9 years agoMFC r264923:
hselasky [Fri, 31 Oct 2014 08:00:22 +0000 (08:00 +0000)]
MFC r264923:
Remove device type from the uftdi_devs table, enhance the jtag-skip feature.

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

9 years agoMFC r269569:
hselasky [Fri, 31 Oct 2014 07:59:07 +0000 (07:59 +0000)]
MFC r269569:
Remove unused defines.
Fix some device_printf's that were missing '\n' at the end or had
spelling errors.

PR: 145319

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

9 years agoMFC r273593:
hselasky [Fri, 31 Oct 2014 07:18:27 +0000 (07:18 +0000)]
MFC r273593:

Update the network interface baudrate integer according to the actual
line rate.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r273135 and r273867:
hselasky [Thu, 30 Oct 2014 17:05:32 +0000 (17:05 +0000)]
MFC r273135 and r273867:
Update the OFED Linux compatibility layer and
Mellanox hardware driver(s):

- Properly name an inclusion guard.
- Fix compile warnings regarding unsigned enums.
- Fix compile warning regarding unused variable.
- Add two new sysctl nodes.
- Remove all empty linux header files.
- Make an error printout more verbose.
- Use "mod_delayed_work()" instead of
  cancelling and starting a timeout.
- Implement more Linux scatterlist
  functions.
- Don't forget to add "options OFED" to
  the kernel configuration file before
  using infiniband.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r254122, r254123, r256116, r255970, r247671, r269861, r268314, r256269,
hselasky [Thu, 30 Oct 2014 15:41:25 +0000 (15:41 +0000)]
MFC r254122, r254123, r256116, r255970, r247671, r269861, r268314, r256269,
  r255969, r256179, r230135, r254121, r255932, r255972, r255973, r256281,
  r256470, r257867, r259608, r269862, r271127, r272407, r257864, r256682,
  r258276, r254734, r247675, r254735 and r272683:

Hardware driver update from Mellanox Technologies, including:
 - improved performance
 - better stability
 - new features
 - bugfixes

Supported HCAs:
 - ConnectX-2
 - ConnectX-3
 - ConnectX-3 Pro

NOTE:
  - TSO feature needs r271946, which is not yet merged.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r272770 (modified version):
ae [Thu, 30 Oct 2014 13:59:28 +0000 (13:59 +0000)]
MFC r272770 (modified version):
  When tunneling interface is going to insert mbuf into netisr queue after stripping
  outer header, consider it as new packet and clear the protocols flags.

  This fixes problems when IPSEC traffic goes through various tunnels and router
  doesn't send ICMP/ICMPv6 errors.

PR: 174602
Sponsored by: Yandex LLC

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

9 years agoMFC r272746:
ae [Wed, 29 Oct 2014 11:47:04 +0000 (11:47 +0000)]
MFC r272746:
  Add an ability to set dumpdev via loader(8) tunable.

MFC r272747:
  Revert r156046. We support setting dumpdev via loader tunable again.
  Also change default disk name to ada.

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

9 years agoMerge upstream r825: fix line continuation in whitespace
des [Tue, 28 Oct 2014 18:19:22 +0000 (18:19 +0000)]
Merge upstream r825: fix line continuation in whitespace

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

9 years agoMFC r273359:
yongari [Tue, 28 Oct 2014 00:44:20 +0000 (00:44 +0000)]
MFC r273359:
  It seems multicast filtering of RTL8168F does not work.  Workaround
  the silicon bug by accepting any multicast packets.

  PR: 193488

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

9 years agoMFC r273328: Add another PCI ID for JMB368 PATA controller.
mav [Mon, 27 Oct 2014 07:21:37 +0000 (07:21 +0000)]
MFC r273328: Add another PCI ID for JMB368 PATA controller.

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

9 years agoMFC of 267473,tzdata2014e
edwin [Mon, 27 Oct 2014 06:12:29 +0000 (06:12 +0000)]
MFC of 267473,tzdata2014e

Fix historical data for Egypt.
Better prediction for future Egypt / Morocco changes.
Update to Cocos / Cook islands.
Fix historical data for Russia.

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

9 years agoMFC of 273718, tzdata2014i
edwin [Mon, 27 Oct 2014 06:12:10 +0000 (06:12 +0000)]
MFC of 273718, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.

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

9 years agoMFC r270643, r273448:
kevlo [Sat, 25 Oct 2014 15:14:19 +0000 (15:14 +0000)]
MFC r270643, r273448:
- Fix typo: s/mac_rev/mac_ver/
- Fix the kernel panic in hostap mode.
  rvp->beacon_mbuf was NULL in run_update_beacon().

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

9 years agoMFC r258902:
markj [Fri, 24 Oct 2014 17:24:29 +0000 (17:24 +0000)]
MFC r258902:
The uaddr, ufunc, umod and usym functions all seem to work as expected on
FreeBSD, so stop hiding them behind a "#if defined(sun)".

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

9 years agoMFC 272763:
markj [Thu, 23 Oct 2014 18:48:43 +0000 (18:48 +0000)]
MFC 272763:
If we fail to send a signal after rotation, print the pidfile from which
the corresponding PID was obtained.

PR:           194143

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

9 years agoMFC r271692:
markj [Wed, 22 Oct 2014 23:55:06 +0000 (23:55 +0000)]
MFC r271692:
Fix a typo.

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

9 years agoDocument the following security advisories:
gjb [Tue, 21 Oct 2014 21:44:24 +0000 (21:44 +0000)]
Document the following security advisories:
 FreeBSD-SA-14:20.rtsold
 FreeBSD-SA-14:21.routed
 FreeBSD-SA-14:22.namei
 FreeBSD-SA-14:23.openssl

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

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

9 years agoBump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
gjb [Tue, 21 Oct 2014 21:37:53 +0000 (21:37 +0000)]
Bump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
SA-14:23

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

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

9 years agoMFC r272833 (des):
delphij [Tue, 21 Oct 2014 21:11:25 +0000 (21:11 +0000)]
MFC r272833 (des):

Two more places where login_setcryptfmt() defaults to MD5 were missed
in r252688.

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

9 years agoMFC r272830 (des):
delphij [Tue, 21 Oct 2014 21:09:54 +0000 (21:09 +0000)]
MFC r272830 (des):

Change the hardcoded default back from SHA512 to DES.

This will become EN-14:11.crypt.

PR: 192277

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

9 years agoFix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]
delphij [Tue, 21 Oct 2014 20:20:17 +0000 (20:20 +0000)]
Fix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]

Fix routed(8) remote denial of service vulnerability. [SA-14:21]

Fix memory leak in sandboxed namei lookup. [SA-14:22]

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

9 years agoMFC revisions 253175, 268999, 269027, 269351-269352, 269354, 269460,
dteske [Tue, 21 Oct 2014 18:31:08 +0000 (18:31 +0000)]
MFC revisions 253175, 268999, 269027, 269351-269352, 269354, 269460,
270283, 270505, 270954, 270989, 273067, and 273068:
r253175: Introduce f_which() to common.subr
r268999: Add new bsdconfig example scripts; remove obsolete ones
r269027: Update bsdconfig dot module; fixes and enhancements
r269351: Add setvar() for non-FreeBSD platforms using bash as /bin/sh
r269352: Fix syntax error when run under bash
r269354: Update setvar() function introduced in r269351
r269460: Update f_xdialog_info() in bsdconfig's dialog.subr include
r270283: Add `-A' flag to pkg-install(8) when installing dependencies
r270505: Optimize f_which() to be slightly faster still (common.subr)
r270954: Update f_dialog_init() for safer getopts usage (dialog.subr)
r270989: Fix for previously mentioned r270954
r273067: Fix awk(1) asorti() implementation to work when called in a loop
r273068: Rename awk(1) asorti() to prevent conflict with GNU awk(1)

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

9 years agoMFC r271287:
brooks [Tue, 21 Oct 2014 16:44:03 +0000 (16:44 +0000)]
MFC r271287:

Merge from NetBSD:

PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings
gracefully.  (don't abuse 0 to mean compute string length internally)

PR: 193447
Submitted by: Conrad Meyer <conrad.meyer@isilon.com>

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

9 years agoMFC: r273034
brueffer [Tue, 21 Oct 2014 13:09:52 +0000 (13:09 +0000)]
MFC: r273034

Add one more AMD Kaveri APU device ID.

Submitted by: Remy Nonnenmacher <remy.nonnenmacher@activnetworks.com>

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

9 years agoMFC r272731:
yongari [Tue, 21 Oct 2014 04:55:55 +0000 (04:55 +0000)]
MFC r272731:
  Document newly added controller AR816x/AR817x.

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

9 years agoMFC r272730,273018:
yongari [Tue, 21 Oct 2014 04:50:07 +0000 (04:50 +0000)]
MFC r272730,273018:
  Add support for QAC AR816x/AR817x Gigabit/Fast Ethernet controllers.
  These controllers seem to have the same feature of AR813x/AR815x and
  improved RSS support(4 TX queues and 8 RX queues).  alc(4) supports
  all hardware features except RSS.  I didn't implement RX checksum
  offloading for AR816x/AR817x just because I couldn't get
  confirmation from the Vendor whether AR816x/AR817x corrected its
  predecessor's RX checksum offloading bug on fragmented packets.
  This change adds supports for the following controllers.
   o AR8161 PCIe Gigabit Ethernet controller
   o AR8162 PCIe Fast Ethernet controller
   o AR8171 PCIe Gigabit Ethernet controller
   o AR8172 PCIe Fast Ethernet controller
   o Killer E2200 Gigabit Ethernet controller

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

9 years agoMFC r272729,272732:
yongari [Tue, 21 Oct 2014 01:49:07 +0000 (01:49 +0000)]
MFC r272729,272732:
  Add new quirk PCI_QUIRK_MSI_INTX_BUG to pci(4).
  QAC AR816x/E2200 controller has a silicon bug that MSI interrupt
  does not assert if PCIM_CMD_INTxDIS bit of command register is set.

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

9 years agoMFC r272721:
yongari [Tue, 21 Oct 2014 01:15:43 +0000 (01:15 +0000)]
MFC r272721:
  Fix a long standing bug in MAC statistics register access.  One
  additional register was erroneously added in the MAC register set
  such that 7 TX statistics counters were wrong.

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

9 years agoMFC r271073:
yongari [Mon, 20 Oct 2014 07:27:34 +0000 (07:27 +0000)]
MFC r271073:
  Do not blindly announce 1000baseT half-duplex capability in
  autonegotiation.  Some controllers like cgem(4) do not support
  half-duplex at gigabit speeds.

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

9 years agoMFC 272668:
jhb [Fri, 17 Oct 2014 19:55:12 +0000 (19:55 +0000)]
MFC 272668:
Properly set the timeout in a query_state.  The global query_timeout
configuration value is an integer count of seconds, it is not a timeval.
Using memcpy() to copy a timeval from it put garbage into the tv_usec
field.

PR: 194025

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

9 years agoMFC 272449:
jhb [Fri, 17 Oct 2014 19:28:21 +0000 (19:28 +0000)]
MFC 272449:
Require p_cansched() for changing a process' protection status via
procctl() rather than p_cansee().

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

9 years agoMFC 272182:
jhb [Fri, 17 Oct 2014 15:29:47 +0000 (15:29 +0000)]
MFC 272182:
Don't panic if a resource is allocated twice.  Instead, print a warning and
fail the allocation request.  Allocations of "reserved" resources such as
PCI BARs already fail the request instead of panic'ing in this case.

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

9 years agoMerge OpenSSL 0.9.8zc.
jkim [Wed, 15 Oct 2014 20:28:31 +0000 (20:28 +0000)]
Merge OpenSSL 0.9.8zc.

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

9 years agoMake kern.nswbuf tunable from loader.
jkim [Wed, 15 Oct 2014 19:46:49 +0000 (19:46 +0000)]
Make kern.nswbuf tunable from loader.

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

9 years agoProperly cast nswbuf to long.
jkim [Wed, 15 Oct 2014 19:41:51 +0000 (19:41 +0000)]
Properly cast nswbuf to long.

Note this is a direct commit to stable/9 because head was fixed with vmem(9)
commit (r252330).

Reported by: John Hood (jhood at niksun dot com)

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

9 years agoMFC r272756: Properly report 12Gbps connection rate.
mav [Wed, 15 Oct 2014 08:04:43 +0000 (08:04 +0000)]
MFC r272756:  Properly report 12Gbps connection rate.

Reviewed by: kadesai, slm

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

9 years agoMFC r272749:
ae [Wed, 15 Oct 2014 05:22:48 +0000 (05:22 +0000)]
MFC r272749:
  Fix comment.

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

9 years agoMFC r272487:
ae [Sat, 11 Oct 2014 06:22:57 +0000 (06:22 +0000)]
MFC r272487:
  Add UUID of FreeBSD slice to GPT scheme.

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

9 years agoMFC r272762: Correct scale factor for T terabyte suffix
emaste [Sat, 11 Oct 2014 01:00:37 +0000 (01:00 +0000)]
MFC r272762: Correct scale factor for T terabyte suffix

PR: 194250

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

9 years agoMFC r271879:
pfg [Fri, 10 Oct 2014 23:19:34 +0000 (23:19 +0000)]
MFC r271879:
awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

PR: 193147

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

9 years agoMFC r238273 (by hrs):
ae [Thu, 9 Oct 2014 03:07:13 +0000 (03:07 +0000)]
MFC r238273 (by hrs):
  Remove "prefer_source" address selection option.  FreeBSD has had an
  implementation of RFC 3484 for this purpose for a long time and "prefer_source"
  was never implemented actually.  ND6_IFF_PREFER_SOURCE macro is left intact.

MFC r271307:
  Add the ability to set `prefer_source' flag to an IPv6 address.
  It affects the IPv6 source address selection algorithm (RFC 6724)
  and allows override the last rule ("longest matching prefix") for
  choosing among equivalent addresses. The address with `prefer_source'
  will be preferred source address.

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

9 years agoRevert botched r272755.
brooks [Wed, 8 Oct 2014 16:35:57 +0000 (16:35 +0000)]
Revert botched r272755.

PR: 193447

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

9 years agoMFC r272273, r272387, r272443, r272533 :
pfg [Wed, 8 Oct 2014 16:32:01 +0000 (16:32 +0000)]
MFC r272273, r272387, r272443, r272533 :

Add strptime(3) support for %U and %W

Add support for the missing POSIX-2001 %U and %W features: the
existing FreeBSD strptime code recognizes both directives and
validates that the week number lies in the permitted range,
but then simply discards the value.

Initial support for the feature was written by Paul Green.
David Carlier added the initial handling of tm_wday/tm_yday.
Major credit goes to Andrey Chernov for detecting much of the
brokenness and rewriting/cleaning most of the code, making it
much more robust.

Tested independently with the strptime test from the GNU C
library.

PR: 137307
Relnotes: yes

MFC r272441 :

strptime: %s format fix.

Almost never needed in real life because %s is tends to be
only one format spec.
1) Return code of gmtime_r() is checked.
2) All flags are set.

Submitted by: ache

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

9 years agoMFC r271287:
brooks [Wed, 8 Oct 2014 15:58:28 +0000 (15:58 +0000)]
MFC r271287:

Merge from NetBSD:

PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings
gracefully.  (don't abuse 0 to mean compute string length internally)

PR: 193447
Submitted by: Conrad Meyer <conrad.meyer@isilon.com>

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

9 years agoMFC 272550:
bryanv [Wed, 8 Oct 2014 04:11:05 +0000 (04:11 +0000)]
MFC 272550:

  Remove stray uma_mtx lock/unlock in zone_drain_wait()

  Callers of zone_drain_wait(M_WAITOK) do not need to hold (and were not)
  the uma_mtx, but we would attempt to unlock and relock the mutex if we
  had to sleep because the zone was already draining. The M_NOWAIT callers
  may hold the uma_mtx, but we do not sleep in that case.

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

9 years agoMFC r265232
asomers [Tue, 7 Oct 2014 15:21:20 +0000 (15:21 +0000)]
MFC r265232

Fix a panic caused by doing "ifconfig -am" while a lagg is being destroyed.
The thread that is destroying the lagg has already set sc->sc_psc=NULL when
the "ifconfig -am" thread gets to lacp_req().  It tries to dereference
sc->sc_psc and panics.  The solution is for lacp_req() to check the value of
sc->sc_psc.  If NULL, harmlessly return an lacp_opreq structure full of
zeros.  Full details in GNATS.

PR:   189003

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

9 years agoMFC r235978: device_add_child: protect against child device with no
avg [Tue, 7 Oct 2014 13:47:54 +0000 (13:47 +0000)]
MFC r235978: device_add_child: protect against child device with no
driver but fixed unit number

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

9 years agoMFC r246531: zfs: update comments about zfid_long_t to match the FreeBSD definitions
avg [Tue, 7 Oct 2014 13:42:34 +0000 (13:42 +0000)]
MFC r246531: zfs: update comments about zfid_long_t to match the FreeBSD definitions

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

9 years agoMFC r271609: add gptzfsboot.8, zfsboot.8 and zfsloader.8 manual pages
avg [Tue, 7 Oct 2014 13:37:10 +0000 (13:37 +0000)]
MFC r271609: add gptzfsboot.8, zfsboot.8 and zfsloader.8 manual pages

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

9 years agoMFC r261894: move devd rules for zfs events into a separate file
avg [Tue, 7 Oct 2014 13:30:42 +0000 (13:30 +0000)]
MFC r261894: move devd rules for zfs events into a separate file

... and fix stale event types

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

9 years agoMFC r261893: zfs.8: fix garbled options in a sample zfs send -R command line
avg [Tue, 7 Oct 2014 13:24:07 +0000 (13:24 +0000)]
MFC r261893: zfs.8: fix garbled options in a sample zfs send -R command line

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

9 years agoMFC r261892: zpool.8: fix typo in option description of labelclear command
avg [Tue, 7 Oct 2014 13:20:28 +0000 (13:20 +0000)]
MFC r261892: zpool.8: fix typo in option description of labelclear command

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

9 years agoMFC r272176:
ae [Tue, 7 Oct 2014 08:19:21 +0000 (08:19 +0000)]
MFC r272176:
  Keep list of lagg ports sorted by if_index.

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

9 years agoMake external NFS clients know when files have their attributes changed and
araujo [Tue, 7 Oct 2014 06:00:32 +0000 (06:00 +0000)]
Make external NFS clients know when files have their attributes changed and
avoid cache the file's state indefinitely. The va_filerev is what is sent
to the client as the "change" attribute, the client is periodically fetching
the attributes and without this option the attribute remains as some garbage
value.

Phabric: D905
Reported by: Kevin Buhr <buhr@asaurus.net>
Reviewed by: rmacklem, delphij
Approved by: delphij
Obtained from: r272467
Sponsored by: QNAP Systems Inc.

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

9 years agoAccount for the mapped pages in the kernel_pmap on x86 in
kib [Mon, 6 Oct 2014 18:15:13 +0000 (18:15 +0000)]
Account for the mapped pages in the kernel_pmap on x86 in
pmap_mapdev().  The pmap_unmapdev() on stable/9 calls pmap_remove() to
clear the range, which decrements kernel_pmap.pm_stats.resident_count.
Misaccounting causes miscellaneous failures, since pmap_remove() tests
the counter for zero and does nothing.

This is direct commit to stable/9, since HEAD and stable/10 use vmem
and do not utilize pmap_remove() etc.

Based on the submission by: Kohji Okuno <okuno.kohji at jp.panasonic.com>

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

9 years agoMFC r272480:
hselasky [Mon, 6 Oct 2014 06:07:02 +0000 (06:07 +0000)]
MFC r272480:
When we fail to get a USB reference we should just return, because
there are no more references held.

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

9 years agoMFC r272349, r272422 and r272479:
hselasky [Mon, 6 Oct 2014 05:58:16 +0000 (05:58 +0000)]
MFC r272349, r272422 and r272479:
- Fix XHCI driver for devices which have more than 15 physical root HUB
  ports. The current bitmap array was too small to hold more than 16
  bits and would at some point toggle the context size, which then would
  trigger an enumeration fault and cause a fallback to the EHCI
  companion controller, if any.
- Make sure we always set the maximum number of valid contexts.
- Set default cycle state in case of early interrupts.

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

9 years agoMFC r271424,r272579:
bdrewery [Mon, 6 Oct 2014 00:31:31 +0000 (00:31 +0000)]
MFC r271424,r272579:

    - Add $netif_ipexpand_max to specify the upper limit for the number of
      addresses generated by an address range specification.  The default value
      is 2048.  This can be increased by setting $netif_ipexpand_max in
      rc.conf.
    - Bump .Dd missed in r271424

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

9 years agoRevert r272532,
pfg [Sat, 4 Oct 2014 20:35:07 +0000 (20:35 +0000)]
Revert r272532,

It broke the build.

Pointyhat: me

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

9 years agoMFC r271467, r271468:
pfg [Sat, 4 Oct 2014 17:49:36 +0000 (17:49 +0000)]
MFC r271467, r271468:
ext2fs: add ext2_getpages().

Literally copy/pasted from ffs_getpages().

Tested with: fsx

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

9 years agoMFC r272288,272289:
delphij [Thu, 2 Oct 2014 18:32:17 +0000 (18:32 +0000)]
MFC r272288,272289:

When setting environment variables in the atrun script, use the
"export foo=bar" form instead of "foo=bar; export foo" since the
former allows the shell to catch variable names that are not valid
shell identifiers.  This will cause /bin/sh to exit with an error
(which gets mailed to the at user) and it will not run the script.

Obtained from: OpenBSD (r1.63 millert)

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

9 years agoMFC r271720:
bdrewery [Thu, 2 Oct 2014 18:12:18 +0000 (18:12 +0000)]
MFC r271720:

  If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fix a
  FILE* leak in getbounds().

PR: 192032

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

9 years agoMFC r272028:
bdrewery [Thu, 2 Oct 2014 18:09:31 +0000 (18:09 +0000)]
MFC r272028:

  Make it more explicitly clear that -t will not change filename.

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

9 years agoMFC r271321:
bdrewery [Thu, 2 Oct 2014 18:05:53 +0000 (18:05 +0000)]
MFC r271321:

  Don't cross mount boundaries when cleaning tmp files.

Relnotes: yes

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

9 years agoMFC r270183:
bdrewery [Thu, 2 Oct 2014 18:00:16 +0000 (18:00 +0000)]
MFC r270183:

  Avoid showing stale errors when nmount(2) fails.

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

9 years agoMFC r272389:
delphij [Thu, 2 Oct 2014 17:42:02 +0000 (17:42 +0000)]
MFC r272389:

Diff reduction with kernel code: instruct the compiler that the data of
these types may be unaligned to their "normal" alignment and exercise
caution when accessing them.

PR: 194071

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

9 years agoMFC r272254:
hselasky [Thu, 2 Oct 2014 16:48:05 +0000 (16:48 +0000)]
MFC r272254:
Instead of creating the full range of possible ports, try to figure
out the actual number of so-called "embedded jacks" which are present
when a USB MIDI device is attaching.

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

9 years agoMFC r272253:
hselasky [Thu, 2 Oct 2014 16:43:37 +0000 (16:43 +0000)]
MFC r272253:

Regenerate usb.conf

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

9 years agoMFC r268376 (imp):
gjb [Wed, 1 Oct 2014 16:18:59 +0000 (16:18 +0000)]
MFC r268376 (imp):

  rm -rf can fail sometimes with an error from fts_read. Make it
  honor fflag to ignore fts_read errors, but stop deleting from
  that directory because no further progress can be made.

  When building a kernel with a high -j value on a high core count
  machine, during the cleanobj phase we can wind up doing multiple
  rm -rf at the same time for modules that have subdirectories. This
  exposed this race (sometimes) as fts_read can return an error if
  the directory is removed by another rm -rf. Since the intent of
  the -f flag was to ignore errors, even if this was a bug in
  fts_read, we should ignore the error like we've been instructed
  to do.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFH (r272280, r272281, r272348): allow use with null user and rhost
des [Wed, 1 Oct 2014 10:29:14 +0000 (10:29 +0000)]
MFH (r272280, r272281, r272348): allow use with null user and rhost

PR: 83099 193927

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

9 years agoMFC Clang debug info crash fix
emaste [Tue, 30 Sep 2014 15:10:40 +0000 (15:10 +0000)]
MFC Clang debug info crash fix

271282: Merge Clang debug info crash fix rev 200797:

    Debug info: fix a crasher when when emitting debug info for
    not-yet-completed templated types. getTypeSize() needs a complete type.

    rdar://problem/15931354

271283: Add clang patch for r271282

  Note that r271282 contains only the src change from Clang rev 200797.
  This patch file includes two follow-on changes to the test case, which
  do not apply to the copy in the FreeBSD tree.

  Upstream Clang revisions:

  200797:

    Debug info: fix a crasher when when emitting debug info for
    not-yet-completed templated types. getTypeSize() needs a complete type.

    rdar://problem/15931354

  200798:

    Simplify testcase from r200797 some more.

  200805:

    Further simplify r200797 and add an explanatory comment.

PR: 193347

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

9 years agoMFC r271433: Add clang patch corresponding to r271432
emaste [Tue, 30 Sep 2014 15:07:06 +0000 (15:07 +0000)]
MFC r271433: Add clang patch corresponding to r271432

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

9 years agoMFC r271432: Merge upstream Clang rev 205331 debuginfo crash fix:
emaste [Tue, 30 Sep 2014 15:05:27 +0000 (15:05 +0000)]
MFC r271432: Merge upstream Clang rev 205331 debuginfo crash fix:

    Debug info: fix a crash when emitting IndirectFieldDecls, which were
    previously not handled at all.
    rdar://problem/16348575

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

9 years agoMFC r272137:
wblock [Sun, 28 Sep 2014 23:22:46 +0000 (23:22 +0000)]
MFC r272137:

Revised to better point to release notes and errata, security advisories,
and be more specific about the -questions list.

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

9 years agoMFC r271874:
hselasky [Sat, 27 Sep 2014 18:10:52 +0000 (18:10 +0000)]
MFC r271874:
Add new USB IDs.

PR: 193775

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

9 years agoMFC r272059:
mav [Sat, 27 Sep 2014 08:35:23 +0000 (08:35 +0000)]
MFC r272059:
Remake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

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

9 years agoMFC rev. 258705 to stable/9:
thomas [Fri, 26 Sep 2014 19:13:13 +0000 (19:13 +0000)]
MFC rev. 258705 to stable/9:

Define NANO_MAKE (single threaded MAKE) and use it for installworld,
installkernel, and distribution.

Required in order to fix regression introduced by MFC rev. 265894
for kern/162736, since that change depends on this one.

PR: 193808

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

9 years agoMFC r271953:
hselasky [Thu, 25 Sep 2014 05:59:12 +0000 (05:59 +0000)]
MFC r271953:
Some XHCI hardware requires dropping the endpoint context before
adding it again.

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

9 years agoMFC r236360,r236361:
pjd [Tue, 23 Sep 2014 22:27:34 +0000 (22:27 +0000)]
MFC r236360,r236361:

- Add missing system calls.
- Remove rmdirat system call which doesn't exist.

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

9 years agoMFC r271577:
pjd [Tue, 23 Sep 2014 21:56:15 +0000 (21:56 +0000)]
MFC r271577:

Fix descriptors leak.

PR: bin/191002
Reported by: Ryan Steinmetz
Submitted by: mjg

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

9 years agoAfter r266269 unbreak the pc98 builds by only building the xenhvm
bz [Tue, 23 Sep 2014 19:32:42 +0000 (19:32 +0000)]
After r266269 unbreak the pc98 builds by only building the xenhvm
module for amd64 and i386 but not for pc98.

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

9 years ago This is a direct commit rather than an MFC of r271744.
bz [Tue, 23 Sep 2014 16:06:28 +0000 (16:06 +0000)]
 This is a direct commit rather than an MFC of r271744.

   Re-gen after r272029 (r271743 in head) implementing most of
   timer_{create,settime,gettime,getoverrun,delete}.

Sponsored by: DARPA/AFRL

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

9 years agoMFC r269669,271743:
bz [Tue, 23 Sep 2014 16:03:57 +0000 (16:03 +0000)]
MFC r269669,271743:

 Split up sys_ktimer_getoverrun() into a sys_ and a kern_ variant
 and export the kern_ version needed by an upcoming linuxolator change.

 Implement most of timer_{create,settime,gettime,getoverrun,delete}
 for amd64/linux32.  Fix the entirely bogus (untested) version from
 r161310 for i386/linux using the same shared code in compat/linux.

 Reviewed by: jhb
 Differential Revision: D784
Sponsored by: DARPA/AFRL

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

9 years agoMFC r271728
davidcs [Mon, 22 Sep 2014 19:42:18 +0000 (19:42 +0000)]
MFC r271728
For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before printing error message.

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

9 years agoMFC r271727
davidcs [Mon, 22 Sep 2014 19:37:03 +0000 (19:37 +0000)]
MFC r271727
remove clean option from Makefile

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

9 years agoMFC r271726
davidcs [Mon, 22 Sep 2014 19:28:21 +0000 (19:28 +0000)]
MFC r271726
remove clean option from Makefile

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

9 years agoMFC r256800: pathchk: Ensure bytes >= 128 are considered non-portable
jilles [Sat, 20 Sep 2014 12:59:28 +0000 (12:59 +0000)]
MFC r256800: pathchk: Ensure bytes >= 128 are considered non-portable
characters.

This was not broken on architectures such as ARM where char is unsigned.

Also, remove the first non-portable character from the output. POSIX does
not require this, and printing the first byte may yield an invalid byte
sequence with UTF-8.

PR: 165988
Reported by: Nicolas Rachinsky
Relnotes: yes

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

9 years agoMFC r271492:
hselasky [Sat, 20 Sep 2014 08:01:50 +0000 (08:01 +0000)]
MFC r271492:
Workaround for receiving Voice Calls using the E1750 dongle from
Huawei. It might appear as if the firmware is allocating memory blocks
according to the USB transfer size and if there is initially a lot of
data, like at the answering machine prompt, it simply dies without any
apparent reason. The simple workaround for this is to force a zero
length packet at hardware level after every 512 bytes of data. This
will force the other side to use smaller memory blocks aswell.

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

9 years agoMFC r265092, except for the ATF bits.
asomers [Thu, 18 Sep 2014 22:12:52 +0000 (22:12 +0000)]
MFC r265092, except for the ATF bits.

Fix a panic when removing an IP address from an interface, if the same address
exists on another interface.  The panic was introduced by change 264887, which
changed the fibnum parameter in the call to rtalloc1_fib() in
ifa_switch_loopback_route() from RT_DEFAULT_FIB to RT_ALL_FIBS.  The solution
is to use the interface fib in that call.  For the majority of users, that will
be equivalent to the legacy behavior.

PR:             kern/189089

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