]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoDefault to WARNS=6
ngie [Sun, 12 Apr 2015 05:09:05 +0000 (05:09 +0000)]
Default to WARNS=6

9 years agoIntegrate tools/regression/file into the FreeBSD test suite as tests/sys/file
ngie [Sat, 11 Apr 2015 10:14:59 +0000 (10:14 +0000)]
Integrate tools/regression/file into the FreeBSD test suite as tests/sys/file

9 years agoAdd directory iteration piece for tests/sys/mqueue
ngie [Sat, 11 Apr 2015 09:28:53 +0000 (09:28 +0000)]
Add directory iteration piece for tests/sys/mqueue

9 years agoIntegrate tools/regression/posixshm into the FreeBSD test suite as tests/sys/posixshm
ngie [Sat, 11 Apr 2015 09:28:11 +0000 (09:28 +0000)]
Integrate tools/regression/posixshm into the FreeBSD test suite as tests/sys/posixshm

9 years agoIntegrate tools/regression/mqueue into the FreeBSD test suite as tests/sys/mqueue
ngie [Sat, 11 Apr 2015 09:20:20 +0000 (09:20 +0000)]
Integrate tools/regression/mqueue into the FreeBSD test suite as tests/sys/mqueue

9 years agoIntegrate tools/regression/kqueue into the FreeBSD test suite as tests/sys/kqueue
ngie [Sat, 11 Apr 2015 09:15:33 +0000 (09:15 +0000)]
Integrate tools/regression/kqueue into the FreeBSD test suite as tests/sys/kqueue

9 years agoIntegration tools/regression/vfs into the FreeBSD test suite
ngie [Sat, 11 Apr 2015 09:05:42 +0000 (09:05 +0000)]
Integration tools/regression/vfs into the FreeBSD test suite

9 years agoTurn on test building/installation here
ngie [Sat, 11 Apr 2015 09:05:00 +0000 (09:05 +0000)]
Turn on test building/installation here

9 years agoStart integrating tools/regression/sockets into tests/sys/sockets
ngie [Sat, 11 Apr 2015 08:57:31 +0000 (08:57 +0000)]
Start integrating tools/regression/sockets into tests/sys/sockets

9 years agoKill make regress
ngie [Sat, 11 Apr 2015 08:55:56 +0000 (08:55 +0000)]
Kill make regress

9 years agoSimilar to r281421, expose make test from the top-level Makefile
ngie [Sat, 11 Apr 2015 08:54:03 +0000 (08:54 +0000)]
Similar to r281421, expose make test from the top-level Makefile

9 years agoExpose make test via bsd.subdir.mk
ngie [Sat, 11 Apr 2015 08:42:02 +0000 (08:42 +0000)]
Expose make test via bsd.subdir.mk

9 years agoDon't defining TESTSDIR before including bsd.test.mk is bad. I hate it when
ngie [Sat, 11 Apr 2015 08:38:59 +0000 (08:38 +0000)]
Don't defining TESTSDIR before including bsd.test.mk is bad. I hate it when
tests and programs clutter up /

Sponsored by: EMC / Isilon Storage Division

9 years agoRemove FUD-inspiring warnings
ngie [Sat, 11 Apr 2015 08:35:53 +0000 (08:35 +0000)]
Remove FUD-inspiring warnings

Try to detect simple cases and guide the user in the right direction

Sponsored by: EMC / Isilon Storage Division

9 years agoSimplify all of the .PHONY targets
ngie [Sat, 11 Apr 2015 08:34:34 +0000 (08:34 +0000)]
Simplify all of the .PHONY targets

Sponsored by: EMC / Isilon Storage Division

9 years agoThe GNU files don't include a DTS for the aml8726-m8b (which has
ganbold [Sat, 11 Apr 2015 08:25:53 +0000 (08:25 +0000)]
The GNU files don't include a DTS for the aml8726-m8b (which has
cortex-a5 cores unlike the aml8726-m8 which has cortex-a9 cores).

Submitted by: John Wehle
Reviewed by: imp

9 years agoThe GNU Amlogic DTS files have some errors (e.g. bad register
ganbold [Sat, 11 Apr 2015 08:17:39 +0000 (08:17 +0000)]
The GNU Amlogic DTS files have some errors (e.g. bad register
address, bad IRQ, etc) which are fixed by this patch.

John has sent these changes to the author of the files who said
he'll propagate the changes further upstream.

Submitted by: John Wehle
Reviewed by: imp

9 years agoFix even more warnings..
ngie [Sat, 11 Apr 2015 07:37:21 +0000 (07:37 +0000)]
Fix even more warnings..

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix more warnings I didn't catch in the first go-around
ngie [Sat, 11 Apr 2015 07:35:30 +0000 (07:35 +0000)]
Fix more warnings I didn't catch in the first go-around

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix warnings, bump WARNS to 6, and use a temporary socket instead of one in /tmp
ngie [Sat, 11 Apr 2015 07:33:04 +0000 (07:33 +0000)]
Fix warnings, bump WARNS to 6, and use a temporary socket instead of one in /tmp

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Remove the .t wrapper and put the "magic" of determining the number of
ngie [Sat, 11 Apr 2015 06:40:38 +0000 (06:40 +0000)]
- Remove the .t wrapper and put the "magic" of determining the number of
  testcases into the .c file
- Require root for now because it fails with SOCK_RAW without root privileges
- Increment the test count properly on socket create failure

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix the knob twiddling to work properly per src.opts.mk
ngie [Sat, 11 Apr 2015 06:38:50 +0000 (06:38 +0000)]
Fix the knob twiddling to work properly per src.opts.mk

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agonetmap: improve the netmap attach message on FreeBSD.
rpaulo [Sat, 11 Apr 2015 06:20:46 +0000 (06:20 +0000)]
netmap: improve the netmap attach message on FreeBSD.

MFC after: 1 week

9 years agoCatch up with r281373 and r281379.
jkim [Sat, 11 Apr 2015 05:38:07 +0000 (05:38 +0000)]
Catch up with r281373 and r281379.

9 years agoGenerate temporary files with mkstemp instead of mktemp
ngie [Sat, 11 Apr 2015 05:20:01 +0000 (05:20 +0000)]
Generate temporary files with mkstemp instead of mktemp

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoGarbage collect argc/argv and bump WARNS to 6
ngie [Sat, 11 Apr 2015 03:57:35 +0000 (03:57 +0000)]
Garbage collect argc/argv and bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoGarbage collect argc/argv and bump WARNS to 6
ngie [Sat, 11 Apr 2015 03:56:23 +0000 (03:56 +0000)]
Garbage collect argc/argv and bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Garbage collect argc/argv
ngie [Sat, 11 Apr 2015 03:54:43 +0000 (03:54 +0000)]
- Garbage collect argc/argv
- Use random paths instead of one in /tmp

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Garbage collect argc/argv; bump WARNS to 6
ngie [Sat, 11 Apr 2015 03:43:43 +0000 (03:43 +0000)]
- Garbage collect argc/argv; bump WARNS to 6
- Make the socket path random and move it out of /tmp as that's outside ATF's
  prescribed path

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix warnings and bump WARNS to 6
ngie [Sat, 11 Apr 2015 03:38:49 +0000 (03:38 +0000)]
Fix warnings and bump WARNS to 6
- Staticize variables as needed
- Garbage collect argc/argv
- Fix -Wsign-compare warnings by casting small sizeof to (int)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoGarbage collect argc/argv and bump WARNS to 6
ngie [Sat, 11 Apr 2015 03:35:33 +0000 (03:35 +0000)]
Garbage collect argc/argv and bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoMark signum unused in signal_handler; bump WARNS to 6
ngie [Sat, 11 Apr 2015 03:24:49 +0000 (03:24 +0000)]
Mark signum unused in signal_handler; bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoMerge ACPICA 20150410.
jkim [Sat, 11 Apr 2015 03:23:41 +0000 (03:23 +0000)]
Merge ACPICA 20150410.

9 years agoFix a -Wuninitialized warning by setting the socket to -1 and bump WARNS to 6
ngie [Sat, 11 Apr 2015 03:19:48 +0000 (03:19 +0000)]
Fix a -Wuninitialized warning by setting the socket to -1 and bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Don't use /tmp because it's outside ATF's prescribed sandbox
ngie [Sat, 11 Apr 2015 03:18:14 +0000 (03:18 +0000)]
- Don't use /tmp because it's outside ATF's prescribed sandbox
- Replace a hardcoded PATH_MAX value with sizeof(path)
- Use path like an array, not a pointer, and always try to unlink it in cleanup

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix warnings and bump WARNS to 6
ngie [Sat, 11 Apr 2015 03:13:09 +0000 (03:13 +0000)]
Fix warnings and bump WARNS to 6
- Garbage collect argc/argv (-Wunused)
- sleep(3) will always return an unsigned int; don't check for return codes <0
  (-Wsign-compare)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Garbage collect argc/argv (-Wunused)
ngie [Sat, 11 Apr 2015 02:59:45 +0000 (02:59 +0000)]
- Garbage collect argc/argv (-Wunused)
- Bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Use static buffers for temporary file paths instead of strdup of constant strings
ngie [Sat, 11 Apr 2015 02:50:44 +0000 (02:50 +0000)]
- Use static buffers for temporary file paths instead of strdup of constant strings
- Don't use /tmp because it's outside ATF's prescribed sandbox
- Use mkstemp instead of mktemp to eliminate warning

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoAttempt to fix build after 281351 by defining full prototype for the
delphij [Sat, 11 Apr 2015 01:06:59 +0000 (01:06 +0000)]
Attempt to fix build after 281351 by defining full prototype for the
functions that were moved to ip_reass.c.

9 years agoMerge changes from vendor driver version 1.1.1:
delphij [Sat, 11 Apr 2015 00:45:03 +0000 (00:45 +0000)]
Merge changes from vendor driver version 1.1.1:

v1.1.1 2015-03-26
 * Support 4Kn drive.
 * Change the SCSI target ID of the disk to be the index of physical
   connetion to the HBA.
 * Support staggered drive spin up.
 * Fix a bug that command would be timeout because of improper
   interrupt service routine.
 * Error handling to avoid scsi command lost which caused system
   hang up.
 * Fix a bug that fail to get the devcie's serial number via
   FreeNAS WebGUI.

Many thanks to HighPoint for continued support of FreeBSD!

MFC after: 2 weeks

9 years agoFix libfifolog dependency on libz
emaste [Fri, 10 Apr 2015 21:24:38 +0000 (21:24 +0000)]
Fix libfifolog dependency on libz

Consumers should not need to encode fifolog's dependency on libz.
Handle it automatically in src.libnames.mk.

Differential Revision: https://reviews.freebsd.org/D2278
Reviewed by: bapt
Sponsored by: The FreeBSD Foundation

9 years agoiwn, wlan: fix typos
eadler [Fri, 10 Apr 2015 20:55:17 +0000 (20:55 +0000)]
iwn, wlan: fix typos
Fxi tow typos

Obtained from: DragonFlyBSD
MFC after: 3 days

9 years agoUse explicitly sized types in EFI module metadata
emaste [Fri, 10 Apr 2015 19:26:45 +0000 (19:26 +0000)]
Use explicitly sized types in EFI module metadata

This will allow the same metadata struct to be used on all platforms.

Differential Revision: https://reviews.freebsd.org/D2275
Reviewed by: jhb

9 years agoFix the IPV6_MULTICAST_IF sockopt handling. RFC 3493 says when the
ae [Fri, 10 Apr 2015 19:09:51 +0000 (19:09 +0000)]
Fix the IPV6_MULTICAST_IF sockopt handling. RFC 3493 says when the
interface index is specified as zero, the system should select the
interface to use for outgoing multicast packets. Even the comment
for the in6p_set_multicast_if() function says about index of zero.
But in fact for zero index the function just returns EADDRNOTAVAIL.

I.e. if you first set some interface and then will try reset it
with zero ifindex, you will get EADDRNOTAVAIL.

Reset im6o_multicast_ifp to NULL when interface index specified as
zero. Also return EINVAL in case when ifnet_byindex() returns NULL.
This will be the same behaviour as when ifindex is bigger than
V_if_index. And return EADDRNOTAVAIL only when interface is not
multicast capable.

Reported by: Olivier Cochard-LabbĂ©
MFC after: 2 weeks
Sponsored by: Yandex LLC

9 years agoRemove docs that are not shipped with nvi anymore
bapt [Fri, 10 Apr 2015 19:07:43 +0000 (19:07 +0000)]
Remove docs that are not shipped with nvi anymore

Reported by: emaste

9 years agotmpfs_getattr(): Return more correct allocated byte counts.
will [Fri, 10 Apr 2015 19:04:39 +0000 (19:04 +0000)]
tmpfs_getattr(): Return more correct allocated byte counts.

For VREG vnodes, return the resident page count (multiplied by PAGE_SIZE)
for the tmpfs node's anonymous VM object that stores actual file contents.

For all other vnodes, return the tmpfs_node's tn_size, which should not
be rounded to a page.

This change allows using stat(2) to identify a sparse file on tmpfs.

Reviewed by: kib
MFC after: 1 week

9 years agoAdd build support for i386 loader.efi
emaste [Fri, 10 Apr 2015 18:49:43 +0000 (18:49 +0000)]
Add build support for i386 loader.efi

Kernel changes are required for this to be useful but this will allow
others to experiment.

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

9 years agoLimit EFI framebuffer metadata to amd64 for now
emaste [Fri, 10 Apr 2015 18:08:09 +0000 (18:08 +0000)]
Limit EFI framebuffer metadata to amd64 for now

The i386 loader.efi does not yet exist. Avoid dealing with vt and
framebuffer issues there until the initial bootstrapping is done.

9 years agoUpdate nvi to 2.1.3 which fixes the data corruption when locale conversion
bapt [Fri, 10 Apr 2015 17:50:28 +0000 (17:50 +0000)]
Update nvi to 2.1.3 which fixes the data corruption when locale conversion
failed

9 years agoFor reasons that I am not understand yet, using the libmd version of
delphij [Fri, 10 Apr 2015 17:21:47 +0000 (17:21 +0000)]
For reasons that I am not understand yet, using the libmd version of
SHA256 would make libarchive based application to give:

archive_read_extract(): Lzma library error: Corrupted input data

(Internally this is LZMA_DATA_ERR)

However, the libmd version of SHA256 is supposed to give same result
as the bundled version do, and xz(1) is not affected.

As a precaution, revert the SHA256 portion of r281316 for now until
we figure out why it breaks libarchive interoperability as we can't
yet rule out this change have introduced an ABI breakage.

9 years agoUse OF_getencpropalloc() to handle endianess of the properties.
ian [Fri, 10 Apr 2015 13:50:57 +0000 (13:50 +0000)]
Use OF_getencpropalloc() to handle endianess of the properties.

Submitted by: Michal Meloun

9 years agoAdd a pmap_kremove_device() to undo mappings made with pmap_kenter_device().
ian [Fri, 10 Apr 2015 13:26:35 +0000 (13:26 +0000)]
Add a pmap_kremove_device() to undo mappings made with pmap_kenter_device().

Previously we used pmap_kremove(), but with ARM_NEW_PMAP it does the remove
in a way that isn't SMP-coherent (which is appropriate in some circumstances
such as mapping/unmapping sf buffers).  With matching enter/remove routines
for device mappings, each low-level implementation can do the right thing.

Reviewed by: Svatopluk Kraus <onwahe@gmail.com>

9 years agoImport nvi 2.1.3
bapt [Fri, 10 Apr 2015 13:26:05 +0000 (13:26 +0000)]
Import nvi 2.1.3

Approved by: peter

9 years agoThe "get latency" and "get bitmode" device commands are read operations,
ian [Fri, 10 Apr 2015 13:20:31 +0000 (13:20 +0000)]
The "get latency" and "get bitmode" device commands are read operations,
not writes.

9 years agoRedo r274966. Instead of global all-interface all-vnet undocumented sysctl,
glebius [Fri, 10 Apr 2015 09:50:13 +0000 (09:50 +0000)]
Redo r274966. Instead of global all-interface all-vnet undocumented sysctl,
use per-interface flag, and document it.

Sponsored by: Nginx, Inc.

9 years agoUse _exit, not exit in forked process
ngie [Fri, 10 Apr 2015 09:37:53 +0000 (09:37 +0000)]
Use _exit, not exit in forked process

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoRemove argc/argv (-Wunused)
ngie [Fri, 10 Apr 2015 09:27:23 +0000 (09:27 +0000)]
Remove argc/argv (-Wunused)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix warnings
ngie [Fri, 10 Apr 2015 09:26:21 +0000 (09:26 +0000)]
Fix warnings

- Remove argc/argv (-Wunused)
- Mark some parameters to socket_listen_update __unused (-Wunused)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoRemove argc/argv (-Wunused)
ngie [Fri, 10 Apr 2015 09:23:00 +0000 (09:23 +0000)]
Remove argc/argv (-Wunused)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Parameterize out the number of accept/connect attempts
ngie [Fri, 10 Apr 2015 09:21:07 +0000 (09:21 +0000)]
- Parameterize out the number of accept/connect attempts
- Randomize the bind port to allow 2+ consecutive calls in < 10 minutes, and
  to also not fail if (for instance) there's a server already listening on port
  8080
- Don't leak the listening socket / fds into the child process
- Fix warnings:
-- Remove argc/argv (-Wunused)
-- Mark sig __unused (-Wunused)
-- Mark quit static (-Wmissing-variable-declarations)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoPort the EFI reloc codeto work on arm64. This used the rela relocation
andrew [Fri, 10 Apr 2015 09:15:35 +0000 (09:15 +0000)]
Port the EFI reloc codeto work on arm64. This used the rela relocation
table so wiill need the addend included in the relocation calculation.

Sponsored by: The FreeBSD Foundation

9 years agoFix -Wunused warnings, bump WARNS to 6
ngie [Fri, 10 Apr 2015 08:01:49 +0000 (08:01 +0000)]
Fix -Wunused warnings, bump WARNS to 6

The output is still broken if prove -rv is run and the testcase aborts
prematurely with fail_assertion (the testcase doesn't really conform to TAP
protocol properly, except when it completes fully)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix -Wunused warnings, bump WARNS to 6
ngie [Fri, 10 Apr 2015 07:59:46 +0000 (07:59 +0000)]
Fix -Wunused warnings, bump WARNS to 6

The testcase fails today on subtest # 9

The output is still broken if prove -rv is run and the testcase aborts
prematurely (the testcase doesn't really conform to TAP protocol properly,
except when it completes fully)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix warnings, fix a typo in a testcase description, bump WARNS to 3
ngie [Fri, 10 Apr 2015 07:35:53 +0000 (07:35 +0000)]
Fix warnings, fix a typo in a testcase description, bump WARNS to 3

- Remove argc/argv (-Wunused)
- Cast len in comparison to size_t (-Wsign-compare)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoUMA zone limit can be lowered, so remove protection against from
glebius [Fri, 10 Apr 2015 06:56:49 +0000 (06:56 +0000)]
UMA zone limit can be lowered, so remove protection against from
the sysctl_handle_uma_zone_max().

Sponsored by: Nginx, Inc.

9 years agoo Use Jenkins hash. With previous hash, for a single source IP address and
glebius [Fri, 10 Apr 2015 06:55:43 +0000 (06:55 +0000)]
o Use Jenkins hash. With previous hash, for a single source IP address and
  sequential IP ID case (e.g. ping -f), distribution fell into 8-10 buckets
  out of 64. With Jenkins hash, distribution is even.
o Add random seed to the hash.

Sponsored by: Nginx, Inc.

9 years agoMove all code related to IP fragment reassembly to ip_reass.c. Some
glebius [Fri, 10 Apr 2015 06:02:37 +0000 (06:02 +0000)]
Move all code related to IP fragment reassembly to ip_reass.c.  Some
function names have changed and comments are reformatted or added, but
there is no functional change.

Claim copyright for me and Adrian.

Sponsored by: Nginx, Inc.

9 years ago- Fix support with new elftoolchain readelf(1)
bdrewery [Thu, 9 Apr 2015 22:16:35 +0000 (22:16 +0000)]
- Fix support with new elftoolchain readelf(1)
- Fix not finding global symbols by checking for D and R.
- Follow symlinks
- Show which matching symbol was used to consider the library needed.

Discussed with: bapt

9 years agoNow that IP reassembly is no longer under single lock, book-keeping amount
glebius [Thu, 9 Apr 2015 22:13:27 +0000 (22:13 +0000)]
Now that IP reassembly is no longer under single lock, book-keeping amount
of allocations in V_nipq is racy.  To fix that, we would simply stop doing
book-keeping ourselves, and rely on UMA doing that.  There could be a
slight overcommit due to caches, but that isn't a big deal.

o V_nipq and V_maxnipq go away.
o net.inet.ip.fragpackets is now just SYSCTL_UMA_CUR()
o net.inet.ip.maxfragpackets could have been just SYSCTL_UMA_MAX(), but
  historically it has special semantics about values of 0 and -1, so
  provide sysctl_maxfragpackets() to handle these special cases.
o If zone limit lowers either due to net.inet.ip.maxfragpackets or due to
  kern.ipc.nmbclusters, then new function ipq_drain_tomax() goes over
  buckets and frees the oldest packets until we are in the limit.
  The code that (incorrectly) did that in ip_slowtimo() is removed.
o ip_reass() doesn't check any limits and calls uma_zalloc(M_NOWAIT).
  If it fails, a new function ipq_reuse() is called. This function will
  find the oldest packet in the currently locked bucket, and if there is
  none, it will search in other buckets until success.

Sponsored by: Nginx, Inc.

9 years agortsold does not need to link to libkvm
bapt [Thu, 9 Apr 2015 21:52:14 +0000 (21:52 +0000)]
rtsold does not need to link to libkvm

9 years agorpc.locked does not need to link to libutil
bapt [Thu, 9 Apr 2015 21:48:17 +0000 (21:48 +0000)]
rpc.locked does not need to link to libutil

9 years agobhyvectl does not need to link to libutil
bapt [Thu, 9 Apr 2015 21:39:58 +0000 (21:39 +0000)]
bhyvectl does not need to link to libutil

9 years agoFix overlinking in bhyve:
bapt [Thu, 9 Apr 2015 21:38:40 +0000 (21:38 +0000)]
Fix overlinking in bhyve:

libvmmapi is actually needed to be linked to libutil, not bhyve nor bhyveload

9 years agoDon't enable RX and TX before their initial configuration is done, i. e.
marius [Thu, 9 Apr 2015 21:35:44 +0000 (21:35 +0000)]
Don't enable RX and TX before their initial configuration is done, i. e.
after setting up interrupt moderation but before turning interrupts on.
This matches what Realtek's r8168 Linux driver does as of version 8.039.00
and fixes problems with certain incarnations of certain MAC revisions
like the interface requiring an extra up/down-cycle after boot to start
working or DMA configuration not being adhered to.

PR: 193743, 197535
MFC after: 1 week

9 years agoauthpf does not need to link to libmd
bapt [Thu, 9 Apr 2015 21:33:57 +0000 (21:33 +0000)]
authpf does not need to link to libmd

9 years agoPrint 64-bit addresses cleary with leading zeros to avoid confusions.
jkim [Thu, 9 Apr 2015 21:32:40 +0000 (21:32 +0000)]
Print 64-bit addresses cleary with leading zeros to avoid confusions.

MFC after: 1 week

9 years agoIn the ip_reass() do packet examination and adjusting before acquiring
glebius [Thu, 9 Apr 2015 21:32:32 +0000 (21:32 +0000)]
In the ip_reass() do packet examination and adjusting before acquiring
locks and doing lookups.

Sponsored by: Nginx, Inc.

9 years agoRemove uneeded link to libkiconv
bapt [Thu, 9 Apr 2015 21:30:11 +0000 (21:30 +0000)]
Remove uneeded link to libkiconv

9 years agoConvert mt(1) and libmt to LIBADD
bapt [Thu, 9 Apr 2015 21:26:38 +0000 (21:26 +0000)]
Convert mt(1) and libmt to LIBADD

While here fix missing link to libbsdxml for libmt
Fix overlinking in mt(1)
Make add an indirect libmt dependency on bsdxml to allow static linking if
needed

9 years agoDo not crash when RSDT/XSDT contains an empty entry.
jkim [Thu, 9 Apr 2015 21:26:23 +0000 (21:26 +0000)]
Do not crash when RSDT/XSDT contains an empty entry.

Reported by: Slawa Olhovchenkov <slw@zxy.spb.ru>
MFC after: 3 days

9 years agoRemove uneeded sbuf header
bapt [Thu, 9 Apr 2015 21:23:27 +0000 (21:23 +0000)]
Remove uneeded sbuf header

9 years agoMake ip reassembly queue mutexes per-vnet, putting them into the structure
glebius [Thu, 9 Apr 2015 21:17:07 +0000 (21:17 +0000)]
Make ip reassembly queue mutexes per-vnet, putting them into the structure
that they protect.

Sponsored by: Nginx, Inc.

9 years agoiscsictl(8) does not actually needs to be linked to libcam nor libutil
bapt [Thu, 9 Apr 2015 21:14:40 +0000 (21:14 +0000)]
iscsictl(8) does not actually needs to be linked to libcam nor libutil

9 years agoConvert cftmerge to LIBADD and remove link on libdwarf which is not needed
bapt [Thu, 9 Apr 2015 21:08:21 +0000 (21:08 +0000)]
Convert cftmerge to LIBADD and remove link on libdwarf which is not needed

9 years agobsnmptools does not depends on libcrypto
bapt [Thu, 9 Apr 2015 21:05:48 +0000 (21:05 +0000)]
bsnmptools does not depends on libcrypto

9 years ago- ggatel.8 currently doesn't mention the 'rescue' command and
jgh [Thu, 9 Apr 2015 20:58:38 +0000 (20:58 +0000)]
- ggatel.8 currently doesn't mention the 'rescue' command and
  documents a non-existing 'attach' command instead.
- while here address a spelling error

PR: 199111
Differential Revision: https://reviews.freebsd.org/D2259
Submitted by: fk@fabiankeil.de
Obtained from: ElectroBSD
Approved by: wblock (mentor)
MFC after: 1 week

9 years agoRemove EOL whitespace from i386 EFI loader source
emaste [Thu, 9 Apr 2015 19:48:42 +0000 (19:48 +0000)]
Remove EOL whitespace from i386 EFI loader source

9 years agoUpdate documented OEM string in newfs_msdos(8).
pfg [Thu, 9 Apr 2015 19:07:01 +0000 (19:07 +0000)]
Update documented OEM string in newfs_msdos(8).

This was updated in r203868 to better match the naming scheme
in other OSs that use FAT.

MFC after: 3 days

9 years agoMFV r281278:
delphij [Thu, 9 Apr 2015 18:03:27 +0000 (18:03 +0000)]
MFV r281278:

 - Update xz to 5.2.1, where the most visible change is that it
   fixed a compression-ratio regression in fast mode LZMA1 and
   LZMA2 and used cpuset_getaffinity() for CPU cores detection.
 - Make liblzma use the base system SHA256 implementation instead of
   the bundled one.
 - Additional annotation in config.h for FreeBSD specific tweaks.
 - Refresh symbols in XZprivate_1.0 to reflect reality.

Relnotes: yes
MFC after: 1 month (TBD)

9 years agoAvoid escaping EOL for line continuation
emaste [Thu, 9 Apr 2015 15:08:39 +0000 (15:08 +0000)]
Avoid escaping EOL for line continuation

Reported by: kib

9 years agoRevert 281276 as unnecessary. Proper change to be committed
gnn [Thu, 9 Apr 2015 14:44:30 +0000 (14:44 +0000)]
Revert 281276 as unnecessary.  Proper change to be committed
to the base polling code in a subsequent commit.

Pointed out by: glebius

Sponsored by: Rubicon Communications (NetGate)

9 years agoar: Disallow directory traversal
emaste [Thu, 9 Apr 2015 13:45:17 +0000 (13:45 +0000)]
ar: Disallow directory traversal

Set ARCHIVE_EXTRACT_SECURE_SYMLINKS and ARCHIVE_EXTRACT_SECURE_NODOTDOT
as in bsdtar to prevent extraction of archive entries whose pathnames
contain .. or whose target directory would be altered by a symlink.
Also disallow absolute pathnames.

We don't currently provide an option to disable this behaviour (as
bsdtar's -P does). It is unlikely to be a problem in practice for ar(1),
but the -P option is not currently used and available if we want to
consider it for this purpose.

Differential Revision: https://reviews.freebsd.org/D1524
Reported by: Alexander Cherepanov <cherepan@mccme.ru>
Approved by: delphij
Obtained from: ELF tool chain ar, Ticket #474
MFC after: 1 week
Relnotes: Yes
Sponsored by: The FreeBSD Foundation

9 years agoRemove sleeps from geom_up thread on device destruction.
mav [Thu, 9 Apr 2015 13:09:05 +0000 (13:09 +0000)]
Remove sleeps from geom_up thread on device destruction.

MFC after: 3 days.

9 years agoFix the check for maximum mbuf's size needed to send ND6 NA and NS.
ae [Thu, 9 Apr 2015 12:57:58 +0000 (12:57 +0000)]
Fix the check for maximum mbuf's size needed to send ND6 NA and NS.
It is acceptable that the size can be equal to MCLBYTES. In the later
KAME's code this check has been moved under DIAGNOSTIC ifdef, because
the size of NA and NS is much smaller than MCLBYTES. So, it is safe to
replace the check with KASSERT.

PR: 199304
Discussed with: glebius
MFC after: 1 week

9 years agoAdd R_AARCH64_NONE, the null relocation.
andrew [Thu, 9 Apr 2015 10:28:05 +0000 (10:28 +0000)]
Add R_AARCH64_NONE, the null relocation.

9 years agoPrint error values with hex to make it easier to find the EFI error type.
andrew [Thu, 9 Apr 2015 10:15:47 +0000 (10:15 +0000)]
Print error values with hex to make it easier to find the EFI error type.

9 years agoOnly use -fPIC when building boot1.efi for x86.
andrew [Thu, 9 Apr 2015 10:08:10 +0000 (10:08 +0000)]
Only use -fPIC when building boot1.efi for x86.

Sponsored by: The FreeBSD Foundation

9 years agoAdd the arm64 machine dependent parts of ficl. This is not machine
andrew [Thu, 9 Apr 2015 10:00:26 +0000 (10:00 +0000)]
Add the arm64 machine dependent parts of ficl. This is not machine
dependent, as most copies of these files are identical, but unfortunately
this is still needed.

Sponsored by: The FreeBSD Foundation

9 years agoUse TAILQ_FOREACH_SAFE() instead of implementing it ourselves.
glebius [Thu, 9 Apr 2015 09:00:32 +0000 (09:00 +0000)]
Use TAILQ_FOREACH_SAFE() instead of implementing it ourselves.

Sponsored by: Nginx, Inc.

9 years agoIf V_maxnipq is set to zero, drain the queue here and now, instead of
glebius [Thu, 9 Apr 2015 08:56:23 +0000 (08:56 +0000)]
If V_maxnipq is set to zero, drain the queue here and now, instead of
relying on timeouts.

Sponsored by: Nginx, Inc.