Commit Graph

247315 Commits

Author SHA1 Message Date
leot
98fbbaab51 Document the `p' command in "interactive mode" that filters processes by pid.
While here add date to the `.TH' macro 3rd argument.

Reviewed by and thanks to <wiz>
2016-12-28 18:16:30 +00:00
christos
fd60c59b96 oops forgot to commit this one. 2016-12-28 13:50:55 +00:00
wiz
81f31009a1 Use more macros. 2016-12-28 11:44:58 +00:00
rin
011775c944 PR port-powerpc/51368: powerpc FPU emulation fails for single precision
floating point arithmetic

For single precision instruction, calculate first in double precision,
and then round it. With this fix, single precision arithmetic gets sane
on ibm4xx and booke.

Taken from FreeBSD commit r258250:
  https://svnweb.freebsd.org/base?view=revision&revision=258250

Ok matt and simonb.
2016-12-28 10:52:30 +00:00
rin
0b5b7fff16 - add missing default from FreeBSD
- remove duplicate panic pointed out by matt
2016-12-28 10:30:04 +00:00
nat
3cf9d4208d Add slinear encoding. Tested by flxd@
Addresses PR kern/51703: audio fails to attach if hardware can't do CD
quality.

Autoconfiguration of hw paramaters to be done later.  For now it is
possibile to set 8 bits precision 8000 Hz 1 channel via sysctls.
2016-12-28 10:04:53 +00:00
rin
49eb5e173f PR port-powerpc/51367: kernel panic for powerpc/ibm4xx with "option DDB"
Stop using ddbstk/ipkdbstk to make nested traps possible, which avoids
kernel panics reported in the PR.

Suggested and approved by matt.
2016-12-28 09:36:02 +00:00
msaitoh
60a932db74 Fix a bug that hw.ixgN.wol_enable=0 doesn't work correctly. Clear the WUC
and WUFC register if wol_enable is 0. ixgbe_setup_low_power_mode() calls
ixgbe_stop() and it resets the chip. The reset change WUC and WUFC registers to
the default, so clearing WUC and WUFC should be done after ixgbe_stop().
2016-12-28 09:29:35 +00:00
rin
d2d9d6886a Add missing "compat" qualifier to fix build with MKCOMPAT=no for mips64-e[bl].
Also, add "softfloat" to /usr/lib/{64,o32}/libc_fp_pic.a.
2016-12-28 08:57:20 +00:00
ozaki-r
bedee97f82 Bump for ethercom#ec_lock
Welcome to 7.99.53
2016-12-28 07:34:33 +00:00
ozaki-r
bf5ce79b5b Protect ec_multi* with mutex
The data can be accessed from sysctl, ioctl, interface watchdog
(if_slowtimo) and interrupt handlers. We need to protect the data against
parallel accesses from them.

Currently the mutex is applied to some drivers, we need to apply it to all
drivers in the future.

Note that the mutex is adaptive one for ease of implementation but some
drivers access the data in interrupt context so we cannot apply the mutex
to every drivers as is. We have two options: one is to replace the mutex
with a spin one, which requires some additional works (see
ether_multicast_sysctl), and the other is to modify the drivers to access
the data not in interrupt context somehow.
2016-12-28 07:32:16 +00:00
ozaki-r
b79bd95d27 Use ether_ifattach in carp_clone_create instead of C&P code
carp_clone_destroy calls ether_ifdetach so not calling ether_ifattach is
inconsistent. If we add something pair of initialization and destruction
to ether_ifattach and ether_ifdetach (e.g., mutex_init/mutex_destroy),
ether_ifdetach of carp_clone_destroy won't work. So use ether_ifattach.

In order to do so, make ether_ifattach accept the 2nd argument (lla) as
NULL to allow carp to initialize its link level address by itself.
2016-12-28 07:26:24 +00:00
msaitoh
7d8e034047 Allow 0 as the defalut of hw.ixgN.advertise_speed sysctl. 2016-12-28 07:05:11 +00:00
msaitoh
7af0b522f1 The Power Controller Control bit (PCIE_SLCSR_PCC) in the Slot Control & Status
Register is 0 on power on. Print "Power <on|off>" instead of "<on|off>".
2016-12-28 06:57:27 +00:00
pgoyette
c129bbe940 Remove some extraneous whitespace 2016-12-28 06:25:40 +00:00
msaitoh
02a1c2e3d0 Add X550. 2016-12-28 05:03:32 +00:00
mrg
8732a72a33 enable a few things that make sense for a router-style box:
BPFJIT, SJIT, bpf, ppp, pppoe, tun, tap, vlan, and bridge.

add a commented out OCTEON_MEMSIZE setting for users who see
that problem.
2016-12-28 03:49:16 +00:00
mrg
1bb3df50d2 add an OCTEON_MEMSIZE option to override the uboot provided memory
size.  limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:

http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html
2016-12-28 03:27:08 +00:00
christos
f069472cf9 starts running 2016-12-28 03:02:54 +00:00
nat
dbf402601d Audio device won't fail if one cannot set the common/hw format.
Audio won't be able to be opened though unless a common format is
configured properly.

This would alow the user to change the common format via sysctls
until hardware is configured.

Simplification of several functions.
2016-12-28 02:44:59 +00:00
christos
204834d4f3 Add some flesh. 2016-12-28 01:25:48 +00:00
rmind
8334b9bc82 npf.conf: add support for logical NOT, e.g.: pass from ! 10.0.0.1 to any 2016-12-27 22:35:33 +00:00
rmind
61e84d3fc1 Add some very preliminary npfd(8) code. 2016-12-27 22:20:00 +00:00
pgoyette
77ce73405e Bump date for previous. 2016-12-27 21:54:50 +00:00
pgoyette
ed445f1b6c Update the list of options that enable the "show kernhist" command, and
restructure a bit.
2016-12-27 21:54:17 +00:00
christos
502c644dd9 teach lint __attribute__((__unused__)) 2016-12-27 21:52:35 +00:00
christos
c0314b460e Our lint knows about attributes, stop eating them. 2016-12-27 21:52:01 +00:00
wiz
146c3bb911 Fix typos. 2016-12-27 21:25:12 +00:00
christos
bc388aee45 Document list 2016-12-27 20:55:11 +00:00
rmind
cbc7bab49c KNF 2016-12-27 20:32:58 +00:00
wiz
00bae140fd Sort options in usage. 2016-12-27 20:24:32 +00:00
christos
a0cedf0df5 Add a list command to iterate over connection and nat endpoints. 2016-12-27 20:14:35 +00:00
christos
52d8bce52a Add a function to iterate over endpoints 2016-12-27 20:14:07 +00:00
rmind
5e66d73d01 Update libnpf(3) man page. 2016-12-27 17:58:56 +00:00
maya
9287afda0f Add blacklistd.conf so it gets backed up, too. 2016-12-27 17:13:45 +00:00
christos
4bb5b9d374 Add npf.conf so it gets backed up. 2016-12-27 16:48:12 +00:00
msaitoh
ff7969646e Regen. 2016-12-27 14:10:26 +00:00
msaitoh
7388a4a98a Add some Radeon devices. Mainly taken from OpenBSD. 2016-12-27 14:09:57 +00:00
christos
e3864be530 Another missed patch 2016-12-27 13:49:58 +00:00
christos
ef70bf3819 We don't use openssl for NPF in NetBSD, so don't include the header, and
provide a compatibility define.
2016-12-27 13:43:38 +00:00
schmonz
10c3be53a3 When testing non-verbosely, show diff on failure. ok mrg@ 2016-12-27 12:09:19 +00:00
hannken
3b04d6a086 It is wrong to block the vnode during vcache_rekey. The vnode may be looked
up using the old key until vcache_rekey_exit changes the key to the new one.

Add an assertion that the temporary key is different from the current one.
2016-12-27 11:59:36 +00:00
msaitoh
abbeecd1e6 Fix DEBUGFUNC() output in ixgbe_disable_rx_x550(). 2016-12-27 11:17:51 +00:00
hannken
958c9321b9 Fix a bug introduced with Rev. 1.294: use LK_NOWAIT when called with MNT_LAZY. 2016-12-27 10:54:38 +00:00
ozaki-r
12da772ecc Fix panic in pfil_run_hooks on bootup
XXX a kernel with pf still fails to boot up. Please someone fix it.
2016-12-27 10:53:11 +00:00
pgoyette
19f5287d84 Give the reader a clue as to what information BIOHIST can provide. 2016-12-27 10:30:24 +00:00
msaitoh
de7d43c176 Fix flow control setting sysctl. I don't know why disabling autonego when
the flow control parameter is changed. Now the ixgN.fc sysctl works as
expected.
2016-12-27 10:01:39 +00:00
maya
441aa9cf25 Revert previous commit (to r1.117)
Superfluous warnings in simple userland programs is not a valid reason to
break a security model.
2016-12-27 09:34:44 +00:00
flxd
56ced6935d Fix TC adaptor's CSR address.
Add "PMAD" LANCE TC Ethernet.
2016-12-27 08:56:00 +00:00
abhinav
59739e51e1 Fix the date (setting the date to the same as the date on which this version was imported).
Looks like the '%Q%' was supposed to be translated to an actual date through
some tool but neither the README nor the Makefile say anything. So just
setting the date manually.

ok wiz@
2016-12-27 06:50:03 +00:00