97fa288a gbe April 8, 2021, 7:16 p.m.
Obtained from:	OpenBSD
MFC after:	1 week
cgit
9048d9a9 gbe April 8, 2021, 7:07 p.m.
Obtained from:	OpenBSD
MFC after:	1 week
cgit
b878ec02 rscheff April 8, 2021, 6:29 p.m.
As other parts of the base tcp stack (eg.
tcp fastopen) already use jenkins_hash32,
and the properties appear reasonably good,
switching to use that.

Reviewed By: tuexen, #transport, ae
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D29515
cgit
373ffc62 glebius April 8, 2021, 5:58 p.m.
Reviewed by:	rscheff
cgit
29acb543 glebius April 8, 2021, 5:58 p.m.
looking to only read from the result, or to update it as well.
For now doesn't affect locking, but allows to push stats and expire
update into single place.

Reviewed by:	rscheff
cgit
489bde57 glebius April 8, 2021, 5:58 p.m.
They have little value unless you do some profiling investigations,
but they are performance bottleneck.

Reviewed by:	rscheff
cgit
2cca4c0e glebius April 8, 2021, 5:58 p.m.
Reviewed by:	rscheff
cgit
90cca08e rscheff April 8, 2021, 5:16 p.m.
Add proper PRR vnet declarations for consistency.
Also add pointer to tcpopt struct to tcp_do_prr_ack, in preparation
for it to deal with non-SACK window reduction (after loss).

No functional change.

MFC after: 2 weeks
Reviewed By: tuexen, #transport
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D29440
cgit
7702d940 dim April 8, 2021, 4:20 p.m.
When compiling parts of math.h with clang using a C standard before C11,
and using -pedantic, it will result in warnings similar to:

bug254714.c:5:11: warning: '_Generic' is a C11 extension [-Wc11-extensions]
  return !isfinite(1.0);
          ^
/usr/include/math.h:111:21: note: expanded from macro 'isfinite'
                    ^
/usr/include/math.h:82:39: note: expanded from macro '__fp_type_select'
                                      ^

This is because the block that enables use of _Generic is conditional
not only on C11, but also on whether the compiler advertises support for
C generic selections via __has_extension(c_generic_selections).

To work around the warning without having to pessimize the code, use the
__extension__ keyword, which is supported by both clang and gcc. While
here, remove the check for __clang__, as _Generic has been supported for
a long time by gcc too now.

Reported by:	yuri
PR:		254714
MFC after:	1 week
cgit
f2ecc0d1 novel April 8, 2021, 2:44 p.m.
Commit 621b5090487de9fed1b503769702a9a2a27cc7bb introduced a regression
in legacy virtio-9p config parsing by not initializing *sharename to
NULL. As a result, "sharename != NULL" check in the first iteration fails
and bhyve exits with "virtio-9p: more than one share name given".

Fix by adding NULL back.

Approved by:	grehan
cgit
9f2eeb02 rscheff April 8, 2021, 1:26 p.m.
A subtle oversight would subtly change new data packets
sent after a shutdown() or close() call, while the send
buffer is still draining.

MFC after: 3 days
Reviewed By: #transport, tuexen
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D29616
cgit
5998328e andrew April 8, 2021, 10:27 a.m.
MFC after:	2 weeks
Sponsored by:	Innovate UK
cgit
1fd001db mhorne April 8, 2021, 12:41 p.m.
Following the analogous change for amd64 and i386 in 8223717ce62c,
ensure that new processes start with these registers inactive.

PR:		254661
Reported by:	Michał Górny
Reviewed by:	kib, emaste
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D29630
cgit
4967f672 kp April 8, 2021, 11:24 a.m.
Reviewed by:	donner
MFC after:	4 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D29639
cgit
72b3b5a9 mjg April 8, 2021, 11:14 a.m.
This ends up using a smr specific method.

Suggested by:	markj
Tested by:	pho
cgit