250763 Commits

Author SHA1 Message Date
pgoyette
a372bceac2 Introduce new localcount(9) reference-count primitives. 2017-05-19 00:01:33 +00:00
jakllsch
de002c399b Re-enable RTKQ_IM_HW. Timeout issues appear to be fixed since
src/sys/dev/ic/rtl8169.c r1.151
2017-05-18 18:33:48 +00:00
abhinav
b34e0a62c9 Fix typo in the man page reference 2017-05-18 16:41:12 +00:00
christos
88e3ab4869 PR/52242: Utkarsh Anand: Minimal fix for fallout from moving to the common
mips bus_space code.
2017-05-18 16:37:06 +00:00
christos
414c97bd66 Fix debug (make it compile) 2017-05-18 16:34:56 +00:00
abhinav
ae7adf81e7 Correct the man page reference 2017-05-18 16:33:57 +00:00
kre
5f9a3bbe89 DEBUG mode only change - mostly to output when option to show shell
internal sub-process nesting is enabled, and very deep nesting levels exist.

NFC for anyone else.
2017-05-18 15:42:37 +00:00
ozaki-r
43af182f5e Don't check the existence of SA entries eagerly
They can be expired at that point if their lifetime is very short.
This may fix unexpected failures of tests running on anita.
2017-05-18 14:43:42 +00:00
kre
1f81ff1448 Allow abbreviations of option names for the "fdflags -s" command.
While documenting that, cleanup markup of the fdflags section of the
man page.
2017-05-18 13:56:58 +00:00
kre
d98a8b3c74 Command line, and "set" command options processing cleanup.
sh +c "command string"	no longer works (it must be -c)
sh +o   and   sh -o	no longer work (if you could call what they did
			before working.)  nb: this is without an option name.
-ooo Opt1 Opt2 Opt3	no longer works (set & cmd line), this should be
			-o Opt1 -o Opt2 -o Opt3   (same with +ooo of course).
-oOpt			is now supported - option value (name of option in
			this case) immediately following -o (or +o).
			(as with other commands that use std opt parsing)
			Both set comamnd and command line.

In addition, the output from "set +o" has shrunk dramatically, by borrowing
a trick from ksh93 (but implemented in a more traditional syntax).
"set +o" is required to produce a command (or commands) which when executed
later, will return all options to the state they were in when "set +o"
was done.  Previously that was done by generating a set command, with
every option listed (set -o opt +o other-opt ...) to set them all back
to their current setings.   Now we have a new "magic option" ("default")
which sets all options to their default values, so now set +o output
need only be "set -o default -o changed-opt ..." (only the options that
have been changed from their default values need be explicitly mentioned.)
The definition of "default value" for this is the value the shell set the
option to, after startup, after processing the command line (with any
flags, or -o option type settings), but before beginning processing any
user input (incuding startup files, like $ENV etc).

Anyone can execute "set -o default" of course, but only from a "set"
command (it makes no sense at all as a -o option to sh).   This also
causes "set +o" to be slightly more useful as a general command, as
ignoring the "set -o default" part of the result, it lists just those
options that have been altered after sh startup.  There is no +o default.
There isn't an option called "default" at all...

This causes some of the commented out text from sh.1 to become uncommented.
2017-05-18 13:53:18 +00:00
kre
352391ffc1 DEBUG mode only change - correctly track internal shell sub-shell nesting
levels for debug output.  This change accidentally omitted earlier (only
effect is incorrect nesting levels shown in trace output when the option
to show them is enabled.)   NFC for any normal shell build.
2017-05-18 13:34:17 +00:00
kre
727fae80dd Added comma and plus to the "don't need quoting" set. This affects
output from "sh -x" only (tracing execution), not quoting + is better,
as it makes tracing commands with + and - options, or numbers, more
consistent.

Also one minor white space change (excess indentation removed).
2017-05-18 13:31:10 +00:00
kre
1b495756c7 NFC: added a minor comment (and enev then, in DEBUG code only) 2017-05-18 13:28:00 +00:00
skrll
b24d4bac28 Don't use index cache operations unnecessarily. 2017-05-18 13:20:37 +00:00
martin
4fcb013cbf Add (currently failing) test cases for profiled programs. 2017-05-18 10:29:47 +00:00
msaitoh
5783872703 - Count "Total Packets Missed" by evcnt(9)
- Call evcnt_attach_dynamic()/detach() for stats->mngpdc
  (Management Packets Dropped).
- Make stats->rnbc (Receive No Buffers) evcnt(9). Only 82598 has this register.
- Set RQSMR, TQSM (or TQSMR on 82598) to count qprc, qptc, qbrc, qbtc and qprdc
  in each queue counter. Without this change, all queue's counts are counted in
  queue 0's. Even if with this change, only MPC[0] is counted and other MPCs
  are not counted.
2017-05-18 08:27:19 +00:00
msaitoh
1c6a4127ff Fix a bug that number of input packet counted twice. This bug was added
since sys/net/if.c rev.1.368.
http://mail-index.netbsd.org/source-changes/2016/12/15/msg079882.html
2017-05-18 08:25:37 +00:00
ozaki-r
28c6f0e797 Test CARP handover on setups without having IPs on carpdev (shmif)
Note that tests for IPv6 don't pass yet; nd6 needs to handle CARP
correctly like arp does.
2017-05-18 06:34:48 +00:00
ozaki-r
9c1d2498f1 Reduce duplicated codes (DRY) 2017-05-18 06:33:49 +00:00
ozaki-r
a9d79d7f68 Lookup caches from a CARP interface if the packet is routed to the interface
This fixes CARP setups without carpdev (physical interface) having any IPs.
2017-05-18 06:33:11 +00:00
christos
4fdd4095d8 more snprintb bits 2017-05-18 02:21:05 +00:00
nonaka
decfd26536 Fixed m is not freed if m_defrag() fails. 2017-05-18 01:32:46 +00:00
christos
48e7bec4b3 snprintb(3) for UVM_FLAGS. 2017-05-17 22:43:12 +00:00
sevan
ec28d4a50d Fix building GCC 5 with clang 4.0
Obtained from FreeBSD ports r432958
https://svnweb.freebsd.org/ports?view=revision&revision=432958
"doesn't compile with recent versions of libc++, because it attempts to redefine abort():
/usr/include/c++/v1/functional:1398:2: error: no member named 'fancy_abort' in namespace 'std::__1'; did you mean simply 'fancy_abort'?
        _VSTD::abort();
        ^~~~~~~
/usr/include/c++/v1/__config:383:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE"
2017-05-17 22:06:10 +00:00
jdolecek
3ff587bd49 more precise m_freem() on error paths, and update m after the m_defrag() call 2017-05-17 20:13:02 +00:00
jdolecek
d54fac4a0b simplify vioif_start() - remove the delivery attempts on failure and retries,
leave that for the dedicated thread

if dma map load fails, retry after m_defrag(), but continue processing
other queue items regardless

set interface queue length according to the length of virtio queue, so that
higher layer won't queue more than interface can manage to keep in flight

use the mutexes always, not just with NET_MPSAFE, so they continue
being exercised and hence working; they also enforce proper IPL level

inspired by discussion around PR kern/52211, thanks to Masanobu SAITOH
for the m_defrag() idea and code
2017-05-17 20:04:50 +00:00
christos
48f1fe6650 Allow npf to be used "normally" from a rump kernel, not just from the
test harness (problem reported by Frank Kardel)
2017-05-17 18:56:12 +00:00
christos
b4b0a6b177 set "testing mode" for ioctl I/O 2017-05-17 18:55:13 +00:00
jdolecek
55f3f83e9c do not set IFF_OACTIVE if dma map load or the virtio reserve fails;
this causes interface to ignore any further TX requests if this happens
when there are no other TX requests in progress

fixes kern/52211 by Juergen Hannken-Illjes
2017-05-17 18:21:40 +00:00
macallan
67e9f2e5ba fix tpyo 2017-05-17 14:15:29 +00:00
hannken
9fc3ca45b3 Suspend file system while revoking a vnode. This way no operations run
on the mounted file system during revoke and all operations see
the state before or after the revoke.
2017-05-17 12:46:14 +00:00
hannken
677cf1d8b4 Suspend file system while unmounting. This way no operations run
on the mounted file system during unmount and all operations see
the state before or after the (possibly failed) unmount.
2017-05-17 12:45:03 +00:00
knakahara
e8378c51a8 decrease the priority of batch crp even if there are more than one batch crp. 2017-05-17 12:11:41 +00:00
knakahara
b83761f2b5 refactor cryptointr(), no functional changes. 2017-05-17 11:04:38 +00:00
knakahara
4cc846107d fix cryptointr() can process unexpected request.
If migrate crp is linked after batch crp, "submit" is already set to
the batch crp. So, cryptointr() can process the batch crp instead of
the target migrate crp.
2017-05-17 11:03:42 +00:00
wiz
1c215f60f4 Sort SEE ALSO. 2017-05-17 09:03:12 +00:00
knakahara
3e6db4b451 refactor crypto_kdispatch() in a similar way as crypto_dispatch(). 2017-05-17 07:12:50 +00:00
knakahara
e309e6bf6a refactor crypto_dispatch (3/3): do "blocked" operation previously 2017-05-17 06:53:02 +00:00
knakahara
c42317cfcb refactor crypto_dispatch (2/3): divide migrate operation 2017-05-17 06:52:08 +00:00
knakahara
818d6afe60 refactor crypto_dispatch (1/3): divide batch operation
Processing batch operation at first, crypto_q_mtx's lock region is reduced
because crp does not require crypto_q_mtx.
2017-05-17 06:50:12 +00:00
knakahara
c4e549c723 opencrypto: cleanup debug messages. 2017-05-17 06:33:04 +00:00
ozaki-r
beade07f61 Add test cases of TCP communications with IPsec enabled
The test cases transfer data over TCP by using nc with IPsec just enabled
(no SA/SP is configured) and confirm the commit "Fix diagnostic assertion
failure in ipsec_init_policy" really fixes the issue.
2017-05-17 06:30:15 +00:00
ozaki-r
14fe74100b Replace malloc/free with kmem(9) and kill KMALLOC/KFREE macros 2017-05-17 02:19:09 +00:00
ozaki-r
86d681a1cc Fix memory leaks of allocated data to sav on key_update
key_setsaval NULL-clears member variables of sav at the beginning
of the function regardless of the states of the variables. When
key_setsaval is called by key_update, member variables sav->replay,
sav->key_* and sav->lft_* may have data allocated by malloc. In
that case they will leak. Free them before NULL-clear to avoid
memory leaks.
2017-05-17 02:04:55 +00:00
nat
81a19d06f0 Set sc_[trigger/rec]_started before the call to trigger_[input/output].
This prevents multiple calls to trigger_[input/output] for those drivers
that drop sc_intr_lock in there trigger_[input/output] functions.
2017-05-16 23:55:53 +00:00
nat
4d77645be1 Drop sc_lock whilst doing uaudio_chan_open uaudio[pr]transfer.
uaudio now works again.
2017-05-16 23:49:43 +00:00
jdolecek
188f75011d add vioscsi(4) manpage 2017-05-16 23:21:53 +00:00
jdolecek
21c32e49aa mention recent vioscsi/virtio changes 2017-05-16 23:00:42 +00:00
nat
ab5bda2dd6 Revert the changes made with holding sc_lock in audiostartp/startr made in
rev 1.347.  The audio tests should run again.
2017-05-16 21:43:18 +00:00
snj
2377854aeb update core 2017-05-16 17:40:01 +00:00