256881 Commits

Author SHA1 Message Date
knakahara
e6743f33cb Apply ixgbe.c:r1.127 to ixv.c. Pointed out by msaitoh@n.o. 2018-02-26 08:14:01 +00:00
pgoyette
b7994efa6a Update sets lists for new modular ichsmb(4) 2018-02-26 07:30:17 +00:00
pgoyette
eee1cd778b Descend into subdirectory to create the module for ichsmb(4) driver. 2018-02-26 07:29:24 +00:00
pgoyette
611870bdec Modularize the ichsmb(4) driver. No functional changes. 2018-02-26 07:28:02 +00:00
maxv
0f3ae0526d If 'skip' is lower than sizeof(struct ip), we are in trouble. So remove a
nonsensical branch, and add a panic at the beginning of the function.
2018-02-26 06:58:56 +00:00
maxv
1d337420b7 m is never allowed to be NULL, so turn the KASSERT (and the null check)
to a panic.
2018-02-26 06:53:22 +00:00
maxv
8a440faae1 Fix nonsensical checks, neither in6p nor request is allowed to be NULL,
and the former is already dereferenced in a kassert. This code should be
the same as ipsec4_set_policy.
2018-02-26 06:48:01 +00:00
maxv
3e1c4ac085 Add XXX, it seems to me we need to free the mbuf here. 2018-02-26 06:41:27 +00:00
maxv
20ee129912 Reinforce this area, make sure the length field fits the option. Normally
it always does because the options were already sanitized earlier.
2018-02-26 06:40:08 +00:00
maxv
589f503d3d Fix mbuf mistake: we are using ip6 before it is pulled up properly. 2018-02-26 06:34:39 +00:00
maxv
16a6b57077 Merge some minor (mostly stylistic) changes from last week. 2018-02-26 06:17:01 +00:00
maxv
0d64a27b74 Enable SVS by default. 2018-02-26 05:52:50 +00:00
pgoyette
7989469a7e For non-modular driver, don't set return status for the default case. 2018-02-26 05:47:03 +00:00
pgoyette
adb33e0c73 Identify the device that wsa just attached. Avoids getting strange
message sequence similar to

	imcsmb0 at imc0iic at imcsmb0 not configured

Also, while here, revert to the original FreeBSD wait-for-device-to-
settle code by waiting for 4 intervals of 10ms each, rather than 40
intervals of 1ms.
2018-02-26 05:04:51 +00:00
pgoyette
787536243d Change the "Child not added" message from normal to debug 2018-02-26 05:01:21 +00:00
pgoyette
d2f1cbea7a Remove unneeded imc_print() routine 2018-02-26 04:31:32 +00:00
pgoyette
ddf7c0f9d8 Search for child devices using the i2cbus attribute 2018-02-26 04:25:32 +00:00
knakahara
74808152cc Fix poll mode assumption breaking.
ixgbe_{enable,disable}_intr() forcibly enable/disable all interrupts
regardless of current state. That can break poll mode assumption,
that is, queue interrupts must not occur while polling Tx/Rx rings.

E.g. "ifconfig ixg0 delete && ifconfig ixg0 192.168.0.1" on heavy
load traffic can causes this issue.

This fix may have 1% or 2% performance impact at short packets.

XXX
ixgbe_rearm_queues() which is called only via watchdog can also break
this poll mode assumption because writing EICS casues interrupts
immediately when interrupt auto mask enabled.
We will fix it with other issues about watchdog later.

ok by msaitoh@n.o.
2018-02-26 04:19:00 +00:00
christos
8083c34295 make this link again:
- we don't want to define the reference impl flag because there is no
  complete c reference impl for nistz256
- we want to define an empty OPENSSL_cpuid_setup() because we don't want
  to use the v9 one... this function is called from 2 places:
  1. in the sparccpuid.S assembly, which we need for the CRYPTO_mem*
     functions -- but we could get rid of the v9 stuff with
     #ifdef __sparc_v9__ for size and we don't bother
  2. crypto/init.c
2018-02-26 01:33:05 +00:00
pgoyette
c7df3d77e8 Finally, remove extraneous entries for macppc's "iic at cuda". We
don't need three entries that differ only in wildcarding.
2018-02-26 00:17:40 +00:00
pgoyette
231161f28f Ooopppsss! Put the .Sh DESCRIPTION where it belongs, _after_ the
list of config attachments.
2018-02-26 00:14:56 +00:00
pgoyette
c3f1906fc2 Hmmm, for some reason the first entry in the generated list is not
in collating-sequence order.  Move it to the proper place in the
list.
2018-02-26 00:10:44 +00:00
htodd
dab912008b Fix typo in comment. 2018-02-26 00:05:05 +00:00
pgoyette
6cb2d317fe Bump date for previous two changes. 2018-02-25 23:55:55 +00:00
pgoyette
5e98bd308f Fix the commands-to-generate-the-attachment list to use tab's instead
of multiple spaces in the regex bracket expressions, and alert the
reader to this.  Otherwise, a cut-and-paste might simply expand the
tab characters to some number of spaces, and the result won't find
what you're looking for!

XXX Despite the indication that these commands should be run in csh
(or derivative), they seem to run just fine under /bin/sh as well.
2018-02-25 23:55:21 +00:00
christos
b351345a6c new mdns-responder. 2018-02-25 23:53:57 +00:00
pgoyette
15b57152f3 Regen attachment list, since we just added "iic* at imcsmb?"
This regen also caught a few other missing entries.
2018-02-25 23:51:25 +00:00
htodd
0fc0030f2f Fix typo in error message. 2018-02-25 23:48:16 +00:00
pgoyette
2eab6dfed7 As requested by chuq@, add the new imc devices to the i386 and amd64
ALL kernels.
2018-02-25 22:00:22 +00:00
jdolecek
f0e5de0264 fix the DIAGNOSTIC function pmap_tlb_asid_count() to not expect
that TLBINFO_ASID_INUSE_P() returns just 0 or 1; the underlying
__BITMAP_ISSET() actually returns the matching bit nowadays, which
caused miscounting

fixes PR kern/53054 by Sevan Janiyan
2018-02-25 21:43:03 +00:00
christos
4824f3b241 update upstream code changes in signal handling. 2018-02-25 21:06:40 +00:00
christos
e68081c947 merge conflicts; also:
- Do the reuse-port first like MacOS/X otherwise we can't bind
- Disable SO_RECV_ANYIF hack
2018-02-25 20:04:55 +00:00
christos
200e8a27b2 import latest 2018-02-25 19:25:33 +00:00
christos
58300083f7 zero out socket structures before bind. 2018-02-25 19:22:41 +00:00
chs
64900a4c4b add definitions of FIOSEEKDATA and FIOSEEKHOLE for ZFS.
from FreeBSD.
2018-02-25 18:55:23 +00:00
chs
e5440b91e0 add defines to control whether or not mutex operations are skipped
after we have panic'd.  no functional change.
2018-02-25 18:54:29 +00:00
chs
3084abc1e1 add DTRACE_OPTS and HOST_DTRACE_OPTS to allow disabling various optimizations
that interfere with using dtrace.  use them when MKDTRACE=yes.
2018-02-25 18:53:23 +00:00
chs
9f52f2295e remove hard-coded -fomit-frame-pointer for pthread stuff,
let these use the same setting as the rest of the tree.
the performance difference is marginal and this allows
dtrace ustack() to work better.
2018-02-25 18:51:18 +00:00
chs
eec15c920c add some flag definitions from a newer version of FreeBSD's libproc
that are needed by the new dtrace.  these don't do anything yet,
but dtrace doesn't mind.  I'll do a full resync to the latest FreeBSD
libproc / librtld_db later.
2018-02-25 18:48:39 +00:00
uwe
5ff411e65c Use tagged list. 2018-02-25 17:45:40 +00:00
uwe
a2bbeaadcd Flags are .Fl not .Ar 2018-02-25 17:37:05 +00:00
kamil
b5d237a157 Document _UC_MACHINE_*() in ucontext(2)
Document:
 - _UC_MACHINE_SP()
 - _UC_MACHINE_FP()
 - _UC_MACHINE_PC()
 - _UC_MACHINE_INTRV()
 - _UC_MACHINE_SET_PC()

Document fragileness of the frame-pointer accessor.

Sponsored by <The NetBSD Foundation>
2018-02-25 16:53:51 +00:00
jdolecek
51cdc2d5b6 adjust KASSERT() triggered in PR port-cobalt/53054 to provide more info 2018-02-25 16:44:31 +00:00
christos
6f17b07f09 fix spello 2018-02-25 15:31:07 +00:00
kamil
16ed291475 Add new tests in lib/libc/sys/t_ucontext
New tests:
 - ucontext_sp
 - ucontext_fp
 - ucontext_pc
 - ucontext_intrv

They test respectively:
 - _UC_MACHINE_SP
 - _UC_MACHINE_FP
 - _UC_MACHINE_PC
 - _UC_MACHINE_INTRV

These tests attempt to access and print the values from ucontext, without
interpreting the values.

This is a follow up of the _UC_MACHINE_FP() introduction.

These tests use PRIxREGISTER, and require to be built with -D_KERNTYPES.

Sponsored by <The NetBSD Foundation>
2018-02-25 14:27:07 +00:00
maxv
3c99c64a1d Remove the first entry from the todo list, it's handled properly now. 2018-02-25 13:15:35 +00:00
maxv
ccc038a88e Remove INTRENTRY_L, it's not used anymore. 2018-02-25 13:14:27 +00:00
maxv
f6bdf0e58c Mmh. We shouldn't read %cr2 here. %cr2 is initialized by the CPU only
during page faults (T_PAGEFLT), so here we're reading a value that comes
from a previous page fault.

That's a real problem; if you launch an unprivileged process, set up a
signal handler, make it sleep 10 seconds, and trigger a T_ALIGNFLT fault,
you get in si_addr the address of another LWP's page - and perhaps this
can be used to defeat userland ASLR.

This bug has been there since 2003.
2018-02-25 13:09:33 +00:00
uwe
d9a4227719 Use .Dl instead of .Bd -literal, fix vertical spacing. 2018-02-25 12:57:39 +00:00
kamil
bc6d305e96 Register the x86/imcsmb man/cat/html page 2018-02-25 12:53:22 +00:00