]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
3 years agoevdev: Add implicit mode for touch tracking.
Vladimir Kondratyev [Tue, 24 Aug 2021 22:52:37 +0000 (01:52 +0300)]
evdev: Add implicit mode for touch tracking.

In implicit mode assignment of slot number and tracking id is performed
automatically on each synchronization requested by device driver.

This is done with creation of intermediate buffer for multitouch events.
This buffer holds untracked events until synchronization is requested by
device driver. It is needed as touch assigment requires
knowledges of all touch positions pushed in current and previous reports.

MFC after: 2 weeks

3 years agoevdev: Import support for touch-tracking.
Vladimir Kondratyev [Tue, 24 Aug 2021 22:50:53 +0000 (01:50 +0300)]
evdev: Import support for touch-tracking.

Touch tracking is a process of assignment of unique trackingID to each
initiated contact on the surface.  Keeping the trackingIDs persistent
across multitouch reports requires solving of so called Euclidian
Bipartite Matching problem.

This commit imports EBM-solver implementation based on Dinitz-Kronrod
algorithm to find minimum cost matching between contacts listed in two
consecutive reports.

Obtained from: OpenBSD
MFC after: 2 weeks

3 years agoevdev: Make MT tracking IDs monotonically increasing sequence.
Vladimir Kondratyev [Tue, 24 Aug 2021 22:48:33 +0000 (01:48 +0300)]
evdev: Make MT tracking IDs monotonically increasing sequence.

MFC after: 2 weeks

3 years agoevdev: Give short aliases to items of evdev_mt_slot array
Vladimir Kondratyev [Tue, 24 Aug 2021 22:47:34 +0000 (01:47 +0300)]
evdev: Give short aliases to items of evdev_mt_slot array

with using of unioned anonymous structure.

Access to the same data by using different members of union generally
works despite it is not supported by C specs.

Also add helper function to report entire slot state.

MFC after: 2 weeks

3 years agoevdev: Normalize width and pressure of single touch compat events
Vladimir Kondratyev [Tue, 24 Aug 2021 22:46:49 +0000 (01:46 +0300)]
evdev: Normalize width and pressure of single touch compat events

to match Synaptics touchpad reporting range.

MFC after: 2 weeks

3 years agoevdev: force no fuzz for autogenerated single touch compat events.
Vladimir Kondratyev [Tue, 24 Aug 2021 22:45:50 +0000 (01:45 +0300)]
evdev: force no fuzz for autogenerated single touch compat events.

As fuzz has already been applied on multitouch event processing.
This allows to remove existing workaround for double fuzz procesing.

MFC after: 2 weeks

3 years agoevdev: Send first active rather than 0-th slot state as ST report
Vladimir Kondratyev [Tue, 24 Aug 2021 22:45:16 +0000 (01:45 +0300)]
evdev: Send first active rather than 0-th slot state as ST report

MFC after: 2 weeks

3 years agoevdev: Use bitsets to track active touches and slots changed in current report
Vladimir Kondratyev [Tue, 24 Aug 2021 22:44:36 +0000 (01:44 +0300)]
evdev: Use bitsets to track active touches and slots changed in current report

Obtained from: OpenBSD

MFC after:  2 weeks

3 years agoevdev: Multitouch code style changes.
Vladimir Kondratyev [Tue, 24 Aug 2021 22:43:41 +0000 (01:43 +0300)]
evdev: Multitouch code style changes.

1. Move touch count reporting helpers to utils. They are not multitouch.
2. Use evdev_mt prefix for private multitouch support routines.
3. Use int instead of int32_t where fixed size is not required.
4. Export some internal functions.

This change should be no-op.

MFC after: 2 weeks

3 years agoiscsi: Validate DataSN values in Data-In PDUs in the initiator.
John Baldwin [Tue, 24 Aug 2021 21:58:34 +0000 (14:58 -0700)]
iscsi: Validate DataSN values in Data-In PDUs in the initiator.

As is done in the target, require that DataSN values are consecutive
and in-order.  If an out of order Data-In PDU is received, force a
session reconnect.  In addition, when a SCSI Response PDU is received,
verify that the ExpDataSN field matches the count of Data-In PDUs
received for this command.  If not, force a session reconnect.

Reviewed by: mav
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D31594

3 years agobhyve: Fix vq_getchain() error handling bugs in various device models
Mark Johnston [Tue, 24 Aug 2021 18:10:08 +0000 (14:10 -0400)]
bhyve: Fix vq_getchain() error handling bugs in various device models

Reviewed by: grehan, khng
Approved by: so
Security: CVE-2021-29631
Security: FreeBSD-SA-21:13.bhyve

3 years agoFix multiple OpenSSL vulnerabilities.
Gordon Tetlow [Tue, 24 Aug 2021 18:03:46 +0000 (11:03 -0700)]
Fix multiple OpenSSL vulnerabilities.

Approved by: so
Security: SA-21:16.openssl
Security: CVE-2021-3711
Security: CVE-2021-3712

3 years agoFix libfetch out of bounds read.
Gordon Tetlow [Tue, 24 Aug 2021 17:59:01 +0000 (10:59 -0700)]
Fix libfetch out of bounds read.

Approved by: so
Security: SA-21:15.libfetch
Security: CVE-2021-36159

3 years agoFix remote code execution in ggatec(8).
Gordon Tetlow [Tue, 24 Aug 2021 17:40:49 +0000 (10:40 -0700)]
Fix remote code execution in ggatec(8).

Approved by:    so
Security:       SA-21:14.ggatec
Security:       CVE-2021-29630

3 years agotmpfs: Fix error being cleared after commit c12118f6cec0
Ka Ho Ng [Tue, 24 Aug 2021 16:35:29 +0000 (00:35 +0800)]
tmpfs: Fix error being cleared after commit c12118f6cec0

In tmpfs_link() error was erroneously cleared in commit c12118f6cec0.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
MFC with: c12118f6cec0

3 years agouipc_shm: Handle offset on shm_size as if it is beyond shm_size
Ka Ho Ng [Tue, 24 Aug 2021 14:39:43 +0000 (22:39 +0800)]
uipc_shm: Handle offset on shm_size as if it is beyond shm_size

This avoids any unnecessary works in such case.

Sponsored by: The FreeBSD Foundation
Reviewed by: markj, kib
Differential Revision: https://reviews.freebsd.org/D31655

3 years agotmpfs: Fix styles
Ka Ho Ng [Tue, 24 Aug 2021 13:09:21 +0000 (21:09 +0800)]
tmpfs: Fix styles

A lot of return statements were in the wrong style before this commit.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

3 years agoarm: export actlr as sysctl hw.cpu.quirks.actlr_value
Mateusz Guzik [Tue, 24 Aug 2021 14:20:13 +0000 (14:20 +0000)]
arm: export actlr as sysctl hw.cpu.quirks.actlr_value

Reviewed by: cognet
Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agoRevert "Mark LLDB/CLANG_BOOTSTRAP/LLD_BOOTSTRAP as broken on non-FreeBSD for now"
Jessica Clarke [Tue, 24 Aug 2021 14:00:06 +0000 (15:00 +0100)]
Revert "Mark LLDB/CLANG_BOOTSTRAP/LLD_BOOTSTRAP as broken on non-FreeBSD for now"

The fixes for this have now been committed so we can re-enable these.

This reverts commit d9f25575a29ff7c83f226349a10a37b9aaf75ad5.

MFC after: 1 week

3 years agoclang: Build with -fno-strict-aliasing when using GCC
Jessica Clarke [Tue, 24 Aug 2021 13:59:36 +0000 (14:59 +0100)]
clang: Build with -fno-strict-aliasing when using GCC

Somewhat ironically, there are strict aliasing violations in Clang,
which can result in the following assertion failure:

  Assertion `*(NamedDecl **)&Data == ND && "PointerUnion mangles the NamedDecl pointer!"' failed.

Upstream's clang/CMakeLists.txt specifically (not LLVM as a whole)
passes -fno-strict-aliasing if the compiler is not Clang, and this fixes
the above issue.

This was seen when cross-building from Linux using a bootstrap
compiler, but likely also affects worlds built with a new enough
external GCC toolchain.

MFC after: 1 week
Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D31533

3 years agoclang: Support building with GCC and DEBUG_FILES disabled
Jessica Clarke [Tue, 24 Aug 2021 13:59:18 +0000 (14:59 +0100)]
clang: Support building with GCC and DEBUG_FILES disabled

If MK_DEBUG_FILES=no then the Clang link rule has clang as .TARGET,
rather than clang.full, causing the implicit ${CFLAGS.${.TARGET:T}} to
be CFLAGS.clang, and thus pull in flags intended for when your compiler
is Clang, not when linking Clang itself. This doesn't matter if your
compiler is in fact Clang, but it breaks using GCC as, for example,
bsd.sys.mk adds -Qunused-arguments to CFLAGS.clang. This is seen when
trying to build a bootstrap toolchain on Linux where GCC is the system
compiler.

Thus, introduce a new internal NO_TARGET_FLAGS variable that is set by
Clang to disable the addition of these implicit flags. This is a bigger
hammer than necessary, as flags for .o files would be safe, but that is
not needed for Clang.

Note that the same problem does not arise for LDFLAGS when building LLD
with BFD, since our build produces a program called ld.lld, not plain
lld (unlike upstream, where ld.lld is a symlink to lld so they can
support multiple different flavours in one binary).

Suggested by: sjg
Fixes: 31ba4ce8898f ("Allow bootstrapping llvm-tblgen on macOS and Linux")
MFC after: 1 week
Reviewed by: dim, imp, emaste
Differential Revision: https://reviews.freebsd.org/D31532

3 years agoFix bootstrapping to actually build lldb-tblgen for later use
Jessica Clarke [Tue, 24 Aug 2021 13:59:04 +0000 (14:59 +0100)]
Fix bootstrapping to actually build lldb-tblgen for later use

Because MK_LLDB=no is in BSARGS, the bootstrap-tools recursive make does
not add lldb-tblgen to _clang_tblgen, causing it to not be built. This
means that the build currently always uses the host's lldb-tblgen
(which, whilst currently it appears to work, could in future break if
TableGen backends are added or altered) and, if it doesn't exist (either
because the current FreeBSD system was built with it disabled, or you're
building on macOS/Linux), fails. Linux and macOS cross-builds used to
work simply because LLDB was previously in BROKEN_OPTIONS when building
on non-FreeBSD.

Instead, move MK_LLDB=no from BSARGS to XMAKE. This ensures that the
lib/clang build in cross-tools continues to not build LLDB parts for the
bootstrap toolchain (both to save time/space on FreeBSD, and because our
vendored LLDB does not include the macOS and Linux host files so those
would fail to build).

The DIRDEPS target is updated to move MK_LLDB=no from the BSARGS block
that mirrors Makefile.inc1 to the line that disables additional
toolchain components. The DIRDEPS build likely suffers from the same
issue currently, but having never used it and not being familiar with
how it works I am leaving that as-is. If it does suffer from the same
issue it should be easily reproducible by renaming /usr/bin/lldb-tblgen
or moving it to a directory not in PATH.

Fixes: 31ba4ce8898f ("Allow bootstrapping llvm-tblgen on macOS and Linux")
MFC after: 1 week
Reviewed by: dim, emaste, imp
Differential Revision: https://reviews.freebsd.org/D31531

3 years agoMakefile.inc1: Make sure sub-makes see MK_CLANG_BOOTSTRAP=no when XCC is a path
Jessica Clarke [Tue, 24 Aug 2021 13:55:31 +0000 (14:55 +0100)]
Makefile.inc1: Make sure sub-makes see MK_CLANG_BOOTSTRAP=no when XCC is a path

Currently we override MK_CLANG_BOOTSTRAP to no so we don't build a
bootstrap compiler, but subdirectories don't see that and so the hack in
bsd.sys.mk to prefer our includes over Clang's resource dir for external
toolchains is not enabled unless you use -DWITHOUT_CLANG_BOOTSTRAP
explicitly on top of XCC (which tools/build/make.py does not do),
causing duplicate definition errors when building rtld-elf due to the
use of -ffreestanding (Clang's stdint.h will use the system one when
hosted, but its own when freestanding, and only has glibc's preprocessor
guards, not FreeBSD's).

This broke when dropping CLANG_BOOTSTRAP from BROKEN_OPTIONS.

Fixes: 31ba4ce8898f ("Allow bootstrapping llvm-tblgen on macOS and Linux")
MFC after: 1 week
Reviewed by: imp, arichardson
Differential Revision: https://reviews.freebsd.org/D31529

3 years agomemcpy.3: remove BUGS section allowing overlapping strings
Ed Maste [Tue, 24 Aug 2021 13:20:18 +0000 (09:20 -0400)]
memcpy.3: remove BUGS section allowing overlapping strings

The removed text claimed that memcpy is implemented using bcopy and thus
strings may overlap.  Use of bcopy is an implementation detail that is
no longer true, even if the implementation (on some archs) does allow
overlap.

In any case behaviour is undefined per the C standard if memcpy is
called with overlapping objects, and this man page already claimed that
src and dst may not overlap.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31192

3 years agopfctl: build fix
Kristof Provost [Tue, 24 Aug 2021 11:21:05 +0000 (13:21 +0200)]
pfctl: build fix

Fix the build issue introduced in e59eff9ad328 (pfctl: fix killing states by ID)

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agopf tests: test killing states by ID
Kristof Provost [Tue, 24 Aug 2021 10:36:57 +0000 (12:36 +0200)]
pf tests: test killing states by ID

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agopfctl: fix killing states by ID
Kristof Provost [Tue, 24 Aug 2021 10:24:28 +0000 (12:24 +0200)]
pfctl: fix killing states by ID

Since the conversion to the new DIOCKILLSTATESNV the kernel no longer
exists the id and creatorid to be big-endian.
As a result killing states by id (i.e. `pfctl -k id -k 12345`) no longer
worked.

Reported by: Özkan KIRIK
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agoRemove bcopy declaration
Mateusz Guzik [Tue, 24 Aug 2021 11:22:56 +0000 (11:22 +0000)]
Remove bcopy declaration

The kernel was migrated to memmove in ba96f37758412151 ("Use __builtin
for various mem* and b* (e.g. bzero) routines.").

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agolibkern: remove bcopy
Mateusz Guzik [Tue, 24 Aug 2021 11:21:52 +0000 (11:21 +0000)]
libkern: remove bcopy

Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")

File name remains to reduce churn.

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agomips: retire ovbcopy
Mateusz Guzik [Tue, 24 Aug 2021 08:49:31 +0000 (08:49 +0000)]
mips: retire ovbcopy

ovbcopy is unused since 9f45b2da8fa08638 ("Define ovbcopy() as a macro
which expands to the equivalent bcopy() call")

bcopy is left in place because it is used by assembly primitives

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agoarm64: retire bcopy
Mateusz Guzik [Mon, 23 Aug 2021 19:21:48 +0000 (19:21 +0000)]
arm64: retire bcopy

Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")

Reviewed by: andrew
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31651

3 years agoi386: retire bcopy
Mateusz Guzik [Mon, 23 Aug 2021 19:18:49 +0000 (19:18 +0000)]
i386: retire bcopy

Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agoparam: Bump __FreeBSD_version to 1400031
Ka Ho Ng [Tue, 24 Aug 2021 09:13:00 +0000 (17:13 +0800)]
param: Bump __FreeBSD_version to 1400031

Commit 1eaa36523cb9 introduces backward compatible changes to
fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9).
rmsr.r_offset and *offset is updated to contain meaningful value upon
returning from the call.

Sponsored by: The FreeBSD Foundation

3 years agofspacectl(2): Clarifies the return values
Ka Ho Ng [Tue, 24 Aug 2021 09:04:02 +0000 (17:04 +0800)]
fspacectl(2): Clarifies the return values

rmacklem@ spotted two things in the system call:
- Upon returning from a successful operation, vop_stddeallocate can
  update rmsr.r_offset to a value greater than file size. This behavior,
  although being harmless, can be confusing.
- The EINVAL return value for rqsr.r_offset + rqsr.r_len > OFF_MAX is
  undocumented.

This commit has the following changes:
- vop_stddeallocate and shm_deallocate to bound the the affected area
  further by the file size.
- The EINVAL case for rqsr.r_offset + rqsr.r_len > OFF_MAX is
  documented.
- The fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9)'s return
  len is explicitly documented the be the value 0, and the return offset
  is restricted to be the smallest of off + len and current file size
  suggested by kib@. This semantic allows callers to interact better
  with potential file size growth after the call.

Sponsored by: The FreeBSD Foundation
Reviewed by: imp, kib
Differential Revision: https://reviews.freebsd.org/D31604

3 years agotruncate(1): Fix cross-build CI failure due to missing fspacectl
Ka Ho Ng [Tue, 24 Aug 2021 08:26:04 +0000 (16:26 +0800)]
truncate(1): Fix cross-build CI failure due to missing fspacectl

For other platforms, fspacectl(2) is absent. This commit masks out the
calls to fspacectl(2) and replace them with a ENODEV errno.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31619

3 years agoaltq: Fix panics on rmc_restart()
Kristof Provost [Sat, 21 Aug 2021 11:42:27 +0000 (13:42 +0200)]
altq: Fix panics on rmc_restart()

rmc_restart() is called from a timer, but can trigger traffic. This
means the curvnet context will not be set.
Use the vnet associated with the interface we're currently processing to
set it. We also have to enter net_epoch here, for the same reason.

Reviewed by: mjg
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31642

3 years agoRemove bzero declaration
Mateusz Guzik [Mon, 23 Aug 2021 16:20:53 +0000 (16:20 +0000)]
Remove bzero declaration

The kernel was migrated to memset in ba96f37758412151 ("Use __builtin
for various mem* and b* (e.g. bzero) routines.") and there are no
remaining architectures using the file.

malloc is augmented to prevent KMSAN from breaking.

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agomips: retire bzero
Mateusz Guzik [Mon, 23 Aug 2021 16:26:02 +0000 (16:26 +0000)]
mips: retire bzero

Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agopowerpc: retire bzero
Mateusz Guzik [Mon, 23 Aug 2021 16:19:03 +0000 (16:19 +0000)]
powerpc: retire bzero

Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")

Reviewed by: jhibbits
Sponsored by:   Rubicon Communications, LLC ("Netgate")

3 years agoriscv: retire bzero
Mateusz Guzik [Mon, 23 Aug 2021 16:16:32 +0000 (16:16 +0000)]
riscv: retire bzero

Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")

Reviewed by: mhorne
Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agoi386: retire bzero
Mateusz Guzik [Mon, 23 Aug 2021 16:15:29 +0000 (16:15 +0000)]
i386: retire bzero

Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agoi386: retire bcmp
Mateusz Guzik [Mon, 23 Aug 2021 16:27:17 +0000 (16:27 +0000)]
i386: retire bcmp

Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agomips: retire bcmp
Mateusz Guzik [Mon, 23 Aug 2021 16:25:19 +0000 (16:25 +0000)]
mips: retire bcmp

Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agoixgbe: Avoid sbuf_trim(9) in sysctl handler
Kevin Bowling [Mon, 23 Aug 2021 16:21:39 +0000 (09:21 -0700)]
ixgbe: Avoid sbuf_trim(9) in sysctl handler

This was an error, we cannot use sbuf_trim(9) in the
ixgbe_sbuf_fw_version function because it also gets called in
the context of sbuf_new_for_sysctl(9). sbuf(9) explains the interaction
with drain functions as used by sbuf_new_for_sysctl(9).

Reviewed by: imp
Fixes: 7660e4ea5cb7
MFC after: 1 day
Differential Revision: https://reviews.freebsd.org/D31633

3 years agoRemove libkern/bcmp.c
Mateusz Guzik [Mon, 23 Aug 2021 15:40:57 +0000 (15:40 +0000)]
Remove libkern/bcmp.c

The kernel was migrated to memcmp in ba96f37758412151 ("Use __builtin
for various mem* and b* (e.g. bzero) routines.") and there are no
remaining architectures using the file.

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agopowerpc: retire bcmp
Mateusz Guzik [Mon, 23 Aug 2021 15:35:28 +0000 (15:35 +0000)]
powerpc: retire bcmp

Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")

Reviewed by: jhibbits
Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agoriscv: retire bcmp
Mateusz Guzik [Mon, 23 Aug 2021 15:29:32 +0000 (15:29 +0000)]
riscv: retire bcmp

Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")

Reviewed by: mhorne
Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agodiff: read whole files to determine if they are ASCII text
Piotr Pawel Stefaniak [Sun, 22 Aug 2021 19:57:13 +0000 (21:57 +0200)]
diff: read whole files to determine if they are ASCII text

Before this change, only the first BUFSIZE bytes were checked.

Reviewed by: bapt (previous version)
Differential Revision: https://reviews.freebsd.org/D31639

3 years agoAdd arm64 ifunc support in static binaries
Andrew Turner [Fri, 20 Aug 2021 08:22:48 +0000 (09:22 +0100)]
Add arm64 ifunc support in static binaries

Add support for the R_AARCH64_IRELATIVE relocation type in static
binaries on arm64. This is based on the powerpc code, updating it to
use the arm64 resolver ABI, and use the arm64 relocation type.

Tested by: brd
Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31641

3 years agocache: retire cache_fast_revlookup sysctl
Mateusz Guzik [Mon, 23 Aug 2021 13:29:42 +0000 (15:29 +0200)]
cache: retire cache_fast_revlookup sysctl

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agovfs: s/__unused/__diagused in crossmp_*
Mateusz Guzik [Mon, 23 Aug 2021 10:10:38 +0000 (12:10 +0200)]
vfs: s/__unused/__diagused in crossmp_*

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agoarm: retire bzero
Mateusz Guzik [Mon, 19 Jul 2021 13:46:20 +0000 (15:46 +0200)]
arm: retire bzero

Same as bcopy.

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agoarm: flip memclr to use memset
Mateusz Guzik [Mon, 19 Jul 2021 13:46:03 +0000 (15:46 +0200)]
arm: flip memclr to use memset

Reviewed by: andrew
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31217

3 years agoarm64: retire bcmp
Mateusz Guzik [Mon, 23 Aug 2021 09:46:28 +0000 (11:46 +0200)]
arm64: retire bcmp

Reviewed by: andrew
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31645

3 years agoarm64: retire bzero
Mateusz Guzik [Mon, 23 Aug 2021 09:46:01 +0000 (11:46 +0200)]
arm64: retire bzero

Reviewed by: andrew
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31644

3 years agoarm64: add read_frequently, read_mostluy and exclusive_cache_line to linker script
Mateusz Guzik [Mon, 23 Aug 2021 09:44:23 +0000 (11:44 +0200)]
arm64: add read_frequently, read_mostluy and exclusive_cache_line to linker script

Reviewed by: andrew
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31643

3 years agonfsstat(1): Fix a typo in an error message
Gordon Bergling [Mon, 23 Aug 2021 07:21:28 +0000 (09:21 +0200)]
nfsstat(1): Fix a typo in an error message

- s/priviledged/privileged/

MFC after: 1 week

3 years agodiff3: implement --strip-trailing-cr
Piotr Pawel Stefaniak [Sat, 21 Aug 2021 00:28:58 +0000 (02:28 +0200)]
diff3: implement --strip-trailing-cr

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D31626

3 years agodiff3.1: update manual page to match code
Piotr Pawel Stefaniak [Fri, 20 Aug 2021 22:50:05 +0000 (00:50 +0200)]
diff3.1: update manual page to match code

3 years agodiff3: improve style
Piotr Pawel Stefaniak [Fri, 20 Aug 2021 21:50:20 +0000 (23:50 +0200)]
diff3: improve style

3 years agodiff3: sync with upstream
Piotr Pawel Stefaniak [Fri, 20 Aug 2021 21:35:24 +0000 (23:35 +0200)]
diff3: sync with upstream

 * replace realloc calls with reallocarray calls
 * fix merging of files that lack newlines

Obtained from: OpenBSD

3 years agoRegister /usr/tests/usr.bin/diff3
Piotr Pawel Stefaniak [Sun, 22 Aug 2021 10:08:39 +0000 (12:08 +0200)]
Register /usr/tests/usr.bin/diff3

I wasn't able to make check to run diff3 tests, but kevans figured out
that I was missing diff3 in mtree.

3 years agodiff: don't output carriage returns that were stripped on input
Piotr Pawel Stefaniak [Sun, 22 Aug 2021 16:05:59 +0000 (18:05 +0200)]
diff: don't output carriage returns that were stripped on input

--strip-trailing-cr worked as intended for comparison between files,
but the characters were still present in final output.

3 years agolibarchive: import changes from upstream
Martin Matuska [Mon, 23 Aug 2021 00:54:15 +0000 (02:54 +0200)]
libarchive: import changes from upstream

Libarchive 3.5.2

New features:
  PR #1502: Support for PWB and v7 binary cpio formats
  PR #1509: Support of deflate algorithm in symbolic link decompression
            for ZIP archives

Important bugfixes:
  IS #1044: fix extraction of hardlinks to symlinks
  PR #1480: Fix truncation of size values during 7zip archive
            extraction on 32bit architectures
  PR #1504: fix rar header skiming
  PR #1514: ZIP excessive disk read - fix location of central directory
  PR #1520: fix double-free in CAB reader
  PR #1521: Fixed leak of rar before ending with error
  PR #1530: Handle short writes from archive_write_callback
  PR #1532: 7zip: Use compression settings from file also for file header
  IS #1566: do not follow symlinks when processing the fixup list

MFC after: 2 weeks
Relnotes: yes

3 years agoUpdate vendor/libarchive/dist to libarchive/libarchive@1b2c437b9
Martin Matuska [Mon, 23 Aug 2021 00:24:04 +0000 (02:24 +0200)]
Update vendor/libarchive/dist to libarchive/libarchive@1b2c437b9

Libarchive 3.5.2

New features:
  PR #1502: Support for PWB and v7 binary cpio formats
  PR #1509: Support of deflate algorithm in symbolic link decompression
            for ZIP archives

Important bugfixes:
  IS #1044: fix extraction of hardlinks to symlinks
  PR #1480: Fix truncation of size values during 7zip archive
            extraction on 32bit architectures
  PR #1504: fix rar header skiming
  PR #1514: ZIP excessive disk read - fix location of central directory
  PR #1520: fix double-free in CAB reader
  PR #1521: Fixed leak of rar before ending with error
  PR #1530: Handle short writes from archive_write_callback
  PR #1532: 7zip: Use compression settings from file also for file header
  IS #1566: do not follow symlinks when processing the fixup list

Obtained from: libarchive
Libarchive commit: 1b2c437b99b361c7692538fa373e99955e9b93ae
Libarchive tag: v3.5.2

3 years agorouting: Allow using IPv6 next-hops for IPv4 routes (RFC 5549).
Zhenlei Huang [Sun, 22 Aug 2021 22:28:47 +0000 (22:28 +0000)]
routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549).

Implement kernel support for RFC 5549/8950.

* Relax control plane restrictions and allow specifying IPv6 gateways
 for IPv4 routes. This behavior is controlled by the
 net.route.rib_route_ipv6_nexthop sysctl (on by default).

* Always pass final destination in ro->ro_dst in ip_forward().

* Use ro->ro_dst to exract packet family inside if_output() routines.
 Consistently use RO_GET_FAMILY() macro to handle ro=NULL case.

* Pass extracted family to nd6_resolve() to get the LLE with proper encap.
 It leverages recent lltable changes committed in c541bd368f86.

Presence of the functionality can be checked using ipv4_rfc5549_support feature(3).
Example usage:
  route add -net 192.0.0.0/24 -inet6 fe80::5054:ff:fe14:e319%vtnet0

Differential Revision: https://reviews.freebsd.org/D30398
MFC after: 2 weeks

3 years agovm: use __func__ for the correct function name
Bjoern A. Zeeb [Sun, 22 Aug 2021 17:21:01 +0000 (17:21 +0000)]
vm: use __func__ for the correct function name

In fee2a2fa39834d8d5eaa981298fce9d2ed31546d the KASSERTs in
vm_page_unwire_noq() changed from "vm_page_unwire" to "vm_page_unref".
While the former no longer was part of that function the latter does
not exist as a function and is highly confusing when hit when using
tools to lookup the functions and not doing a full-text search.
Use %s __func__ for printing the function name, as that will do the
right thing as code moves around and functions get renamed.

Hit: while debugging a wired page leak with linuxkpi/iwlwifi
Sponsored by: The FreeBSD Foundation
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D31635

3 years agovfs: fix cache-relatecd LOR introduced in the previous change
Mateusz Guzik [Sun, 22 Aug 2021 16:17:42 +0000 (16:17 +0000)]
vfs: fix cache-relatecd LOR introduced in the previous change

Reported by: kib
Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agoFix aio_readv(2), aio_writev(2) with SIGEV_THREAD.
Thomas Munro [Sun, 22 Aug 2021 11:34:07 +0000 (23:34 +1200)]
Fix aio_readv(2), aio_writev(2) with SIGEV_THREAD.

Add missing wrapper code to librt for these new functions so that
SIGEV_THREAD works.  Without machinery to convert it to SIGEV_THREAD_ID,
you got EINVAL.

Reviewed by:    asomers
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D31618

3 years agolio_listio(2): Allow LIO_READV and LIO_WRITEV.
Thomas Munro [Sun, 22 Aug 2021 09:48:59 +0000 (21:48 +1200)]
lio_listio(2):  Allow LIO_READV and LIO_WRITEV.

Allow multiple vector IOs to be started with one system call.
aio_readv() and aio_writev() already used these opcodes under the
covers.  This commit makes them available to user space.

Being non-standard extensions, they're only visible if __BSD_VISIBLE is
defined, like the functions.

Reviewed by:    asomers, kib
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D31627

3 years agonetmap: import changes from upstream
Vincenzo Maffione [Sun, 22 Aug 2021 09:31:05 +0000 (09:31 +0000)]
netmap: import changes from upstream

 - make sure rings are disabled during resets
 - introduce netmap_update_hostrings_mode(), with support
   for multiple host rings
 - always initialize ni_bufs_head in netmap_if
      ni_bufs_head was not properly initialized when no external buffers were
      requestedx and contained the ni_bufs_head from the last request. This
      was causing spurious buffer frees when alternating between apps that
      used external buffers and apps that did not use them.
 - check na validitity under lock on detach
 - netmap_mem: fix leak on error path
 - nm_dispatch: fix compilation on Raspberry Pi

MFC after: 2 weeks

3 years agolltable: fix crash introduced in c541bd368f86.
Alexander V. Chernikov [Sun, 22 Aug 2021 08:47:49 +0000 (08:47 +0000)]
lltable: fix crash introduced in c541bd368f86.

Reported by: cy
MFC after: 2 weeks

3 years agorpc(3): Correct a few common typos in source code comments
Gordon Bergling [Sun, 22 Aug 2021 06:16:09 +0000 (08:16 +0200)]
rpc(3): Correct a few common typos in source code comments

- s/therfore/therefor/
- s/activte/active/

Obtained from: NetBSD
MFC after: 3 days

3 years agoext2fs(5): Correct a typo in an error message
Gordon Bergling [Sun, 22 Aug 2021 05:58:22 +0000 (07:58 +0200)]
ext2fs(5): Correct a typo in an error message

- s/talbes/tables/

MFC after: 1 week

3 years agoApply clang fix for assertion failure compiling multimedia/minitube
Dimitry Andric [Sat, 21 Aug 2021 21:03:37 +0000 (23:03 +0200)]
Apply clang fix for assertion failure compiling multimedia/minitube

Merge commit 79f9cfbc21e0 from llvm git (by Yaxun (Sam) Liu):

  Do not merge LocalInstantiationScope for template specialization

  A lambda in a function template may be recursively instantiated. The recursive
  lambda will cause a lambda function instantiated multiple times, one inside another.
  The inner LocalInstantiationScope should not be marked as MergeWithParentScope
  since it already has references to locals properly substituted, otherwise it causes
  assertion due to the check for duplicate locals in merged LocalInstantiationScope.

  Reviewed by: Richard Smith

  Differential Revision: https://reviews.llvm.org/D98068

Reported by: yuri
PR: 257978
MFC after: 3 days

3 years agoloader: loader_lua can run command_more twice
Toomas Soome [Sat, 21 Aug 2021 18:17:18 +0000 (21:17 +0300)]
loader: loader_lua can run command_more twice

When we quit pager, the return value 1 is returned and command_more()
interprets it as error.

when lua loader gets error from command, it will try to
interpret it once more, so we get the same file shown once more.

There is no reason why we should return error from command_more().

MFC after: 1 week

3 years agobhyve: change a default address from ANY to localhost
Mariusz Zaborski [Thu, 19 Aug 2021 18:00:35 +0000 (20:00 +0200)]
bhyve: change a default address from ANY to localhost

Discussed with:     grehan, jhb

3 years agobyhve: add option to specify IP address for gdb
Mariusz Zaborski [Thu, 19 Aug 2021 17:52:12 +0000 (19:52 +0200)]
byhve: add option to specify IP address for gdb

Allow user to specify the IP address available for gdb debugger.

Reviewed by: jhb, grehan, rgrimes, bcr (man pages)
Differential Revision: https://reviews.freebsd.org/D29607

3 years agolltable: Add support for "child" LLEs holding encap for IPv4oIPv6 entries.
Alexander V. Chernikov [Sat, 21 Aug 2021 14:13:32 +0000 (14:13 +0000)]
lltable: Add support for "child" LLEs holding encap for IPv4oIPv6 entries.

Currently we use pre-calculated headers inside LLE entries as prepend data
 for `if_output` functions. Using these headers allows saving some
 CPU cycles/memory accesses on the fast path.

However, this approach makes adding L2 header for IPv4 traffic with IPv6
 nexthops more complex, as it is not possible to store multiple
 pre-calculated headers inside lle. Additionally, the solution space is
 limited by the fact that PCB caching saves LLEs in addition to the nexthop.

Thus, add support for creating special "child" LLEs for the purpose of holding
 custom family encaps and store mbufs pending resolution. To simplify handling
 of those LLEs, store them in a linked-list inside a "parent" (e.g. normal) LLE.
 Such LLEs are not visible when iterating LLE table. Their lifecycle is bound
 to the "parent" LLE - it is not possible to delete "child" when parent is alive.
 Furthermore, "child" LLEs are static (RTF_STATIC), avoding complex state
 machine used by the standard LLEs.

nd6_lookup() and nd6_resolve() now accepts an additional argument, family,
 allowing to return such child LLEs. This change uses `LLE_SF()` macro which
 packs family and flags in a single int field. This is done to simplify merging
 back to stable/. Once this code lands, most of the cases will be converted to
 use a dedicated `family` parameter.

Differential Revision: https://reviews.freebsd.org/D31379
MFC after: 2 weeks

3 years agoloader: FB console does leave garbage on screen while scrolling
Toomas Soome [Sat, 21 Aug 2021 11:25:36 +0000 (14:25 +0300)]
loader: FB console does leave garbage on screen while scrolling

Scrolling screen will leave "trail" of chars from first column.
Apparently caused by cursor location mismanagement.
Make sure we do not [attempt to] set cursor out of the screen.

MFC after: 1 week

3 years agotarg(4): Remove D_NEEDGIANT.
Alexander Motin [Sat, 21 Aug 2021 15:20:54 +0000 (11:20 -0400)]
targ(4): Remove D_NEEDGIANT.

I don't believe this code needs Giant, if ever needed.

MFC after: 1 month

3 years agocam(4): Fix quick unplug/replug for SCSI.
Alexander Motin [Sat, 21 Aug 2021 13:31:41 +0000 (09:31 -0400)]
cam(4): Fix quick unplug/replug for SCSI.

If some device is plugged back in after unplug before the probe periph
destroyed, it will just restart the probe process. But I've found that
PROBE_INQUIRY_CKSUM flag not cleared between the iterations may cause
AC_FOUND_DEVICE not reported on the second iteration, and because of
AC_LOST_DEVICE reported during the first iteration, the device end up
configured, but without any periphs attached.

We've found that enabled serial console and 102-disk JBOD cause enough
probe delays to easily trigger the issue for half of the disks.  This
change fixes it reliably on my tests.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

3 years agotruncate(1): Update tests' golden output
Ka Ho Ng [Sat, 21 Aug 2021 09:03:14 +0000 (17:03 +0800)]
truncate(1): Update tests' golden output

After commit 5ee2c35751ef truncate(1)'s usage output was extended.
Update the golden output in test cases to match the changes made.

Sponsored by: The FreeBSD Foundation
Reviewed by: lwhsu
Differential Revision: https://reviews.freebsd.org/D31628

3 years agoixl(4): Fix reporting of unqualified transceivers
Krzysztof Galazka [Fri, 20 Aug 2021 21:12:28 +0000 (14:12 -0700)]
ixl(4): Fix reporting of unqualified transceivers

When link_active_on_if_down flag is disabled and link is brought down
with ifconfig, FW reports a false positive link event about an
unqualified transceiver. The condition used in the driver to filter out
those false positive events was incorrect and caused that unqualified
module event to also not be reported when the event was valid.

Change the condition to rely on IFF_UP flag instead of
link_active_on_if_down and bump driver version to 2.3.1-k.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com>
Signed-off-by: Eric Joyner <erj@FreeBSD.org>
Reviewed by: stallamr@netapp.com, erj@
Tested by: gowtham.kumar.ks@intel.com
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D30733

3 years agointel ethernet: Use ether_gen_addr(9)
Kevin Bowling [Fri, 20 Aug 2021 14:45:30 +0000 (07:45 -0700)]
intel ethernet: Use ether_gen_addr(9)

Use ether_gen_addr(9) for VF MAC generation

Reviewed by: Intel Networking (erj), kevans
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31616

3 years agoOnly trigger read-ahead if two adjacent blocks have been requested.
Maxim Sobolev [Fri, 20 Aug 2021 19:33:51 +0000 (12:33 -0700)]
Only trigger read-ahead if two adjacent blocks have been requested.

The change makes block caching algorithm to work better for remote
media on low-BW/high-delay links.

This cuts boot time over IP KVMs noticeably, since the initialization
stage reads bunch of small 4th (and now lua) files that are not in
the same cache stripe (usually), thus wasting lot of bandwidth and
increasing latency even further.

The original regression came in 2017 with revision 87ed2b7f5. We've
seen increase of time it takes for the loader to get to the kernel
loading from under a minute to 10-15 minutes in many cases.

Reviewed by: tsoome
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D31623

3 years agoUse interruptible wait for blocking recursive unmounts
Jason A. Harmening [Sun, 8 Aug 2021 05:31:02 +0000 (22:31 -0700)]
Use interruptible wait for blocking recursive unmounts

Now that we allow recursive unmount attempts to be abandoned upon
exceeding the retry limit, we should avoid leaving an unkillable
thread when a synchronous unmount request was issued against the
base filesystem.

Reviewed by: kib (earlier revision), mkusick
Differential Revision:  https://reviews.freebsd.org/D31450

3 years agoVFS: add retry limit and delay for failed recursive unmounts
Jason A. Harmening [Sun, 8 Aug 2021 05:29:46 +0000 (22:29 -0700)]
VFS: add retry limit and delay for failed recursive unmounts

A forcible unmount attempt may fail due to a transient condition, but
it may also fail due to some issue in the filesystem implementation
that will indefinitely prevent successful unmount.  In such a case,
the retry logic in the recursive unmount facility will cause the
deferred unmount taskqueue to execute constantly.

Avoid this scenario by imposing a retry limit, with a default value
of 10, beyond which the recursive unmount facility will emit a log
message and give up.  Additionally, introduce a grace period, with
a default value of 1s, between successive unmount retries on the
same mount.

Create a new sysctl node, vfs.deferred_unmount, to export the total
number of failed recursive unmount attempts since boot, and to allow
the retry limit and retry grace period to be tuned.

Reviewed by: kib (earlier revision), mkusick
Differential Revision:  https://reviews.freebsd.org/D31450

3 years agompr(4): Fix unmatched devq release.
Alexander Motin [Fri, 20 Aug 2021 18:37:55 +0000 (14:37 -0400)]
mpr(4): Fix unmatched devq release.

Before this change devq was frozen only if some command was sent to
the target after reset started, but release was called always.  This
change freezes the devq immediately, leaving mprsas_action_scsiio()
check only to cover race condition due to different lock devq use.

This should also avoid unnecessary requeue of the commands, creating
additional log noise and confusing some broken apps.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

3 years agovfs: remove an unused variable from nameicap_tracker_add
Mateusz Guzik [Fri, 20 Aug 2021 17:49:00 +0000 (19:49 +0200)]
vfs: remove an unused variable from nameicap_tracker_add

Reported by cc --analyze

Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agovfs: use vn_lock_pair to avoid establishing an ordering on mount
Mateusz Guzik [Wed, 18 Aug 2021 21:14:16 +0000 (23:14 +0200)]
vfs: use vn_lock_pair to avoid establishing an ordering on mount

This fixes some of the LORs seen on mount/unmount.

Complete fix will require taking care of unmount as well.

Reviewed by: kib
Tested by: pho (previous version)
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31611

3 years agoAllow rc.d script to provide "status" method, even if it does not
Maxim Sobolev [Fri, 20 Aug 2021 16:43:04 +0000 (09:43 -0700)]
Allow rc.d script to provide "status" method, even if it does not
define procname or have a PID file. This might be useful for cases,
such as mounting local FS, when there is no running daemon
still some other persistent state in the system which status
can be checked.

It is still possible to have a status method before this by having
extra_commands="status", but it's not obvious and might give
an script writer some extra legwork to figure out how and why
the straight method is not working.

Reviewed by: cy
MFC after: 1 week
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D31614

3 years agoRemove unused function mana_reset_counters.
Wei Hu [Fri, 20 Aug 2021 15:00:02 +0000 (15:00 +0000)]
Remove unused function mana_reset_counters.

This fixes the build warning caused by this function.
Reported by: markj
Tested by: whu
MFC after: 2 weeks
Sponsored by: Microsoft

3 years agoFully revert f83f5d58394db57576bbed6dc7531997cabeb102 for the sys/dev/usb/serial
Hans Petter Selasky [Fri, 20 Aug 2021 15:59:29 +0000 (17:59 +0200)]
Fully revert f83f5d58394db57576bbed6dc7531997cabeb102 for the sys/dev/usb/serial
folder, only keeping the zero length packet API introduced in sys/dev/usb
after more reports of USB serial devices not supporting ZLPs.

Reported by: mav@
MFC after: 1 week
Sponsored by: NVIDIA Networking

3 years agompr(4): Handle mprsas_alloc_tm() errors on device removal.
Alexander Motin [Fri, 20 Aug 2021 13:46:51 +0000 (09:46 -0400)]
mpr(4): Handle mprsas_alloc_tm() errors on device removal.

SAS9305-16e with firmware 16.00.01.00 report HighPriorityCredit of
only 8, while for comparison some other combinations I have report
100 or even 128.  In case of large JBOD detach requirement to send
target reset command to each target same time overflows the limit,
and without adequate handling makes devices stuck in half-detached
state, preventing later re-attach.

To handle that in case of allocation error mark the target with new
MPRSAS_TARGET_TOREMOVE flag, and retry the removal attempt next time
something else free high priority command.  With this patch I can
successfully detach/attach 102 disk JBOD from/to the SAS9305-16e.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

3 years agolibpfctl: Fix endianness issues
Kristof Provost [Fri, 20 Aug 2021 11:43:15 +0000 (13:43 +0200)]
libpfctl: Fix endianness issues

Several fields are supplied in big-endian format, so we need to convert
them before we display them.

MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")

3 years agosctp: improve handling of illegal parameters of INIT-ACK chunks
Michael Tuexen [Fri, 20 Aug 2021 12:03:49 +0000 (14:03 +0200)]
sctp: improve handling of illegal parameters of INIT-ACK chunks

MFC after: 3 days

3 years agoMicrosoft Azure Network Adapter(MANA) VF support
Wei Hu [Fri, 20 Aug 2021 08:43:10 +0000 (08:43 +0000)]
Microsoft Azure Network Adapter(MANA) VF support

MANA is the new network adapter from Microsoft which will be available
in Azure public cloud. It provides SRIOV NIC as virtual function to
guest OS running on Hyper-V.

The code can be divided into two major parts. Gdma_main.c is the one to
bring up the hardware board and drives all underlying hardware queue
infrastructure. Mana_en.c contains all main ethernet driver code.
It has only tested and supported on amd64 architecture.

PR: 256336
Reviewed by: decui@microsoft.com
Tested by: whu
MFC after: 2 week
Relnotes: yes
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D31150

3 years agoufs_dirhash: Correct a typo in a comment
Gordon Bergling [Fri, 20 Aug 2021 07:59:18 +0000 (09:59 +0200)]
ufs_dirhash: Correct a typo in a comment

- s/memry/memory/

MFC after: 3 days

3 years agoPartial revert of f83f5d58394db57576bbed6dc7531997cabeb102 for uftdi(4).
Hans Petter Selasky [Fri, 20 Aug 2021 07:52:32 +0000 (09:52 +0200)]
Partial revert of f83f5d58394db57576bbed6dc7531997cabeb102 for uftdi(4).
Apparently devices with bcdDevice less than 0x0600, have problems receiving ZLPs.

Reported by: kevlo@
MFC after: 1 week
Sponsored by: NVIDIA Networking