jmmv [Sun, 16 Mar 2014 04:09:22 +0000 (04:09 +0000)]
Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout.
This change was originally going to only migrate the usr.sbin tests but, as
it turns out, the usr.sbin/sa/ tests require files from usr.bin/lastcomm/
so it's better to just also migrate the latter at the same time. The other
usr.bin tests will be moved separately.
To make these tests work within the test suite, some of them have required
changes to prevent modifying the source directory and instead just rely on
the current directory for file manipulation.
adrian [Sun, 16 Mar 2014 02:41:47 +0000 (02:41 +0000)]
Handle the case where both arge0 and arge1 MAC addresses are available via
'eeprommac'.
The existing driver would just make arge units past 0 take the primary
MAC and increment it by the unit number, without correct address wrapping.
That has to be fixed at a later date.
Tested:
* Atheros DB120 reference obard
adrian [Sun, 16 Mar 2014 02:34:33 +0000 (02:34 +0000)]
* Add ethernet MAC configuration from the EEPROM for arge0/arge1
* The AR9344 switch has 5 ports in use, not four.
Tested:
* DB120 reference board
jmmv [Sun, 16 Mar 2014 02:32:44 +0000 (02:32 +0000)]
Add Makefile missed in r263220.
jmmv [Sun, 16 Mar 2014 02:27:27 +0000 (02:27 +0000)]
Change etcupdate tests to return 1 on test failures.
This is a prerequisite for hooking these tests into the test suite. And,
fortunately, all tests seem to pass!
jmmv [Sun, 16 Mar 2014 02:07:08 +0000 (02:07 +0000)]
Migrate tools/regression/sbin/ to the new tests layout.
Pretty much all that this change does is shuffles the code around and hooks
it into the regular build. The code of the old tests has not changed.
jmg [Sun, 16 Mar 2014 01:55:30 +0000 (01:55 +0000)]
I clearly didn't test the modules... add sha256c.c to the various
modules that included sha2.c...
jmg [Sun, 16 Mar 2014 01:43:23 +0000 (01:43 +0000)]
replace the kernel's version w/ cperciva's implementation... In all
my tests, it is faster ~20%, even on an old IXP425 533MHz it is ~45%
faster... This is partly due to loop unrolling, so the code size does
significantly increase... I do plan on committing a version that
rolls up the loops again for smaller code size for embedded systems
where size is more important than absolute performance (it'll save ~6k
code)...
The kernel implementation is now shared w/ userland's libcrypt and
libmd...
We drop support for sha256 from sha2.c, so now sha2.c only contains
sha384 and sha512...
Reviewed by: secteam@
jmmv [Sun, 16 Mar 2014 01:22:23 +0000 (01:22 +0000)]
Document support for TAP-compliant Perl test programs.
jmg [Sun, 16 Mar 2014 01:17:09 +0000 (01:17 +0000)]
Xref pthread_cancel...
bump Dd, _exit was still dated 1996! yes, it has been modified a few
times since then...
MFC after: 1 week
jmg [Sun, 16 Mar 2014 00:57:26 +0000 (00:57 +0000)]
copy these files from lib/libmd in preperation for moving these files
into the kernel...
jmg [Sun, 16 Mar 2014 00:53:40 +0000 (00:53 +0000)]
change td_retval into a union w/ off_t, with defines to mask the
change... This eliminates a cast, and also forces td_retval
(often 2 32-bit registers) to be aligned so that off_t's can be
stored there on arches with strict alignment requirements like
armeb (AVILA)... On i386, this doesn't change alignment, and on
amd64 it doesn't either, as register_t is already 64bits...
This will also prevent future breakage due to people adding additional
fields to the struct...
This gets AVILA booting a bit farther...
Reviewed by: bde
tychon [Sat, 15 Mar 2014 23:09:34 +0000 (23:09 +0000)]
Fix a race wherein the source of an interrupt vector is wrongly
attributed if an ExtINT arrives during interrupt injection.
Also, fix a spurious interrupt if the PIC tries to raise an interrupt
before the outstanding one is accepted.
Finally, improve the PIC interrupt latency when another interrupt is
raised immediately after the outstanding one is accepted by creating a
vmexit rather than waiting for one to occur by happenstance.
Approved by: neel (co-mentor)
andrew [Sat, 15 Mar 2014 21:58:07 +0000 (21:58 +0000)]
On armv6 access both the softfloat and, when available, the vfp to get and
set the floating-point environment.
imp [Sat, 15 Mar 2014 16:59:57 +0000 (16:59 +0000)]
Fix wandboard to include tmpfs, mbr and bsd labels.
PR: 187606
Submitted by: Takanori Sawada
jilles [Sat, 15 Mar 2014 14:58:48 +0000 (14:58 +0000)]
sh: Allow kill %job on jobs started without job control.
When killing a %job started without job control, kill all processes in it.
As with process groups and zombies, if any process in the job can be killed
or has already terminated, the command is successful.
This also fixes occasional failures of the builtins/kill1.0 test.
jmmv [Sat, 15 Mar 2014 09:27:59 +0000 (09:27 +0000)]
Add some documentation for bsd.test.mk.
glebius [Sat, 15 Mar 2014 06:49:32 +0000 (06:49 +0000)]
Garbage collect long time obsoleted (or never used) stuff from routing API.
eadler [Sat, 15 Mar 2014 02:26:46 +0000 (02:26 +0000)]
Be a little more verbose in service's error message
PR: bin/187118
Submitted by: culot
eadler [Sat, 15 Mar 2014 01:20:42 +0000 (01:20 +0000)]
Use the system queue.h instead of bundling its own.
PR: bin/187067
Submitted by: lulf
rwatson [Sat, 15 Mar 2014 00:59:23 +0000 (00:59 +0000)]
Revert a small portion of r263198 left over from local testing: don't
enable PCB groups and RSS by default [yet].
imp [Sat, 15 Mar 2014 00:58:08 +0000 (00:58 +0000)]
Fix cut-and-paste error message.
rwatson [Sat, 15 Mar 2014 00:57:50 +0000 (00:57 +0000)]
Several years after initial development, merge prototype support for
linking NIC Receive Side Scaling (RSS) to the network stack's
connection-group implementation. This prototype (and derived patches)
are in use at Juniper and several other FreeBSD-using companies, so
despite some reservations about its maturity, merge the patch to the
base tree so that it can be iteratively refined in collaboration rather
than maintained as a set of gradually diverging patch sets.
(1) Merge a software implementation of the Toeplitz hash specified in
RSS implemented by David Malone. This is used to allow suitable
pcbgroup placement of connections before the first packet is
received from the NIC. Software hashing is generally avoided,
however, due to high cost of the hash on general-purpose CPUs.
(2) In in_rss.c, maintain authoritative versions of RSS state intended
to be pushed to each NIC, including keying material, hash
algorithm/ configuration, and buckets. Provide software-facing
interfaces to hash 2- and 4-tuples for IPv4 and IPv6 using both
the RSS standardised Toeplitz and a 'naive' variation with a hash
efficient in software but with poor distribution properties.
Implement rss_m2cpuid()to be used by netisr and other load
balancing code to look up the CPU on which an mbuf should be
processed.
(3) In the Ethernet link layer, allow netisr distribution using RSS as
a source of policy as an alternative to source ordering; continue
to default to direct dispatch (i.e., don't try and requeue packets
for processing on the 'right' CPU if they arrive in a directly
dispatchable context).
(4) Allow RSS to control tuning of connection groups in order to align
groups with RSS buckets. If a packet arrives on a protocol using
connection groups, and contains a suitable hardware-generated
hash, use that hash value to select the connection group for pcb
lookup for both IPv4 and IPv6. If no hardware-generated Toeplitz
hash is available, we fall back on regular PCB lookup risking
contention rather than pay the cost of Toeplitz in software --
this is a less scalable but, at my last measurement, faster
approach. As core counts go up, we may want to revise this
strategy despite CPU overhead.
Where device drivers suitably configure NICs, and connection groups /
RSS are enabled, this should avoid both lock and line contention during
connection lookup for TCP. This commit does not modify any device
drivers to tune device RSS configuration to the global RSS
configuration; patches are in circulation to do this for at least
Chelsio T3 and Intel 1G/10G drivers. Currently, the KPI for device
drivers is not particularly robust, nor aware of more advanced features
such as runtime reconfiguration/rebalancing. This will hopefully prove
a useful starting point for refinement.
No MFC is scheduled as we will first want to nail down a more mature
and maintainable KPI/KBI for device drivers.
Sponsored by: Juniper Networks (original work)
Sponsored by: EMC/Isilon (patch update and merge)
neel [Fri, 14 Mar 2014 22:07:08 +0000 (22:07 +0000)]
Don't dump entries that were modified during the time the KTR buffer was being
copied to userspace. Failing to do this would result in entries at the bottom
of the ktrdump output to be more recent than entries at the top.
With this change the timestamps are monotonically decreasing going from the
top to the bottom of the ktrdump output.
jilles [Fri, 14 Mar 2014 21:45:37 +0000 (21:45 +0000)]
sh: Add some consts.
neel [Fri, 14 Mar 2014 21:35:16 +0000 (21:35 +0000)]
Fix an issue with ktrdump(8) where it would not print all entries in the
KTR buffer.
This happens when 'i' tries to wrap around from 0 to 'entries - 1'. Since 'i'
is a signed integer the modulo operation actually returns a negative number.
Fix this by computing the next index to use "by hand" instead of relying
on the modulo operator.
imp [Fri, 14 Mar 2014 21:18:41 +0000 (21:18 +0000)]
Remove TARGET_BIG_ENDIAN. It's no longer relevant.
imp [Fri, 14 Mar 2014 21:13:58 +0000 (21:13 +0000)]
Rely on default UFS type (though this is unlikely to change).
Submitted by: eadler
eadler [Fri, 14 Mar 2014 20:54:15 +0000 (20:54 +0000)]
libusb: add libusb_log_level enum
This is documented on http://libusb.sourceforge.net/api-1.0/group__lib.html
imp [Fri, 14 Mar 2014 20:20:36 +0000 (20:20 +0000)]
Be more explicit about setting SRCCONF to /dev/null (plus allow it to
be overridden).
PR: 160443
Submitted by: Garrett Cooper
imp [Fri, 14 Mar 2014 20:20:32 +0000 (20:20 +0000)]
NanoBSD has a utility shell script called save_cfg which helps keep
/cfg updated with the modified configuration files in /etc. I have
written an improved version with the following features:
* Recurses directories.
* Only requires file arguments the first time the file/directory is
* added to /cfg.
* Handles file deletions.
PR: 145962, 157533
Submitted by: Aragon Gouveia and Alex Bakhtin
imp [Fri, 14 Mar 2014 19:46:32 +0000 (19:46 +0000)]
When NANO_IMAGE_MBRONLY is set, and we're backing via swap, only copy
the MBR.
PR: 136889
Submitted by: Aragon Gouveia
imp [Fri, 14 Mar 2014 19:46:18 +0000 (19:46 +0000)]
Print an error message when we exit out early.
PR: 136889
Submitted by: Aragon Gouveia
imp [Fri, 14 Mar 2014 19:45:40 +0000 (19:45 +0000)]
With the more generous footprints today, it makes little sense to use
UFS1 by default any more. Switch to UFS2.
imp [Fri, 14 Mar 2014 19:45:32 +0000 (19:45 +0000)]
Make pcengines config files compile again.
imp [Fri, 14 Mar 2014 19:45:26 +0000 (19:45 +0000)]
Fix build with spaces in names.
PR: 162736
emaste [Fri, 14 Mar 2014 19:37:37 +0000 (19:37 +0000)]
Use the existence of module metadata to indicate framebuffer presence
bdrewery [Fri, 14 Mar 2014 17:37:38 +0000 (17:37 +0000)]
Fix ASSUME_ALWAYS_YES not being parsed properly from config after UCL conversion.
Sponsored by: EMC / Isilon Storage Division
MFC after: 1 week
bdrewery [Fri, 14 Mar 2014 17:20:45 +0000 (17:20 +0000)]
Fix ABI from /usr/local/etc/pkg.conf not being respected.
Regression from r259266.
Sponsored by: EMC / Isilon Storage Division
MFC after: 1 week
glebius [Fri, 14 Mar 2014 17:20:23 +0000 (17:20 +0000)]
Another miss from r263140.
glebius [Fri, 14 Mar 2014 17:18:21 +0000 (17:18 +0000)]
A miss from r263140.
bdrewery [Fri, 14 Mar 2014 13:58:02 +0000 (13:58 +0000)]
Add missing FALLTHROUGH comment in tmpfs_dir_getdents for looking up '.' and
'..'.
Reviewed by: Russell Cattelan
Sponsored by: EMC / Isilon Storage Division
MFC after: 2 weeks
bdrewery [Fri, 14 Mar 2014 13:55:48 +0000 (13:55 +0000)]
Rename cnt to maxcookies and change its use as the condition for when to
lookup cookies to be less obscure.
No functional change.
Since r245115, cnt has not really been needed in tmpfs_dir_getdents(). Keep
it for the MPASS() for now though.
Sponsored by: EMC / Isilon Storage Division
MFC after: 2 weeks
jmmv [Fri, 14 Mar 2014 12:55:06 +0000 (12:55 +0000)]
Remove unnecessary svn:executable property from source file.
The atf cp_test.sh sample file should have never been marked executable in
the first place because this file needs to be "built" first before being
usable.
jmmv [Fri, 14 Mar 2014 12:52:55 +0000 (12:52 +0000)]
Move FreeBSD Test Suite-specific code to a suite.test.mk file.
The new suite.test.mk file contains all the logic needed to install test
programs under /usr/tests/ and to support Kyua as the run-time engine.
This file is included by default by bsd.test.mk so Makefiles do not need
to care about its existence.
Specific Makefiles can define NOT_FOR_TEST_SUITE to indicate that whatever
test programs they are building are not supposed to be installed under
/usr/tests/ nor run by Kyua. (The effect of passing this setting is that
suite.test.mk is simply not included.)
NOT_FOR_TEST_SUITE should never be used by Makefiles in the base system.
This functionality is provided so that third-parties can hook in their
own test code, with different semantics, if they wish. This was asked
for by sjg@.
brueffer [Fri, 14 Mar 2014 12:15:28 +0000 (12:15 +0000)]
Add support for AMD Family 16h (Kabini) sensor devices.
PR: 186587
Submitted by: David Rufino <david.rufino at gmail.com>
MFC after: 2 weeks
glebius [Fri, 14 Mar 2014 11:45:19 +0000 (11:45 +0000)]
Add placeholders for IPX/SPX and AppleTalk priveledges, to avoid
number clashes with any future constants.
Suggested by: rwatson
jmmv [Fri, 14 Mar 2014 08:56:19 +0000 (08:56 +0000)]
Make bsd.test.mk the only public mk fragment for the building of tests.
Change {atf,plain,tap}.test.mk to be internal implementation details of
bsd.test.mk. Makefiles that build tests should now only include bsd.test.mk
and declaratively specify what they want to build, without worrying about
the internal implementation of the mk files.
The reason for this change is to permit building test programs of different
interfaces from a single directory, which is something I had a need for
while porting tests over from src/tools/regression/.
Additionally, this change makes it possible to perform some other requested
changes to bsd.test.mk in an easier manner. Coming soon.
des [Fri, 14 Mar 2014 08:43:56 +0000 (08:43 +0000)]
Remove lukemftpd. It was disconnected from the build in 2009.
MFC after: 3 days
hselasky [Fri, 14 Mar 2014 08:42:30 +0000 (08:42 +0000)]
Workaround for USB MIDI adapters which use non-supported values of
wMaxPacketSize for BULK endpoints.
MFC after: 1 week
hselasky [Fri, 14 Mar 2014 07:11:33 +0000 (07:11 +0000)]
Add support for more sample rates to USB audio driver.
Submitted by: Shunsuke Suganuma <
3226388001@jcom.home.ne.jp>
PR: usb/171254
MFC after: 1 week
kevlo [Fri, 14 Mar 2014 06:38:22 +0000 (06:38 +0000)]
Reset the bit of the R92C_MCUFWDL associated with checksum report
before loading firmware page. It may fix this problem:
"urtwn0: timeout waiting for checksum report"
kevlo [Fri, 14 Mar 2014 06:37:08 +0000 (06:37 +0000)]
Similar to r246614, fix panic on removing urtwn(4). It happens because
nodes are freed after the adapter is gone.
glebius [Fri, 14 Mar 2014 06:29:43 +0000 (06:29 +0000)]
Remove AppleTalk support.
AppleTalk was a network transport protocol for Apple Macintosh devices
in 80s and then 90s. Starting with Mac OS X in 2000 the AppleTalk was
a legacy protocol and primary networking protocol is TCP/IP. The last
Mac OS X release to support AppleTalk happened in 2009. The same year
routing equipment vendors (namely Cisco) end their support.
Thus, AppleTalk won't be supported in FreeBSD 11.0-RELEASE.
dteske [Fri, 14 Mar 2014 03:42:05 +0000 (03:42 +0000)]
Rewrite usermgmt -- hooking it into the scripting system with dispatch
commands addUser, deleteUser, and editUser. Getting rid of the awkward-
to-use `userinput' bolt-on which Ron and I talked about rewriting.
dteske [Fri, 14 Mar 2014 03:37:08 +0000 (03:37 +0000)]
Add protection against input containing single-quotes (e.g., i18n-users).
dteske [Fri, 14 Mar 2014 03:34:43 +0000 (03:34 +0000)]
For non-interactive scripts, forgot to check we were given an argument
before proceeding.
dteske [Fri, 14 Mar 2014 03:33:03 +0000 (03:33 +0000)]
Fix a bug preventing errors from pw(8) from filtering up to a dialog.
Programs running as rvalue to pipe cannot access current namespace.
dteske [Fri, 14 Mar 2014 03:28:21 +0000 (03:28 +0000)]
Reduce the sleep cycle when using dialog(1) to 1-second.
dteske [Fri, 14 Mar 2014 03:25:33 +0000 (03:25 +0000)]
Fix comments and whitespace.
dteske [Fri, 14 Mar 2014 03:15:02 +0000 (03:15 +0000)]
Fix a code-typo that prevented auto-sizing of the dialog.
eadler [Fri, 14 Mar 2014 03:12:41 +0000 (03:12 +0000)]
Remove directory which should not have been re-added.
eadler [Fri, 14 Mar 2014 03:07:51 +0000 (03:07 +0000)]
multiple: Remove 3rd clause from BSD license where approved by the
regents and renumber.
This patch skips files in contrib/ and crypto/
Acked by: imp
Discussed with: emaste
dteske [Fri, 14 Mar 2014 03:00:02 +0000 (03:00 +0000)]
Point hat! Fix a broken f_isinteger().
glebius [Fri, 14 Mar 2014 02:58:48 +0000 (02:58 +0000)]
Remove IPX support.
IPX was a network transport protocol in Novell's NetWare network operating
system from late 80s and then 90s. The NetWare itself switched to TCP/IP
as default transport in 1998. Later, in this century the Novell Open
Enterprise Server became successor of Novell NetWare. The last release
that claimed to still support IPX was OES 2 in 2007. Routing equipment
vendors (e.g. Cisco) discontinued support for IPX in 2011.
Thus, IPX won't be supported in FreeBSD 11.0-RELEASE.
dteske [Fri, 14 Mar 2014 02:56:49 +0000 (02:56 +0000)]
Remove useless NULL string '' in compound strings. Look very closely.
eadler [Fri, 14 Mar 2014 02:53:36 +0000 (02:53 +0000)]
Set nokeyword property on some files which don't already have it. This will allow my next commit.
dteske [Fri, 14 Mar 2014 02:50:32 +0000 (02:50 +0000)]
Fix future namespace issues for functions taking $var_to_set -- functions
taking a variable to set need to make sure they protect their locals; if
$var_to_set positional argument coincides with a local the expected call
to `setvar' will fail to reach outside of the function's namespace. When
such collisions are experienced (as I did in the rewrite of usermgmt) the
solution is to append a full or abbreviated version of the function name
to the local (ultimately eliminating collisions). This is rarely needed
and only occurs when you have a lot of like-named functions that pass
very similar $var_to_set positional arguments to each other (such as-is
the case with an expansive library such as `dialog.subr').
dteske [Fri, 14 Mar 2014 02:40:52 +0000 (02:40 +0000)]
Update copyright.
dteske [Fri, 14 Mar 2014 02:39:42 +0000 (02:39 +0000)]
Comments.
dteske [Fri, 14 Mar 2014 02:38:56 +0000 (02:38 +0000)]
Add debug statement just before attempting to exec a module.
dteske [Fri, 14 Mar 2014 02:37:39 +0000 (02:37 +0000)]
Remove indexfile from debug statement as it is already logged by
f_index_menusel_command() used just-prior to this debug statement.
Also, log the arguments being passed to the resword.
bdrewery [Fri, 14 Mar 2014 02:10:30 +0000 (02:10 +0000)]
Cleanup redundant logic and add some comments to help explain how
it works in lieu of potentially less clear code.
Sponsored by: EMC / Isilon Storage Division
Discussed with: Russell Cattelan
bdrewery [Fri, 14 Mar 2014 01:43:55 +0000 (01:43 +0000)]
Fix -o size less than PAGE_SIZE resulting in SIZE_MAX being used.
Discussed with: kib
MFC after: 2 weeks
bdrewery [Fri, 14 Mar 2014 01:17:11 +0000 (01:17 +0000)]
Combine similar code from vprintf(9) and log(9).
MFC after: 2 weeks
ian [Fri, 14 Mar 2014 00:49:02 +0000 (00:49 +0000)]
Fix an uninitialized variable error I perpetrated when splitting some
code into a separate function. Pass the missing value from main() to
the probe_disks() function.
delphij [Fri, 14 Mar 2014 00:47:46 +0000 (00:47 +0000)]
Hide a few messages under bootverbose.
Reviewed by: Abhishek Gupta
MFC after: 2 weeks
brueffer [Thu, 13 Mar 2014 23:31:05 +0000 (23:31 +0000)]
Re-format the license to conform to our BSD license template as much
as possible. This does not change the wording in any way.
Remove the 3rd clause ("advertising clause") of the BSD license as
permitted by the University of Berkeley on July 22, 1999. While the
clause itself mentions Lawrence Berkeley Laboratory, UCB is the sole
copyright holder of this file.
Reviewed by: imp, emaste, eadler
MFC after: 2 weeks
dim [Thu, 13 Mar 2014 23:09:48 +0000 (23:09 +0000)]
Pull in r201021 from upstream libc++ trunk:
Fix for PR18735 - self-assignment for map/multimap gives incorrect
results in C++03
(Please note: that is an LLVM PR identifier, not a FreeBSD one.)
Reported by: rakuco
MFC after: 3 days
mav [Thu, 13 Mar 2014 19:26:26 +0000 (19:26 +0000)]
Report ZVOL block size as GEOM stripesize.
MFC after: 2 weeks
emaste [Thu, 13 Mar 2014 19:26:23 +0000 (19:26 +0000)]
Connect 64-bit boot ficl to the build
It is not yet used, but this will ensure it doesn't get broken.
Sponsored by: The FreeBSD Foundation
asomers [Thu, 13 Mar 2014 18:42:12 +0000 (18:42 +0000)]
Replace 4.4BSD Lite's unix domain socket backpressure hack with a cleaner
mechanism, based on the new SB_STOP sockbuf flag. The old hack dynamically
changed the sending sockbuf's high water mark whenever adding or removing
data from the receiving sockbuf. It worked for stream sockets, but it never
worked for SOCK_SEQPACKET sockets because of their atomic nature. If the
sockbuf was partially full, it might return EMSGSIZE instead of blocking.
The new solution is based on DragonFlyBSD's fix from commit
3a6117bbe0ed6a87605c1e43e12a1438d8844380 on 2008-05-27. It adds an SB_STOP
flag to sockbufs. Whenever uipc_send surpasses the socket's size limit, it
sets SB_STOP on the sending sockbuf. sbspace() will then return 0 for that
sockbuf, causing sosend_generic and friends to block. uipc_rcvd will
likewise clear SB_STOP. There are two fringe benefits: uipc_{send,rcvd} no
longer need to call chgsbsize() on every send and receive because they don't
change the sockbuf's high water mark. Also, uipc_sense no longer needs to
acquire the UIPC linkage lock, because it's simpler to compute the
st_blksizes.
There is one drawback: since sbspace() will only ever return 0 or the
maximum, sosend_generic will allow the sockbuf to exceed its nominal maximum
size by at most one packet of size less than the max. I don't think that's
a serious problem. In fact, I'm not even positive that FreeBSD guarantees a
socket will always stay within its nominal size limit.
sys/sys/sockbuf.h
Add the SB_STOP flag and adjust sbspace()
sys/sys/unpcb.h
Delete the obsolete unp_cc and unp_mbcnt fields from struct unpcb.
sys/kern/uipc_usrreq.c
Adjust uipc_rcvd, uipc_send, and uipc_sense to use the SB_STOP
backpressure mechanism. Removing obsolete unpcb fields from
db_show_unpcb.
tests/sys/kern/unix_seqpacket_test.c
Clear expected failures from ATF.
Obtained from: DragonFly BSD
PR: kern/185812
Reviewed by: silence from freebsd-net@ and rwatson@
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation
emaste [Thu, 13 Mar 2014 18:17:18 +0000 (18:17 +0000)]
Add amd64 EFI headers
Sponsored by: The FreeBSD Foundation
dteske [Thu, 13 Mar 2014 18:16:42 +0000 (18:16 +0000)]
Fix pw(8) deletion of group "username" on userdel even if group "username"
is not associated with user "username". E.g., user "foo" has primary group
"wheel" and is unassociated with group "foo", yet userdel would delete the
group "foo" when deleting user "foo" (despite the fact that user "foo" is
not associated with group "foo" in any way).
Patch committed with minor style(9) changes.
PR: bin/169471
Submitted by: Alexander Pyhalov <apyhalov@gmail.com>
jhb [Thu, 13 Mar 2014 18:11:42 +0000 (18:11 +0000)]
Correct type for malloc().
Submitted by: "Conrad Meyer" <conrad.meyer@isilon.com>
eadler [Thu, 13 Mar 2014 16:51:40 +0000 (16:51 +0000)]
Fix pointer type in call to malloc
Submitted by: Meyer, Conrad conrad.meyer@isilon.com
eadler [Thu, 13 Mar 2014 16:51:01 +0000 (16:51 +0000)]
Fix pointer type in call to malloc
Submitted by: Meyer, Conrad conrad.meyer@isilon.com
jmg [Thu, 13 Mar 2014 16:19:36 +0000 (16:19 +0000)]
remove link to the missing AMD Geode LX SB man page... we can add it
back once someone cares enough to write one..
rstone [Thu, 13 Mar 2014 15:57:25 +0000 (15:57 +0000)]
Add MSI support to puc(9)
Add support for MSI interrupts in the puc(9) driver. By default the driver
will prefer MSI interrupts to legacy interrupts. A tunable,
hw.puc.msi_disable, has been added to force the allocation of legacy
interrupts.
Reviewed by: jhb@
MFC after: 2 weeks
Sponsored by: Sandvine Inc.
davidxu [Thu, 13 Mar 2014 06:54:10 +0000 (06:54 +0000)]
To avoid missing a chance to cancel thread, call _pthread_testcancel at the
beginning of _sem_timedwait.
Submitted by: Eric van Gyzen < eric at vangyzen dot net >
MFC after: 3 days
gjb [Thu, 13 Mar 2014 05:17:53 +0000 (05:17 +0000)]
Connect the hyperv drivers to the build.
MFC after: 5 days
X-MFC-With: r263105
Sponsored by: The FreeBSD Foundation
gjb [Thu, 13 Mar 2014 05:11:56 +0000 (05:11 +0000)]
Add hyperv manual pages provided by Microsoft, formatted
for FreeBSD standards. Very little, if any, content was
modified.
These are not yet linked to the build.
Submitted by: Abhishek Gupta (abgupta!microsoft dot com)
Sponsored by: The FreeBSD Foundation
glebius [Thu, 13 Mar 2014 03:42:24 +0000 (03:42 +0000)]
Since 32-bit if_baudrate isn't enough to describe a baud rate of a 10 Gbit
interface, in the r241616 a crutch was provided. It didn't work well, and
finally we decided that it is time to break ABI and simply make if_baudrate
a 64-bit value. Meanwhile, the entire struct if_data was reviewed.
o Remove the if_baudrate_pf crutch.
o Make all fields of struct if_data fixed machine independent size. The
notion of data (packet counters, etc) are by no means MD. And it is a
bug that on amd64 we've got a 64-bit counters, while on i386 32-bit,
which at modern speeds overflow within a second.
This also removes quite a lot of COMPAT_FREEBSD32 code.
o Give 16 bit for the ifi_datalen field. This field was provided to
make future changes to if_data less ABI breaking. Unfortunately the
8 bit size of it had effectively limited sizeof if_data to 256 bytes.
o Give 32 bits to ifi_mtu and ifi_metric.
o Give 64 bits to the rest of fields, since they are counters.
__FreeBSD_version bumped.
Discussed with: emax
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
tuexen [Wed, 12 Mar 2014 17:18:15 +0000 (17:18 +0000)]
Put the offset of the CRC32C in csum_data instead of 0.
The virtio driver needs the offset to be stored in csum_data,
like in the case for UDP and TCP.
The virtio problem was reported by
Niu Zhixiong <kaiaixi@gmail.com>, who helped in debugging
and testing the patch.
MFC after: 3 days
kib [Wed, 12 Mar 2014 16:38:55 +0000 (16:38 +0000)]
Initialize paddr to handle the case of zero size.
Reported and reviewed by: Conrad Meyer <cemeyer@uw.edu>
MFC after: 1 week
tuexen [Wed, 12 Mar 2014 15:30:40 +0000 (15:30 +0000)]
SCTP uses CRC32C and not Adler anymore. While there change the reference
to RFC 4960.
This does not change any code, just comments.
MFC after: 3 days
eadler [Wed, 12 Mar 2014 15:14:55 +0000 (15:14 +0000)]
wlanstats: print timestamp
Print timestamp in addition to data for more useful debugging.
Discussed with: adrian
kib [Wed, 12 Mar 2014 15:13:57 +0000 (15:13 +0000)]
Do not vdrop() the tmpfs vnode until it is unlocked. The hold
reference might be the last, and then vdrop() would free the vnode.
Reported and tested by: bdrewery
MFC after: 1 week
glebius [Wed, 12 Mar 2014 14:29:08 +0000 (14:29 +0000)]
Since both netinet/ and netinet6/ call into netipsec/ and netpfil/,
the protocol specific mbuf flags are shared between them.
- Move all M_FOO definitions into a single place: netinet/in6.h, to
avoid future clashes.
- Resolve clash between M_DECRYPTED and M_SKIP_FIREWALL which resulted
in a failure of operation of IPSEC and packet filters.
Thanks to Nicolas and Georgios for all the hard work on bisecting,
testing and finally finding the root of the problem.
PR: kern/186755
PR: kern/185876
In collaboration with: Georgios Amanakis <gamanakis gmail.com>
In collaboration with: Nicolas DEFFAYET <nicolas-ml deffayet.com>
Sponsored by: Nginx, Inc.
jmmv [Wed, 12 Mar 2014 12:27:13 +0000 (12:27 +0000)]
Make ether_line really report an error when all input is invalid.
The previous code failed to return an error condition when the whole input
was invalid due to improper handling of the sscanf return value. Actually,
this failure was properly being caught by a test in
tools/regression/lib/libc/net/test-ether.t but was not noticed because
these tests are never run. (On my way to fixing that ;-)
The fix applied here resembles the implementation of ether_line in NetBSD
modulo the setting of an errno value (which is not documented as an
expectation in the manpage anyway).