Commit Graph

258310 Commits

Author SHA1 Message Date
maxv a2f5e53a1f Change comment, to clearly say that m_prepend should not be used directly. 2018-04-26 07:46:24 +00:00
maxv e64bc0451a Use M_UNWRITABLE, no functional change. 2018-04-26 07:28:21 +00:00
maxv 1cf079b88f Move the address checks into one function, ip6_badaddr(). In this function,
reinstate the "IPv4-compatible IPv6 addresses" check; these addresses are
deprecated by RFC4291 (2006).
2018-04-26 07:01:38 +00:00
maxv 8ad8ab65b1 Remove ping6_opts_hops, "-g" does not exist anymore (RH0 removed). 2018-04-26 06:23:33 +00:00
ragge 1cb48e477a Enable CPU_IN_CKSUM. 2018-04-25 11:12:55 +00:00
ragge 09fcb8c02e Add cpu_in_cksum.S. 2018-04-25 11:08:21 +00:00
ragge 6c80cbc78d VAX version of cpu_in_checksum(). Increases network performance significantly. 2018-04-25 11:06:49 +00:00
ragge 9e14291720 Extract M_DATA, M_LEN, M_NEXT. 2018-04-25 09:28:42 +00:00
ragge 9b168bab66 Add __KERNEL_RCSID() macro. 2018-04-25 09:23:00 +00:00
msaitoh d1f63c06dc Don't free and reallocate bus_dmamem when it's not required. Currently,
the watchdog timer is completely broken and never fire (it's from FreeBSD
(pre iflib)). If the problem is fixed and watchdog fired, ixgbe_init() always
calls ixgbe_jcl_reinit() and it causes panic. The reason is that
ixgbe_local_timer1(it includes watchdog function) is softint and
xgbe_jcl_reinit() calls bus_dmamem*() functions. bus_dmamem*() can't be called
from interrupt context.

 One of the way to prevent panic is use worqueue for the timer, but it's
not a small change. (I'll do it in future).

 Another way is not reallocate dmamem if it's not required. If both the MTU
(rx_mbuf_sz in reality) and the number of RX descriptors are not changed, it's
not required to call bus_dmamem_{unmap,free}(). Even if we use workque, this
change save time of ixgbe_init().

 I have a code to fix broken watchdog timer but it sometime causes watchdog
timeout, so I don't commit it yet.
2018-04-25 08:46:19 +00:00
yamaguchi bb9c38f4bf Use spin mutex to fix a panic
The GPIO part of wbsio(4) has a lock to keep the register access
order. In addition to the lock, gpio(4) has a look to prevent
multiple control through gpio_pin_ctl(). Those locks hold at
once when gpio_pin_ctl() is called, and the lock of gpio(4) hold
before that of wbsio(4).

Therefore, the wbsio(4) has to use spin lock if gpio(4) uses
spin lock.
2018-04-25 08:29:45 +00:00
ozaki-r 9a87af0fbd Fix a deadlock (rt_free vs. route_intr on rt_so_mtx)
It occurs only if NET_MPSAFE is enabled.
2018-04-25 03:49:57 +00:00
ozaki-r 144c8d0724 Remove a unnecessary wrong cast (fix build of ALL) 2018-04-25 03:45:21 +00:00
christos c063173b65 PR/53209: David Shao: lang/llvm BFD (NetBSD Binutils nb1) 2.30 assertion fail elflink.c:2824
switch x86 back to old binutils until it is fixed.
(also non pie binaries have broken relocs)
2018-04-24 23:29:13 +00:00
maya b9af5002bd Denote RTS525A, bump date 2018-04-24 18:35:56 +00:00
kamil b66fa58d9d Remove unused code branch in the signal code
Remove the ppsig argument from proc_stop_done() and from sigswitch().

This functionality was used in now gone filesystem tracing feature (/proc).
It prevented emitting signal child signals to a debugging program, namely
with the SIGCHLD signal.

The modern solution to perform tracing without signals in a debugger is
to spawn a debugging server and outsource the tracing functionality to it.
This is done in software like gdb-server, lldb-server etc.

No functional change intended.

Sponsored by <The NetBSD Foundation>
2018-04-24 18:34:46 +00:00
maya ddb8613d0a rtsx(4): Add support for RT525A, from openbsd.
ok rkujawa
2018-04-24 18:34:30 +00:00
roy f8583dbb8c Back out part of the prior commit where we added space for IPV6_HOPLIMIT
to the sending control message buffer.
That code never worked on ERLITE, so I elected to set socket options
instead but forgot to revert this part.
2018-04-24 18:31:48 +00:00
maya a0726d2ee5 regen 2018-04-24 18:10:32 +00:00
maya 0cdc8d3cf3 add realtek RT525A PCI-E card reader
found in my Dell XPS 15 9550.
2018-04-24 18:08:56 +00:00
jakllsch 0e522444a9 In uvm_page_recolor(), kmem_free() old size rather than new size.
From Yaniv Abraham-Rabinovitch in PR kern/53208.
2018-04-24 16:35:53 +00:00
maxv 906d782918 Remove nullcheck, m is not allowed to be null. 2018-04-24 08:22:16 +00:00
maxv da0a3b88c3 Change/Improve the comments, so that the definitions fit one line. 2018-04-24 08:10:32 +00:00
maxv 3e02f4fab8 Remove the M_AUTHIPDGM flag. It is equivalent to M_AUTHIPHDR, both
are set in IPsec-AH, and they are always handled together.
2018-04-24 08:07:05 +00:00
maxv b5d4b113f7 Add code 3 of paramprob, part of RFC7112: "IPv6 First Fragment has
incomplete IPv6 Header Chain". Handle this code in ping6.
2018-04-24 07:22:32 +00:00
maxv 519a11ad08 Remove annoying (void) casts. 2018-04-24 07:12:04 +00:00
knakahara 30b0741c40 Fix sys/netinet/in.c:r1.229 problem. I have missed FALLTHROUGH, sorry. 2018-04-24 01:32:30 +00:00
joerg 5bd6bf38e4 Adjust Xsyscall_svs to not use movq for 64bit immediates either. 2018-04-23 22:53:04 +00:00
jdolecek 0adb3c0bc1 enable code to only trigger usb processing when EINT is set, to
avoid misinterpreting shared interrupt for another device

when clearing USBSTS, actually preserve the bits which spec requires to
preserve, and actually clear bit 1, which should be actually always
cleared to zero by spec

also #ifdef XHCI_DEBUG some unnecessary register reads

this should finally resolve PR kern/53066 also for Martin
2018-04-23 19:55:00 +00:00
maxv d7a1d2ebf3 Clean up the IPsec ifdefs, same as ping6. 2018-04-23 18:59:03 +00:00
maxv f025b20b34 Remove double include and unused macros. 2018-04-23 18:48:30 +00:00
maxv f4598fe58b Remove the "-R" option. It uses IPV6_REACHCONF, but we've never had
this.
2018-04-23 18:44:39 +00:00
maxv fa0be10b46 Fix usage(), A/E don't exist. 2018-04-23 18:37:19 +00:00
maxv ed8f79525d Simplify: remove #ifdefs for constants that are always defined, and
remove their #else's (some of which can't compile, since they use values
that since got removed).
2018-04-23 18:32:18 +00:00
christos ce1a532448 PR/kern/53202: Kernel hangs running t_ptrace_wait:resume1 test, revert
previous.
2018-04-23 15:51:00 +00:00
christos 2370736b4d PR/53206: David Binderman: fix array bounds comparison in KASSERT. 2018-04-23 15:40:33 +00:00
christos b83c46adf8 PR/53207: David Binderman: Use logical and 2018-04-23 15:36:30 +00:00
christos 18c79e7799 Add "Xhandle*" interrupt handling. 2018-04-23 14:53:07 +00:00
maxv a845eccede Remove dead/broken code, we want to favor RFC3542 over RFC2292. No
functional change. traceroute6 and rtadvd did the same.
2018-04-23 10:35:20 +00:00
maxv b9ad8ce8f1 ... another occurrence of OLDRAWSOCKET ... 2018-04-23 10:23:38 +00:00
maxv b279793f85 Remove dead code. 2018-04-23 10:22:18 +00:00
maxv 4953d3d3b9 Remove CPPFLAGS+=-DUSE_RFC3542, it's not used anymore. 2018-04-23 10:19:11 +00:00
maxv 11bf0879e5 Remove dead/broken code. We want to favor RFC3542 over RFC2292. No
functional change.
2018-04-23 10:14:12 +00:00
maxv 832b034324 Remove dead code. 2018-04-23 09:58:35 +00:00
maxv 6cf02a93b7 Remove now unused code. 2018-04-23 09:47:03 +00:00
wiz da9f189127 Sort options. Sort option descriptions. Remove Tn.
Sync usage (more) with man page.
2018-04-23 07:25:36 +00:00
maxv 64956f36ba Remove the kernel RH0 code. RH0 is deprecated by RFC5095, for security
reasons. RH0 was already removed in the kernel's input path, but some
parts were still present in the output path: they are now removed.

Sent on tech-net@ a few days ago.
2018-04-23 07:22:54 +00:00
wiz 744b9e9d12 Remove -g from SYNOPSIS. 2018-04-23 07:13:50 +00:00
maxv 9948652569 Remove the "hops" parameter, it uses RH0, which is deprecated by RFC5095,
and doesn't work on modern networks anymore.
2018-04-23 06:51:25 +00:00
maxv e65ec2be3d Remove the "-g" option, it uses RH0, which is deprecated by RFC5095, and
doesn't work on modern networks anymore.
2018-04-23 06:42:02 +00:00