]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoThere is only one argemdio device on this board.
sbruno [Wed, 3 Dec 2014 19:41:49 +0000 (19:41 +0000)]
There is only one argemdio device on this board.

Sponsored by: Nicholas Esborn <nick@desert.net>

9 years agoAdd libcuse and libxo.
brueffer [Wed, 3 Dec 2014 18:14:21 +0000 (18:14 +0000)]
Add libcuse and libxo.

9 years agoAssign argemdio0 to the correct base address and assign argemdio1 to its
sbruno [Wed, 3 Dec 2014 18:08:39 +0000 (18:08 +0000)]
Assign argemdio0 to the correct base address and assign argemdio1 to its
proper place *after* argemdio0

Correctly place arge0 and arge1 on their respective bus positions.

Sponsored by: Nicholas Esborn <nick@desert.net>

9 years agoIncrease CTL ports limit from 128 to 256 and LUNs limit from 256 to 1024.
mav [Wed, 3 Dec 2014 16:04:01 +0000 (16:04 +0000)]
Increase CTL ports limit from 128 to 256 and LUNs limit from 256 to 1024.

After recent optimizations this change is no longer blocked by CTL memory
consumption.  Those limits are still not free, but much cheaper now.

MFC after: 1 week
Relnotes: yes
Sponsored by: iXsystems, Inc.

9 years agoRevert device_getenv_int() for now as it duplicates resource_int_value().
jhb [Wed, 3 Dec 2014 15:29:53 +0000 (15:29 +0000)]
Revert device_getenv_int() for now as it duplicates resource_int_value().
We should perhaps implement a device_getenv_*() and device_setenv_*() API
as a convenience wrapper on top of resource_*_value() and resource_set_*().

9 years agoUnify function names after r275458.
mav [Wed, 3 Dec 2014 15:19:38 +0000 (15:19 +0000)]
Unify function names after r275458.

MFC after: 1 month

9 years agoDo not pre-allocate UNIT ATTENTIONs storage for every possible initiator.
mav [Wed, 3 Dec 2014 15:16:18 +0000 (15:16 +0000)]
Do not pre-allocate UNIT ATTENTIONs storage for every possible initiator.

Abusing ability of major UAs cover minor ones we may not account UAs for
inactive ports.  Allocate UAs storage for port and start accounting only
after some initiator from that port fetched its first POWER ON OCCURRED.

This reduces per-LUN CTL memory usage from >1MB to less then 100K.

MFC after: 1 month

9 years agoIncrease BERI loader section alignment to 16
emaste [Wed, 3 Dec 2014 14:04:57 +0000 (14:04 +0000)]
Increase BERI loader section alignment to 16

The .text, .bss, and .data sections claimed 16-byte alignment, but were
only aligned to 8 by the linker script.

Discovered with strip(1) from elftoolchain, which performs validation
absent from the binutils strip(1).

Sponsored by: DARPA, AFRL

9 years agoRemove some unused code.
mav [Wed, 3 Dec 2014 10:39:47 +0000 (10:39 +0000)]
Remove some unused code.

9 years agoDo not corrupt the listen string when parsing it.
mav [Wed, 3 Dec 2014 09:32:51 +0000 (09:32 +0000)]
Do not corrupt the listen string when parsing it.

This fixes problem with ctld reload when it is configured to listen on two
portals with same IP, but different ports.

MFC after: 1 week

9 years agoDo not pre-allocate reservation keys memory for every possible initiator.
mav [Wed, 3 Dec 2014 09:05:53 +0000 (09:05 +0000)]
Do not pre-allocate reservation keys memory for every possible initiator.

In configurations with many ports, like iSCSI, each LUN is typically
accessed only by limited subset of ports.  Allocating that memory on
demand allows to reduce CTL memory usage from 5.3MB/LUN to 1.3MB/LUN.

MFC after: 1 month

9 years agoPlug memory leaks on UNMAP and XCOPY with invalid parameters.
mav [Wed, 3 Dec 2014 08:25:41 +0000 (08:25 +0000)]
Plug memory leaks on UNMAP and XCOPY with invalid parameters.

MFC after: 1 week

9 years agoRemove __P() macro.
ae [Wed, 3 Dec 2014 04:08:41 +0000 (04:08 +0000)]
Remove __P() macro.

Suggested by: kevlo
Sponsored by: Yandex LLC

9 years agoANSIfy function declarations.
ae [Wed, 3 Dec 2014 03:50:54 +0000 (03:50 +0000)]
ANSIfy function declarations.

Sponsored by: Yandex LLC

9 years agoSwitch gpioctl(8) to LIBADD.
rpaulo [Wed, 3 Dec 2014 03:05:15 +0000 (03:05 +0000)]
Switch gpioctl(8) to LIBADD.

9 years agoAdd sleep(1) to /rescue. This adds 664 bytes to the binary on amd64 but
delphij [Wed, 3 Dec 2014 01:34:24 +0000 (01:34 +0000)]
Add sleep(1) to /rescue.  This adds 664 bytes to the binary on amd64 but
it's pretty useful for shell scripts.

MFC after: 1 month
Sponsored by: iXsystems, Inc.

9 years agoRemove unused PCMCIA_CARD* macros.
imp [Wed, 3 Dec 2014 00:47:05 +0000 (00:47 +0000)]
Remove unused PCMCIA_CARD* macros.

Always include the card human readable name. We support ~270 cards and
at ~20 bytes each, this bloats things by only ~5k. Retain the
PCMCIA_CARD vs PCMCIA_CARD_D distinction, though, in case this is
intolerable.

9 years agoRevert r274953, r274934
bapt [Tue, 2 Dec 2014 23:33:37 +0000 (23:33 +0000)]
Revert r274953, r274934

mandoc(1) is now able to display correctly the vanilla version

9 years agoUpdate to mandoc cvs version as of 20141201
bapt [Tue, 2 Dec 2014 23:24:57 +0000 (23:24 +0000)]
Update to mandoc cvs version as of 20141201
- Compatiblity with existing manpages has been improved
- Now support ".so" directive with compressed manpages (which fixes a regression
we have since we have new man(1))

9 years agoRevert r275136, it was not approved, it was sloppy, if a feature
jfv [Tue, 2 Dec 2014 23:02:57 +0000 (23:02 +0000)]
Revert r275136, it was not approved, it was sloppy, if a feature
like this is needed please resubmit for Intel's approval.

9 years agolibelf: Fix cross-endian ELF note file / memory conversion
emaste [Tue, 2 Dec 2014 22:35:43 +0000 (22:35 +0000)]
libelf: Fix cross-endian ELF note file / memory conversion

The namesz and descsz variables need to be used in native endianness.
The sizes are in native order after swapping in the file to memory case,
and before swapping in the memory to file case.

This issue was identified for r273443, but the change was applied to the
wrong case. Revert r273443 to fix the to-memory case, and apply the
equivalent change to the to-file case.

Sponsored by: DARPA, AFRL
Reviewed by: adrian, brooks, marcel
Differential Revision: https://reviews.freebsd.org/D1257

9 years agoDo the renaming of sb_cc to sb_ccc in a way with less code changes by
tuexen [Tue, 2 Dec 2014 20:29:29 +0000 (20:29 +0000)]
Do the renaming of sb_cc to sb_ccc in a way with less code changes by
using a macro.
This is an alternate approach to
https://svnweb.freebsd.org/changeset/base/275326
which is easier to handle upstream.

Discussed with: rrs, glebius

9 years agoThis configuration file removes several debugging options, including
gnn [Tue, 2 Dec 2014 19:55:43 +0000 (19:55 +0000)]
This configuration file removes several debugging options, including
WITNESS and INVARIANTS checking, which are known to have significant
performance impact on running systems.  When benchmarking new features
this kernel should be used instead of the standard GENERIC.
This kernel configuration should never appear outside of the HEAD
of the FreeBSD tree.

9 years agogpioctl: don't print the command line arguments.
rpaulo [Tue, 2 Dec 2014 19:41:25 +0000 (19:41 +0000)]
gpioctl: don't print the command line arguments.

PR: 195330
Submitted by: Scott Ellis jumpnowtek at gmail.com
MFC after: 3 days

9 years agoSwitch to unified syntax so these can be built with clang 3.5.
andrew [Tue, 2 Dec 2014 18:37:04 +0000 (18:37 +0000)]
Switch to unified syntax so these can be built with clang 3.5.

MFC after: 1 week
Sponsored by: ABT Systems Ltd

9 years agoUse the APSR_nzcv format of mrc. The clang integrated assembler doesn't
andrew [Tue, 2 Dec 2014 18:35:34 +0000 (18:35 +0000)]
Use the APSR_nzcv format of mrc. The clang integrated assembler doesn't
support the old usage of r15.

Sponsored by: ABT Systems Ltd

9 years agoFix the name of the coprocessor to include the "p" prefix, the clang
andrew [Tue, 2 Dec 2014 18:20:53 +0000 (18:20 +0000)]
Fix the name of the coprocessor to include the "p" prefix, the clang
integrated assembler expects this.

MFC after: 1 Week
Sponsored by: ABT Systems Ltd

9 years agoAllow the UAL APSR_nzcv format for the mrc and mrc2 instructions. The clang
andrew [Tue, 2 Dec 2014 18:12:16 +0000 (18:12 +0000)]
Allow the UAL APSR_nzcv format for the mrc and mrc2 instructions. The clang
integrated assembler only allows these forms so binutils will need to
support them.

MFC after: 1 Week
Sponsored by: AB Systems Ltd

9 years agoThe runtime linker needs to include a path to itself in the link map
jhb [Tue, 2 Dec 2014 16:22:08 +0000 (16:22 +0000)]
The runtime linker needs to include a path to itself in the link map
it exports to the debugger.  It currently has two choices: it can use
a compiled-in path (/libexec/ld-elf.so.1) or it can use the path stored
in the interpreter path in the binary being executed.  The runtime linker
currently prefers the second.  However, this is usually wrong for compat32
binaries since the binary specifies the path of rtld on a 32-bit system
(/libexec/ld-elf.so.1) instead of the actual path (/libexec/ld-elf32.so.1).
For now, always assume the compiled in path (/libexec/ld-elf32.so.1) as
the rtld path and ignore the path in the binary for the 32-bit runtime
linker.

Differential Revision: https://reviews.freebsd.org/D1236
Reviewed by: kib

9 years agoMFi386: r275305 (by rdivacky)
nyan [Tue, 2 Dec 2014 14:48:21 +0000 (14:48 +0000)]
MFi386: r275305 (by rdivacky)

  Unbreak the code for non-digits below '0' by casting the expression
  to unsigned int.

9 years agoAdd missing Makefile defines so that the program in question can be
hselasky [Tue, 2 Dec 2014 13:58:57 +0000 (13:58 +0000)]
Add missing Makefile defines so that the program in question can be
built as part of buildworld.

9 years agoConvert persis_offset from global variable to softc field.
mav [Tue, 2 Dec 2014 12:38:22 +0000 (12:38 +0000)]
Convert persis_offset from global variable to softc field.

9 years agoReduce code duplication by creating ctl_set_res_ua() helper.
mav [Tue, 2 Dec 2014 12:31:28 +0000 (12:31 +0000)]
Reduce code duplication by creating ctl_set_res_ua() helper.

9 years agoRemoved unused variable and unify some names.
mav [Tue, 2 Dec 2014 12:05:44 +0000 (12:05 +0000)]
Removed unused variable and unify some names.

9 years agozfs_putpages: actually update mtime and ctime
avg [Tue, 2 Dec 2014 11:44:56 +0000 (11:44 +0000)]
zfs_putpages: actually update mtime and ctime

Reported by: Paul Koch <paul.koch@akips.com>
Tested by: Paul Koch <paul.koch@akips.com>
MFC after: 2 weeks

9 years agoFix null pointer dereference.
trasz [Tue, 2 Dec 2014 07:42:25 +0000 (07:42 +0000)]
Fix null pointer dereference.

MFC after: 2 weeks
Coverity CID: 1256497
Sponsored by: The FreeBSD Foundation

9 years agoImport CVS version of mandoc as of 20141201
bapt [Tue, 2 Dec 2014 07:34:06 +0000 (07:34 +0000)]
Import CVS version of mandoc as of 20141201

9 years agoFix an off-by-one in gpio_pin_list().
rpaulo [Tue, 2 Dec 2014 06:24:45 +0000 (06:24 +0000)]
Fix an off-by-one in gpio_pin_list().

Coverity CID: 1256495

9 years agoRewrite parts of gpioctl(8) to use the gpio(3) library.
rpaulo [Tue, 2 Dec 2014 06:11:32 +0000 (06:11 +0000)]
Rewrite parts of gpioctl(8) to use the gpio(3) library.

9 years agoRemove unneded check. No need to do m_pullup to the size that we prepended.
ae [Tue, 2 Dec 2014 05:41:03 +0000 (05:41 +0000)]
Remove unneded check. No need to do m_pullup to the size that we prepended.

MFC after: 1 week
Sponsored by: Yandex LLC

9 years agoRemove unneded check. No need to do m_pullup to the size that we prepended.
ae [Tue, 2 Dec 2014 05:28:40 +0000 (05:28 +0000)]
Remove unneded check. No need to do m_pullup to the size that we prepended.

Sponsored by: Yandex LLC

9 years agoRemove route chaching support from ipsec code. It isn't used for some time.
ae [Tue, 2 Dec 2014 04:20:50 +0000 (04:20 +0000)]
Remove route chaching support from ipsec code. It isn't used for some time.
* remove sa_route_union declaration and route_cache member from struct secashead;
* remove key_sa_routechange() call from ICMP and ICMPv6 code;
* simplify ip_ipsec_mtu();
* remove #include <net/route.h>;

Sponsored by: Yandex LLC

9 years agoRemove unused structure declarations.
ae [Tue, 2 Dec 2014 02:41:44 +0000 (02:41 +0000)]
Remove unused structure declarations.

Sponsored by: Yandex LLC

9 years agoRemove unused declartations.
ae [Tue, 2 Dec 2014 02:32:28 +0000 (02:32 +0000)]
Remove unused declartations.

Sponsored by: Yandex LLC

9 years agoRegenerate src.conf(5) after r275373
emaste [Tue, 2 Dec 2014 02:16:30 +0000 (02:16 +0000)]
Regenerate src.conf(5) after r275373

9 years agoAdd elfcopy and man page to OptionalObsoleteFiles
emaste [Tue, 2 Dec 2014 02:11:09 +0000 (02:11 +0000)]
Add elfcopy and man page to OptionalObsoleteFiles

9 years agoLet GNU ld be less obscure about missing symbols and DSOs. If the BFD
dim [Tue, 2 Dec 2014 01:30:53 +0000 (01:30 +0000)]
Let GNU ld be less obscure about missing symbols and DSOs.  If the BFD
object looks like a typical shared library, suggest adding '-l<foo>',
where <foo> has the 'lib' prefix and '.so<bar>' or '.a' suffix removed.

Otherwise, suggest adding '-l:<foo>', where <foo> is the full DT_SONAME.

Submitted by: Conrad Meyer <conrad.meyer@isilon.com>
Sponsored by: EMC / Isilon storage division
Reviewed by: emaste
PR: 194296
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D1152

9 years agoSync the svn template with the one from ports
bapt [Tue, 2 Dec 2014 00:23:26 +0000 (00:23 +0000)]
Sync the svn template with the one from ports

9 years agoMake this work with pkgng, and allow PORTS_OPTS to be passed in
phk [Mon, 1 Dec 2014 22:39:35 +0000 (22:39 +0000)]
Make this work with pkgng, and allow PORTS_OPTS to be passed in

9 years agoUse the floating-point instruction on ARMv7 as the clang 3.5 integrated
andrew [Mon, 1 Dec 2014 21:13:47 +0000 (21:13 +0000)]
Use the floating-point instruction on ARMv7 as the clang 3.5 integrated
assembler doesn't allow these two instructions to use co-processor 11.

MFC after: 1 Week
Sponsored by: ABT Systems Ltd

9 years agoSet the correct architecture when targeting ARMv7
andrew [Mon, 1 Dec 2014 21:07:36 +0000 (21:07 +0000)]
Set the correct architecture when targeting ARMv7

MFC after: 1 Week
Sponsored by: ABT Systems Ltd

9 years agoPull in the NetBSD global offset table handling code. Clang 3.5 creates
andrew [Mon, 1 Dec 2014 21:04:26 +0000 (21:04 +0000)]
Pull in the NetBSD global offset table handling code. Clang 3.5 creates
relocations the linker complains about.

Obtained from: NetBSD
MFC after: 1 Week

9 years agoFix inverted logic introduced in r272154.
delphij [Mon, 1 Dec 2014 20:51:01 +0000 (20:51 +0000)]
Fix inverted logic introduced in r272154.

Noticed by: trasz
MFC after: 2 weeks

9 years agoAllow multiple devices to mmap. It's impossible to prevent this with
rpaulo [Mon, 1 Dec 2014 19:48:23 +0000 (19:48 +0000)]
Allow multiple devices to mmap.  It's impossible to prevent this with
checks on the open/close functions.

MFC after: 1 week

9 years agoDocument ISP 2532 support and hint.isp.0.vports tunable.
mav [Mon, 1 Dec 2014 17:51:16 +0000 (17:51 +0000)]
Document ISP 2532 support and hint.isp.0.vports tunable.

MFC after: 1 week

9 years agoBuild infrastructure for elftoolchain tools
emaste [Mon, 1 Dec 2014 17:49:42 +0000 (17:49 +0000)]
Build infrastructure for elftoolchain tools

Set WITH_ELFTOOLCHAIN_TOOLS in src.conf to use the elftoolchain version
of the following tools:

 * addr2line
 * elfcopy (strip / mcs)
 * nm
 * size
 * strings

Reviewed by: bapt (earlier version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1224

9 years agoDisable recursion for the process spinlock.
kib [Mon, 1 Dec 2014 17:36:10 +0000 (17:36 +0000)]
Disable recursion for the process spinlock.

Tested by: pho
Discussed with: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 month

9 years agoTrack libarchive API change
emaste [Mon, 1 Dec 2014 16:10:44 +0000 (16:10 +0000)]
Track libarchive API change

9 years agoTemporarily disable non-FreeBSD NT_ note types
emaste [Mon, 1 Dec 2014 16:10:03 +0000 (16:10 +0000)]
Temporarily disable non-FreeBSD NT_ note types

9 years agoFix elftoolchain tools in-tree build
emaste [Mon, 1 Dec 2014 16:07:31 +0000 (16:07 +0000)]
Fix elftoolchain tools in-tree build

 * make variables static
 * add header for uint*_t typedefs

9 years agoWhen passing LUN IDs through treat ASCII values as fixed-length, not
mav [Mon, 1 Dec 2014 15:21:54 +0000 (15:21 +0000)]
When passing LUN IDs through treat ASCII values as fixed-length, not
interpreating NULLs as EOLs, but converting them to spaces.

SPC-4 does not tell that T10-based IDs should be NULL-terminated/padded.
And while it tells that it should include only ASCII chars (0x20-0x7F),
there are some USB sticks (SanDisk Ultra Fit), that have NULLs inside
the value.  Treating NULLs as EOLs there made those LUN IDs non-unique.

MFC after: 1 week

9 years agoPull in r209785 from upstream libc++ trunk (by Marshall Clow):
dim [Mon, 1 Dec 2014 15:02:49 +0000 (15:02 +0000)]
Pull in r209785 from upstream libc++ trunk (by Marshall Clow):

  Fix a problem exposed by r208825, which caused bind (and other bits of
  libc++) to stop working. And tests

This fix is needed to support clang 3.5.0 and higher, which are more
strict about forming pointer-to-function types with cv-qualifiers or
ref-qualifiers.  See also the upstream PR <http://llvm.org/PR19742> and
<http://llvm.org/viewvc/llvm-project?rev=208825&view=rev>

Reported by: amdmi3
MFC after: 3 days

9 years agoMove ctlfe_onoffline() out of lock to let it sleep when needed.
mav [Mon, 1 Dec 2014 13:55:45 +0000 (13:55 +0000)]
Move ctlfe_onoffline() out of lock to let it sleep when needed.

Do some more other polishing while there.

MFC after: 2 weeks

9 years agoDisable the vxlan code until the people reponsible for it can come up with
des [Mon, 1 Dec 2014 12:59:16 +0000 (12:59 +0000)]
Disable the vxlan code until the people reponsible for it can come up with
new command names that don't conflict with existing commands.

Pointy hat to: bryanv

9 years agoThe early-late divider was originally set to mountcritlocal. Since that
des [Mon, 1 Dec 2014 12:29:59 +0000 (12:29 +0000)]
The early-late divider was originally set to mountcritlocal.  Since that
service does not run in jails, it was necessary to change it to something
else when jailed, and NETWORKING was arbitrarily chosen.  The divider was
later moved to FILESYSTEMS when it was introduced, but the logic to change
it to NETWORKING when jailed remained.  Remove it, as it no longer serves
any purpose.

PR: 194975
MFC after: 1 week

9 years agoAllow load_rc_config to be called without a service name.
des [Mon, 1 Dec 2014 12:17:42 +0000 (12:17 +0000)]
Allow load_rc_config to be called without a service name.

MFC after: 1 week

9 years agoStart process of removing the use of the deprecated "M_FLOWID" flag
hselasky [Mon, 1 Dec 2014 11:45:24 +0000 (11:45 +0000)]
Start process of removing the use of the deprecated "M_FLOWID" flag
from the FreeBSD network code. The flag is still kept around in the
"sys/mbuf.h" header file, but does no longer have any users. Instead
the "m_pkthdr.rsstype" field in the mbuf structure is now used to
decide the meaning of the "m_pkthdr.flowid" field. To modify the
"m_pkthdr.rsstype" field please use the existing "M_HASHTYPE_XXX"
macros as defined in the "sys/mbuf.h" header file.

This patch introduces new behaviour in the transmit direction.
Previously network drivers checked if "M_FLOWID" was set in "m_flags"
before using the "m_pkthdr.flowid" field. This check has now now been
replaced by checking if "M_HASHTYPE_GET(m)" is different from
"M_HASHTYPE_NONE". In the future more hashtypes will be added, for
example hashtypes for hardware dedicated flows.

"M_HASHTYPE_OPAQUE" indicates that the "m_pkthdr.flowid" value is
valid and has no particular type. This change removes the need for an
"if" statement in TCP transmit code checking for the presence of a
valid flowid value. The "if" statement mentioned above is now a direct
variable assignment which is then later checked by the respective
network drivers like before.

Additional notes:
- The SCTP code changes will be committed as a separate patch.
- Removal of the "M_FLOWID" flag will also be done separately.
- The FreeBSD version has been bumped.

MFC after: 1 month
Sponsored by: Mellanox Technologies

9 years agoFace the fact that we have no idea where the ports tree really lives.
phk [Mon, 1 Dec 2014 10:17:23 +0000 (10:17 +0000)]
Face the fact that we have no idea where the ports tree really lives.

9 years agoUpdate tools/shlib-compat.
gleb [Mon, 1 Dec 2014 08:14:25 +0000 (08:14 +0000)]
Update tools/shlib-compat.

- Update dwarfdump / compiler support.
  Use hex instead of decimal for integers.
  Add boolean and restrict type definitions.
  Add options for specifing dwarfdump and objdump executables.

- Fix reporting missing symbol definitions as matching.

- Compare external variable definitions.

- Exclude special symbols like _init, _end by default.

- Fix test build.

9 years agoProvide mutual exclusion between zone allocation/destruction and
kib [Sun, 30 Nov 2014 20:20:55 +0000 (20:20 +0000)]
Provide mutual exclusion between zone allocation/destruction and
uma_reclaim().  Reclamation code must not see half-constructed or
destructed zones.  Do this by bracing uma_zcreate() and uma_zdestroy()
into a shared-locked sx, and take the sx exclusively in uma_reclaim().

Usually zones are not created/destroyed during the system operation,
but tmpfs mounts do cause zone operations and exposed the bug.

Another solution could be to only expose a new keg on uma_kegs list
after the corresponding zone is fully constructed, and similar
treatment for the destruction.  But it probably requires more risky
code rearrangement as well.

Reported and tested by: pho
Discussed with: avg
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

9 years agosh: Remove special case for '=' in set -x; always quote it in outqstr().
jilles [Sun, 30 Nov 2014 20:12:47 +0000 (20:12 +0000)]
sh: Remove special case for '=' in set -x; always quote it in outqstr().

I plan to make set -x output always printable using $'...'; avoiding quoting
words containing '=' is not worth the extra complexity.

9 years agoRemove trailing whitespace.
gibbs [Sun, 30 Nov 2014 19:32:00 +0000 (19:32 +0000)]
Remove trailing whitespace.

9 years agoThere is no need to use FUNC_END with aeabi_ldiv0 or aeabi_idiv0 as they
andrew [Sun, 30 Nov 2014 17:29:49 +0000 (17:29 +0000)]
There is no need to use FUNC_END with aeabi_ldiv0 or aeabi_idiv0 as they
are aliases.

Sponsored by: ABT Systems Ltd

9 years agoUse llabs when getting the absolute value of a long long.
andrew [Sun, 30 Nov 2014 17:27:24 +0000 (17:27 +0000)]
Use llabs when getting the absolute value of a long long.

Sponsored by: ABT Ststems Ltd

9 years agoCleanup and performance improvement of the virtio_blk driver
bryanv [Sun, 30 Nov 2014 16:36:26 +0000 (16:36 +0000)]
Cleanup and performance improvement of the virtio_blk driver

  - Add support for GEOM direct completion. Depending on the benchmark,
    this tends to give a ~30% improvement w.r.t IOPs and BW.
  - Remove an invariants check in the strategy routine. This assertion
    is caught later on by an existing panic.
  - Rename and resort various related functions to make more sense.

MFC after: 1 month

9 years agoMerge from projects/sendfile:
glebius [Sun, 30 Nov 2014 13:43:52 +0000 (13:43 +0000)]
Merge from projects/sendfile:

- Provide pru_ready function for TCP.
- Don't call tcp_output() from tcp_usr_send() if no ready data was put
  into the socket buffer.
- In case of dropped connection don't try to m_freem() not ready data.

Sponsored by: Nginx, Inc.
Sponsored by: Netflix

9 years agoMerge from projects/sendfile:
glebius [Sun, 30 Nov 2014 13:40:58 +0000 (13:40 +0000)]
Merge from projects/sendfile:

Provide pru_ready for AF_LOCAL sockets.  Local sockets sendsdata directly
to the receive buffer of the peer, thus pru_ready also works on the peer
socket.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

9 years agoFix building of some infiniband utilities by updating some header file
hselasky [Sun, 30 Nov 2014 13:27:58 +0000 (13:27 +0000)]
Fix building of some infiniband utilities by updating some header file
locations and compiler include directives.

MFC after: 3 days
Sponsored by: Mellanox Technologies

9 years agoMerge from projects/sendfile: extend protocols API to support
glebius [Sun, 30 Nov 2014 13:24:21 +0000 (13:24 +0000)]
Merge from projects/sendfile: extend protocols API to support
sending not ready data:
o Add new flag to pru_send() flags - PRUS_NOTREADY.
o Add new protocol method pru_ready().

Sponsored by: Nginx, Inc.
Sponsored by: Netflix

9 years agoAdd missing libraries when linking.
hselasky [Sun, 30 Nov 2014 13:13:46 +0000 (13:13 +0000)]
Add missing libraries when linking.

MFC after: 3 days
Sponsored by: Mellanox Technologies

9 years agoMerge from projects/sendfile:
glebius [Sun, 30 Nov 2014 12:52:33 +0000 (12:52 +0000)]
Merge from projects/sendfile:

o Introduce a notion of "not ready" mbufs in socket buffers.  These
mbufs are now being populated by some I/O in background and are
referenced outside.  This forces following implications:
- An mbuf which is "not ready" can't be taken out of the buffer.
- An mbuf that is behind a "not ready" in the queue neither.
- If sockbet buffer is flushed, then "not ready" mbufs shouln't be
  freed.

o In struct sockbuf the sb_cc field is split into sb_ccc and sb_acc.
  The sb_ccc stands for ""claimed character count", or "committed
  character count".  And the sb_acc is "available character count".
  Consumers of socket buffer API shouldn't already access them directly,
  but use sbused() and sbavail() respectively.
o Not ready mbufs are marked with M_NOTREADY, and ready but blocked ones
  with M_BLOCKED.
o New field sb_fnrdy points to the first not ready mbuf, to avoid linear
  search.
o New function sbready() is provided to activate certain amount of mbufs
  in a socket buffer.

A special note on SCTP:
  SCTP has its own sockbufs.  Unfortunately, FreeBSD stack doesn't yet
allow protocol specific sockbufs.  Thus, SCTP does some hacks to make
itself compatible with FreeBSD: it manages sockbufs on its own, but keeps
sb_cc updated to inform the stack of amount of data in them.  The new
notion of "not ready" data isn't supported by SCTP.  Instead, only a
mechanical substitute is done: s/sb_cc/sb_ccc/.
  A proper solution would be to take away struct sockbuf from struct
socket and allow protocols to implement their own socket buffers, like
SCTP already does.  This was discussed with rrs@.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

9 years agoRemove duplicate FILESYSTEMS REQUIRE from etc/rc.d/ipmon and etc/rc.d/pflog
ngie [Sun, 30 Nov 2014 12:34:48 +0000 (12:34 +0000)]
Remove duplicate FILESYSTEMS REQUIRE from etc/rc.d/ipmon and etc/rc.d/pflog

9 years agoCorrectly a few incorrect uses of ENTRY/EENTRY and END/EEND
andrew [Sun, 30 Nov 2014 12:25:04 +0000 (12:25 +0000)]
Correctly a few incorrect uses of ENTRY/EENTRY and END/EEND

Sponsored by: ABT Systems Ltd

9 years agoRemove extra labels, ENTRY_NP already provides them.
andrew [Sun, 30 Nov 2014 12:20:24 +0000 (12:20 +0000)]
Remove extra labels, ENTRY_NP already provides them.

Sponsored by: ABT Systems Ltd

9 years agoMissed in r274421: use sbavail() instead of bare access to sb_cc.
glebius [Sun, 30 Nov 2014 12:11:01 +0000 (12:11 +0000)]
Missed in r274421: use sbavail() instead of bare access to sb_cc.

9 years ago- Move sbcheck() declaration under SOCKBUF_DEBUG.
glebius [Sun, 30 Nov 2014 11:22:39 +0000 (11:22 +0000)]
- Move sbcheck() declaration under SOCKBUF_DEBUG.
- Improve SOCKBUF_DEBUG macros.
- Improve sbcheck().

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

9 years agoMake sballoc() and sbfree() functions. Ideally, they could be marked
glebius [Sun, 30 Nov 2014 11:02:07 +0000 (11:02 +0000)]
Make sballoc() and sbfree() functions. Ideally, they could be marked
as static, but unfortunately Infiniband (ab)uses them.

Sponsored by: Nginx, Inc.

9 years agoUnbreak the code for non-digits below '0' by casting the expression
rdivacky [Sun, 30 Nov 2014 08:43:55 +0000 (08:43 +0000)]
Unbreak the code for non-digits below '0' by casting the expression
to unsigned int.

Pointed out by: bde

9 years agoFollowup to r275299: add an ObsoleteFiles.inc entry for etc/rc.d/mrouted
ngie [Sun, 30 Nov 2014 06:46:30 +0000 (06:46 +0000)]
Followup to r275299: add an ObsoleteFiles.inc entry for etc/rc.d/mrouted

9 years agoRemove etc/rc.d/mrouted
ngie [Sun, 30 Nov 2014 06:03:59 +0000 (06:03 +0000)]
Remove etc/rc.d/mrouted

mrouted has been available in ports for the last 8 years as net/mrouted . An
equivalent rc.d script has been present in the port.

Remove all corresponding variables from etc/defaults/rc.conf

Relnotes: yes

9 years agoCross reference tap(4) and tun(4) and include a short explanation as
peterj [Sun, 30 Nov 2014 04:50:13 +0000 (04:50 +0000)]
Cross reference tap(4) and tun(4) and include a short explanation as
to how they differ.  This will assist users in selecting which interface
is more appropriate for their purposes.

Approved by: grog (co-mentor)
MFC after: 2 week

9 years agoRevert r275270
ngie [Sat, 29 Nov 2014 22:31:19 +0000 (22:31 +0000)]
Revert r275270

MK_MAIL applies to MK_SENDMAIL and a number of other knobs. r275270 incorrectly
applied it to only MK_SENDMAIL

9 years agoetc/mail actually applies to MK_SENDMAIL, not MK_MAIL
ngie [Sat, 29 Nov 2014 22:26:35 +0000 (22:26 +0000)]
etc/mail actually applies to MK_SENDMAIL, not MK_MAIL

9 years agoAdd support for dtrace:fbt on modules for PowerPC
jhibbits [Sat, 29 Nov 2014 20:54:33 +0000 (20:54 +0000)]
Add support for dtrace:fbt on modules for PowerPC

Summary:
Revert the initial FBT-with-KDB changes for trap_subr*.S, and instead use the
db_trap filter function to handle dtrace trap filtering.  With this, the MMU is
enabled by the support code, simplifying the codepath altogether.

Test Plan: Tested on my G4 PowerBook

Reviewers: #powerpc, nwhitehorn

Reviewed By: nwhitehorn

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

MFC after: 3 weeks

9 years agoUpdate _ENTRY to use _EENTRY to reduce the common code.
andrew [Sat, 29 Nov 2014 19:31:23 +0000 (19:31 +0000)]
Update _ENTRY to use _EENTRY to reduce the common code.

9 years agoThe current limit of 100k for the linker hints file is getting a bit
imp [Sat, 29 Nov 2014 17:29:30 +0000 (17:29 +0000)]
The current limit of 100k for the linker hints file is getting a bit
crowded as we now are at about 70k. Bump the limit to 1MB instead
which is still quite a reasonable limit and allows for future growth
of this file and possible future expansion to additional data.

MFC After: 2 weeks

9 years agoRemove lock recursion for the pipe pair mutex, and disable the
kib [Sat, 29 Nov 2014 17:18:20 +0000 (17:18 +0000)]
Remove lock recursion for the pipe pair mutex, and disable the
recursion on mutex initialization.

The only places where the recursive acquire is performed are read and
write filters, since knlist, which uses the pipe pair mutex as lock,
is locked when filter is called.

The recursion was added in r93296, and consistent locking for
kn_fop->f_event() introduced in r133741.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 month

9 years agoSwitch to the ARM unified assembly language as the clang integrated as only
andrew [Sat, 29 Nov 2014 15:56:52 +0000 (15:56 +0000)]
Switch to the ARM unified assembly language as the clang integrated as only
supports it. Binutils supports it when the ".syntax unified" directive
is set.

Sponsored by: ABT Systems Ltd

9 years agoIgnore more warnings with external gcc
bapt [Sat, 29 Nov 2014 14:30:39 +0000 (14:30 +0000)]
Ignore more warnings with external gcc

9 years agoMFi386: r275059, r275061, r275062 and r275191 (by rdivacky)
nyan [Sat, 29 Nov 2014 12:22:31 +0000 (12:22 +0000)]
MFi386: r275059, r275061, r275062 and r275191 (by rdivacky)

  Shrink boot2 by a couple more bytes.