268824 Commits

Author SHA1 Message Date
knakahara
b7e1580146 vmx(4) can be set IFEF_MPSAFE now.
I tested bidirectional forwarding with some ioctls.
2019-07-19 08:49:44 +00:00
knakahara
d846875160 Store IFF_ALLMULTI in ec->ec_flags instead of ifp->if_flags.
See such as if_wm.c:1.636.
2019-07-19 08:46:32 +00:00
knakahara
005f86ba70 vmx(4) enable jumbo frame.
I tested 1600 mtu to/from Linux vmxnet3.
2019-07-19 08:31:41 +00:00
mrg
498e2674f8 revert previous. meant to delete that change... 2019-07-19 04:18:49 +00:00
mrg
3011319df8 call ure_stop_locked(), not ure_stop(), from ure_init_locked() to
avoid locking botch.  fixes assert reported by sc.dying.
2019-07-19 04:17:34 +00:00
kamil
615deb79c3 Enhance locking of ptrace_update_lwp
Replace lwp_delref() + mutex_enter() with: mutex_enter() + lwp_delref2().
This avoids extra taking and exiting from a mutex.

Add missing mutex_exit() for LW_SYSTEM.

Do not switch lwp for PT_SET_SIGINFO. This operation is not needed and
avoids panic for >2 LWPs as p_lock is attempted to be entered again in a
critical section.
2019-07-18 20:10:46 +00:00
palle
101d6b7d00 sun4v: added some missing comments to the code in pcbspill 2019-07-18 18:21:45 +00:00
msaitoh
c654cc41b9 Use unsigned to fix compile error on i386. 2019-07-18 12:04:16 +00:00
hannken
823dcab2e3 Make namei() work with no root dir yet.
From David Holland with minor tweaks from me.

Should fix PR kern/54378 (panic with TLB miss when attempting to reboot)
2019-07-18 09:39:40 +00:00
msaitoh
dd462ecddb Note piixpm(4), amdsmn(4) and amdzentemp(4). 2019-07-18 09:07:59 +00:00
msaitoh
36bfd4aa4c Add support for Ryzen 2xxx and 3xxx. 2019-07-18 08:53:41 +00:00
msaitoh
13977e7ff9 Regen. 2019-07-18 08:51:49 +00:00
msaitoh
47cd7b2277 - Intel C620 Virtual Switch Port for Termal Sensor is not 0x37c6 but 0x37c7.
- Add Some AMD Ryzen 3xxx's devices.
2019-07-18 08:50:50 +00:00
msaitoh
1c73a23a90 Remove whitespace for consistency. 2019-07-18 07:49:26 +00:00
skrll
3c5d9b0040 Simplify conditionals when clearing the CONTIG flag in pmapboot_enter and
update the comments to be a little clearer.
2019-07-18 06:47:36 +00:00
ozaki-r
6a50c27e26 Show pointers of llentries on trace logs of LLE_REF_TRACE 2019-07-18 06:47:10 +00:00
ozaki-r
2f33341a03 tests: extract all kernel logs, not just a panic message, from rump_server.core 2019-07-18 04:22:22 +00:00
ozaki-r
bc1d718ff0 tests: shorten the expire time of neighbor caches to reduce the runtime of the tests 2019-07-18 04:00:09 +00:00
msaitoh
ad0059e118 The VLAN hardware filiter function was implemeted, so remove the BUGS section. 2019-07-18 03:52:26 +00:00
roy
f3d8f276b6 Note import of openresolv-3.9.1 2019-07-17 18:35:00 +00:00
roy
e37204c646 Sync 2019-07-17 18:31:43 +00:00
roy
6dab695b26 Import openresolv-3.9.1 with the following changes:
*  More strict POSIX shell support
  *  Interfaces have an implicit metric of 0 unless specified
  *  Inline comments are stripped from nameserver and domain entries
2019-07-17 18:24:23 +00:00
skrll
e1e3440e40 Remove the 'procs' from lwps and use the one from procs.
OK mrg@
2019-07-17 09:14:24 +00:00
skrll
38b361513b Add devs 2019-07-17 09:10:28 +00:00
skrll
9d860ed6ae kdump was remove some time ago 2019-07-17 09:08:57 +00:00
skrll
5184706860 Spell endianness correctly in comments 2019-07-17 08:39:03 +00:00
ozaki-r
75ffcec5e7 Avoid a race condition between SA (sav) manipulations
An sav can be removed from belonging list(s) twice resulting in an assertion
failure of pslist.  It can occur if the following two operations interleave:
(i) a deletion or a update of an SA via the API, and
(ii) a state change (key_sa_chgstate) of the same SA by the timer.
Note that even (ii) removes an sav once from its list(s) on a update.

The cause of the race condition is that the two operations are not serialized
and (i) doesn't get and remove an sav from belonging list(s) atomically.  So
(ii) can be inserted between an acquisition and a removal of (i).

Avoid the race condition by making (i) atomic.
2019-07-17 07:07:59 +00:00
msaitoh
53ce312f34 Note VLAN hardware filter. 2019-07-17 03:35:43 +00:00
msaitoh
8de541c59e Implemet VLAN hardware filter function (struct ethercom change).
Welcome to 8.99.51.
2019-07-17 03:30:31 +00:00
msaitoh
eea2ee1212 Implement VLAN hardware filter function(ETHERCAP_VLAN_HWFILTER).
First proposed by jmcneill in 2017 and modified by me.

How to use:

 - Set callback function:

	ether_set_vlan_cb(struct ethercom *, ether_vlancb_t)

 - Callback. This function is called when a vlan is attached/detached to the
   parent interface:

	int (*ether_vlancb_t)(struct ethercom *ec, uint16_t vlanid, bool set);

 - ifconfig(8)

	ifconfig ixg0 [-]vlan-hwfilter

 Note that ETHERCAP_VLAN_HWFILTER is set by default on ixg(4) because
the PF driver usually enable "all block" filter by default.
2019-07-17 03:26:24 +00:00
msaitoh
cb1ccde89c KNF. No functional change. 2019-07-17 03:09:16 +00:00
pgoyette
40a27fe72c Move the assignment of SCTP-specific function hooks/pointers.
Without this, a rumpkernel (appropriately modified) built with SCTP
enabled will try to assign the function pointers, but the targets
are only available in rumpnet.  We cannot link the rumpkernel against
rumpnet because rumpnet is already linked against rumpkernel and we
would end up with a circular dependency.

As reported in private Email by rjs@
2019-07-16 22:57:55 +00:00
christos
fbf9c51ff3 fix misplaced paren 2019-07-16 21:13:28 +00:00
jmcneill
eb8eb5dd32 Need CPU_PARTMASK for eMAG CPU ID 2019-07-16 20:29:53 +00:00
martin
653f037ebe PR misc/54382: whenever open(2) is called with O_CREAT, make sure to
pass an open mode argument.
2019-07-16 17:29:17 +00:00
skrll
7c4ccbf9a6 Add vaddr_t initarm(void *);
Missed in previous commit.
2019-07-16 16:18:56 +00:00
skrll
bee3dfab54 Consistently use vaddr_t as initarm and friends return type.
Makes no difference to binaries except for aarch64 where it's required
2019-07-16 14:41:43 +00:00
skrll
6f48d48948 Remove the _BUS_DMAMAP_COHERENT optimisation in the bus_dmamap_sync macro
as the real function performs memory barriers now.
2019-07-16 11:32:07 +00:00
jmcneill
6c6e008450 Add Ampere eMAG 8180 cpuid 2019-07-16 10:37:12 +00:00
knakahara
92af5cde61 Fix vmx(4) MTU setting.
Advised by hikaru@n.o and msaitoh@n.o, thanks.
2019-07-16 10:12:10 +00:00
knakahara
98ecbfbeac Eliminate IFF_RUNNING checking code from vmxnet3_init_locked().
Advised by hikaru@n.o, thanks.
2019-07-16 10:01:23 +00:00
jmcneill
86174f3d22 Add wm(4) 2019-07-16 09:47:41 +00:00
skrll
c41b087e6b KNF 2019-07-16 09:25:55 +00:00
hannken
bb86f86314 XXX: A crude hack to bring down the number of types for a
GENRIC kernel below 2**15-1 (from ~34000 to ~29800).

Remove the type attributes "volatile", "const" and "restrict",
for DTRACE these attributes are of little value.
2019-07-16 07:27:35 +00:00
hannken
9112aa41cd Add fixup operation to remove private mutex types for x86.
For GENERIC the number of types goes down from 47351 to 33981.
2019-07-16 07:26:41 +00:00
hannken
fcc1d7b138 Always exclude "fbt_*" from the list of FBT probes. 2019-07-16 07:26:00 +00:00
pgoyette
8f46500ece Move a comment line get it next to the line it describes, avoiding
intervening unrelated text.

NFCI
2019-07-15 19:34:45 +00:00
martin
1f21161492 Don't overwrite the filesystem type unconditionally with the FFSv1 or v2
setup for an architectures default - now we have /tmp on tmpfs back.
2019-07-15 19:13:05 +00:00
martin
d1a5991552 Fix partition size display 2019-07-15 17:17:59 +00:00
skrll
916851dd6d Fix a comment 2019-07-15 11:46:53 +00:00