Commit Graph

248336 Commits

Author SHA1 Message Date
maxv
7fbd00cfca The first va should depend on the text offset, not the kernel base. Use
rounddown. Note: this value is still wrong, it should be roundup. But
that's another issue that will be fixed in amd64 soon.
2017-02-02 17:37:49 +00:00
christos
8c06ed2feb expose copyout_sockname_sb 2017-02-02 15:37:42 +00:00
christos
98e9e0daa7 implement accept4 2017-02-02 15:36:55 +00:00
christos
c155f74a3f regen 2017-02-02 15:36:12 +00:00
christos
5e0e954523 implement accept4
XXX: mips looks busted (the syscalls file has lots of NOARGS syscalls that
should be STD).
2017-02-02 15:35:46 +00:00
njoly
cada2c18c7 Fix a typo : pthread_mutexaddr_init -> pthread_mutexattr_init. 2017-02-02 10:48:22 +00:00
knakahara
30becc464a remove WM_CORE_LOCK in deferred start routine.
It is enough to check each txq's txq_stopping with
mutex_enter(not mutex_tryenter).

reviewed by ozaki-r@n.o.
2017-02-02 10:29:10 +00:00
nonaka
5ffb0503f3 wlan interfaces make interrupt routine running on softint context.
see http://mail-index.netbsd.org/tech-kern/2016/12/06/msg021281.html

tested device:
 * ath at pci: AR5212, AR5424
 * athn at pci: AR9287
 * ipw at pci: 2100BG
 * iwi at pci: 2915ABG
 * iwm at pci: 3165, 7260, 8260
 * iwn at pci: 4945, 6235
 * ral at pci: RT2560
 * rtwn at pci: RTL8192CE
2017-02-02 10:05:35 +00:00
maxv
a4a4753729 Use __read_mostly on these variables, to reduce the probability of false
sharing.
2017-02-02 08:57:04 +00:00
martin
68068a92f5 PR port-sparc64/51925: cosmetic cleanup, no functional change 2017-02-02 08:12:08 +00:00
msaitoh
e3593d2a92 Modify comment. Use long form. 2017-02-02 05:43:48 +00:00
msaitoh
d94cc7059e Fix typo in comment. 2017-02-02 05:38:59 +00:00
jakllsch
c5b0c4ab5e wpi(4): use MSI if available. 2017-02-02 03:41:22 +00:00
nonaka
4cb74e69ad iwn(4): use MSI if available. 2017-02-02 03:20:19 +00:00
ozaki-r
589739056f Defer some pr_input to workqueue
pr_input is currently called in softint. Some pr_input such as ICMP, ICMPv6
and CARP can add/delete/update IP addresses and routing table entries. For
example, icmp6_redirect_input updates an a routing table entry and
nd6_ra_input may delete an IP address.

Basically such operations shouldn't be done in softint. That aside, we have
a reason to avoid the situation; psz/psref waits cannot be used in softint,
however they are required to work in such pr_input in the MP-safe world.

The change implements the workqueue pr_input framework called wqinput which
provides a means to defer pr_input of a protocol to workqueue easily.
Currently icmp_input, icmp6_input, carp_proto_input and carp6_proto_input
are deferred to workqueue by the framework.

Proposed and discussed on tech-kern and tech-net
2017-02-02 02:52:10 +00:00
chs
e2632a59f3 put back the include of dtrace_bsd.h, it actually is needed. 2017-02-01 21:59:09 +00:00
chs
82ba364bfa fix this module to depend on the solaris module rather than the dtrace module.
remove an unneeded header.
2017-02-01 20:06:21 +00:00
chs
769e07db09 add some missing bits from freebsd r211554:
remove the DOODAD from prochandler().
we are now DOODAD-compatible with current freebsd.
2017-02-01 20:02:22 +00:00
chs
b222cea9e3 implement proc_getlwpstatus() for netbsd using PT_GET_SIGINFO. 2017-02-01 20:01:39 +00:00
jakllsch
9aa5903c8e Use boolean logical and operation on booleans, rather than bitwise and.
From David Binderman in PR kern/51936.
2017-02-01 19:10:33 +00:00
abhinav
4ed98e090f Add missing entries in the NAME section.
These functions are described in the body of the man page but not
mentioned in the NAME section. Without an entry in the NAME section
apropos(1) doesn't get this man page in the results when queried for
one of those functions.

ok from christos.
2017-02-01 18:47:24 +00:00
sjg
693df6904d Since we are avoiding VAR_INTERNAL, allow the variable :_ stores to
to be specified, also allows for multiple stages of modification to
be stashed.
2017-02-01 18:39:27 +00:00
christos
c64104c2e3 PR/51935: David Binderman: bad call to printf
- fix debugging printfs in general.
- KNF
2017-02-01 18:24:22 +00:00
sjg
a4a30cd47c Just have :_ use current ctxt, avoid need to force VAR_INTERNAL. 2017-02-01 18:00:14 +00:00
maxv
1fca26e9a0 Not sure what we are trying to achieve here, but there are two issues;
error can be printed while it is not initialized, and if m_pulldown fails
m is freed and reused.

Quickly reviewed by christos and martin
2017-02-01 17:58:47 +00:00
abhinav
60763e809a Add comma between two Nm entries in the NAME section. 2017-02-01 16:06:19 +00:00
abhinav
d2174aa7ea Add modff and modfl in the NAME section. 2017-02-01 15:57:47 +00:00
abhinav
11aef024b5 Fix a sentence.
Correct function name in the DESCRIPTION section.
2017-02-01 15:49:02 +00:00
abhinav
5f9e091f8e Also, fix spelling of described. 2017-02-01 14:51:29 +00:00
abhinav
6cef231ea2 Fix sentence. 2017-02-01 14:46:51 +00:00
abhinav
b59ab9a645 Remove comma after last Nm entry. 2017-02-01 14:42:28 +00:00
abhinav
53327cbb3e Remove comma after the last Nm entry. 2017-02-01 14:37:20 +00:00
christos
3db65f612e PR/51933: David Binderman: Boolean confusion 2017-02-01 14:33:10 +00:00
christos
f64047ef62 match the man page, and explain why. 2017-02-01 14:27:37 +00:00
christos
55d6e6bdc5 regen 2017-02-01 14:24:13 +00:00
christos
3935cc1c30 Add evbuffer.h.3 2017-02-01 12:33:58 +00:00
christos
ff59f0fe3e now we have evbuffer.h.3 and ebuffer.3 so handle it carefully. 2017-02-01 12:32:54 +00:00
msaitoh
a6d68e79cb TX multiqueue. If you want to disable it, enable IXGBE_LEGACY_TX
in ixgbe_netbsd.h
2017-02-01 10:47:13 +00:00
martin
384970d9ee Restrict special mode/owner settings to truncate_test.root_owned;
otherwise the Atffile will be generated unreadable for group/others
as well.
2017-02-01 10:18:27 +00:00
sevan
cc576e1d8e Update supporting files for components which rely on autoconf to allow systems
introducing since release of software to be recognised. This should hopefully
allow the builds to progress a littles further on systems such as the POWER8
which features a little endian 64-bit PowerPC CPU identified as ppc64le.
2017-02-01 09:26:39 +00:00
msaitoh
1056630786 Use new wm_gmii_setup_phytype() function to setup sc_phytype and
mii_{read|write}reg. This function is called twie.

 To identify PHY type, correct read/write function should be selected. To
select correct read/write function, PCI ID or MAC type are required without
accessing PHY registers.

 On the first call of this function, PHY ID is not known yet. Check PCI ID or
MAC type. The list of the PCI ID may not be perfect, so the result might be
incorrect.

 In the second call, PHY OUI and model are used to identify PHY type. It might
not be perfpect because of the lack of compared entry, but it would be better
than the first call.

 If the detected new result and previous assumption is different, diagnous
message will be printed.
2017-02-01 08:56:41 +00:00
ozaki-r
c66c595b80 Reduce return points 2017-02-01 08:18:33 +00:00
ozaki-r
23e72bfbc4 Kill tsleep/wakeup and use cv 2017-02-01 08:16:42 +00:00
ozaki-r
bbe8ead203 Make bpf_gstats percpu 2017-02-01 08:15:15 +00:00
ozaki-r
2fec859db2 Use pslist(9) instead of queue(9) for psz/psref
As usual some member variables of struct bpf_d and bpf_if remain to avoid
breaking kvm(3) users (netstat and fstat).
2017-02-01 08:13:45 +00:00
ozaki-r
b76d85bbe1 Use kmem(9) instead of malloc/free 2017-02-01 08:07:27 +00:00
ozaki-r
ddd60175a6 Make global variables static 2017-02-01 08:06:01 +00:00
ozaki-r
b1bee1e6b4 Add a test case for BIOCGBLEN and BIOCSBLEN 2017-02-01 08:04:49 +00:00
msaitoh
61f323b2dc Linux and FreeBSD defines 0x10f5 as E1000_DEV_ID_ICH9_IGP_M_AMT. In reality,
This is not IGP but BM. Add new case to identify PHY type correctly on this
device. Fixes PR#51924 reported byJarle Greipsland.

 This change fix only for 0x10f5. Need more work to be the best.
2017-02-01 07:50:03 +00:00
msaitoh
16e92e7fa4 regen. 2017-02-01 05:46:41 +00:00