Commit Graph

271296 Commits

Author SHA1 Message Date
asomers
e8b4d6933d Fix output of nfsstat -cE in json or xml mode
Due to a copy/paste error, the "getacl" field was duplicated, but only in
XML or JSON mode, not in txt mode.

Discussed with:	rmacklem
MFC after:	1 week
Sponsored by:	Axcient
2020-09-02 17:36:30 +00:00
freqlabs
f35eadd3fe Correct and expand on OpenZFS cache file and auto import
Reported by:	avg
Sponsored by:	iXsystems, Inc.
2020-09-02 16:03:33 +00:00
kib
607b961a89 Fix a page table pages leak after LA57.
If the call to _pmap_allocpte() is not sleepable, it is possible that
allocation of PML4 or PDP page is successful but either PDP or PD page
is not.  Restructured code in _pmap_allocpte() leaves zero-referenced
page in the paging structure.

Handle it by checking refcount of the page one level above failed
alloc and free that page if its reference count is zero.

Reported and tested by:	pho
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D26293
2020-09-02 15:55:16 +00:00
freqlabs
a879b8fc67 Use MLINKS where appropriate for zfs/zpool subcommand pages
Reported by:	Julian H. Stacey
Sponsored by:	iXsystems, Inc.
2020-09-02 15:20:10 +00:00
imp
7992a920ad Add note about needing to manually import the zfs pools or update
/etc/rc.d due to the cache file moving to /etc.
2020-09-02 14:28:54 +00:00
kevans
e6c96ba15c caroot: properly remove old distrusted roots
The proper procedure was not followed in r364943; all of these that were
deleted should have instead been moved over to the blacklist so that certctl
can DTRT.

Users must still `certctl rehash` after this, but this should generally be
done by one of mergemaster/etcupdate/freebsd-update/pkgbase already; note
that freebsd-update doesn't come into play for this particular update, as
these have not yet made it into a release.

Future work (after svn -> git) will likely change the script that updatecert
invokes to facilitate the process, rather than trusting that kevans or
whomever updates in the future will remember.

Reported by:	Helge Oldach <freebsd oldach net>
MFC after:	3 days
2020-09-02 12:57:34 +00:00
andrew
1fd8562f05 When CPUTYPE is an architecture name use -march
Allow architecture names to be passed in to the build system via CPUTYPE.
This allows the user to use values such as armv8.1-a or armv8-a+crc as
the CPUTYPE.

Sponsored by:	Innovate UK
2020-09-02 11:53:26 +00:00
kp
402e966cbe ng_ether: Enter NET_EPOCH where required
We must enter NET_EPOCH before calling ether_output_frame(). Several of the
functions it calls (pfil_run_hooks, if_transmit) expect to be running in the
NET_EPOCH.

While here remove an unneeded EPOCH entry (which wasn't wide enough to cover
BRIDGE_INPUT).

PR:		248958
Reviewed by:	glebius, bz (previous version), melifaro (previous version)
Tested by:	manu
Differential Revision:	https://reviews.freebsd.org/D26226
2020-09-02 11:49:22 +00:00
kp
ab9e7c72f5 riscv: very large dma mappings can cause integer overflow
Fix the return type for _bus_dmamap_addseg().
Based on the same fix done for arm64 in r348571.

Sponsored by:	Axiado
2020-09-02 11:33:31 +00:00
hselasky
c4bfc26c64 Fix build fallout after r365054 .
Make sure that building dev/sdhci/sdhci_fsl_fdt.c has all the right
dependencies until a proper fix can be made.

Sponsored by:	Mellanox Technologies // NVIDIA Networking
2020-09-02 11:18:21 +00:00
hselasky
0b89a13619 Assert that cc_exec_drain(cc, direct) is NULL before assigning a new value.
Suggested by:	markj@
Tested by:	callout_test
MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2020-09-02 10:00:30 +00:00
hselasky
389cec3857 Micro optimise _callout_stop_safe() by removing dead code.
The CS_DRAIN flag cannot be set at the same time like the async-drain function
pointer is set. These are orthogonal features. Assert this at the beginning
of the function.

Before:
        if (flags & CS_DRAIN) {
                /* FALLTHROUGH */
        } else if (xxx) {
                return yyy;
        }
        if (drain) {
                zzz = drain;
        }
After:
        if (flags & CS_DRAIN) {
                /* FALLTHROUGH */
        } else if (xxx) {
                return yyy;
        } else {
                if (drain) {
                        zzz = drain;
                }
        }

Reviewed by:	markj@
Tested by:	callout_test
Differential Revision:	https://reviews.freebsd.org/D26285
MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2020-09-02 09:44:00 +00:00
hselasky
e1a8ce398e Add small tool to invoke kernel test framework tests.
MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2020-09-02 09:20:40 +00:00
hselasky
328a007cc1 Fix build of epoch_test module.
While at it add missing epoch_free() call.

MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2020-09-02 09:17:29 +00:00
andrew
3e310e90ef Partially revert r365069.
This whitespace was intentionally added to help differentiate the different
register groups within this file.

While here add missing whitespace from earlier in the file,

Sponsored by:	Innovate UK
2020-09-02 09:04:08 +00:00
rmacklem
c9bdaf9d57 Fix the standalone build of the nfscl and nfsd modules.
Reported by:	jhs@berklix.com
2020-09-02 01:29:33 +00:00
erj
91e102e324 ixl(4): Add support for X710-T*L devices
Add support for new devices which are capable of 2.5 and 5G speeds, as well as
Energy Efficient Ethernet (EEE):

- introduce new device ids
- add ability to select 2.5 and 5G speeds on devices which support it
- add sysctls to enable EEE and read related statistics

Submitted by:	Krzysztof Galazka <krzysztof.galazka@intel.com>
Reviewed by:	#IntelNetworking
MFC after:	3 days
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D25549
2020-09-01 23:16:38 +00:00
mjg
dc3d804363 kgssapi: clean up empty lines in .c and .h files 2020-09-01 22:15:02 +00:00
mjg
59393d4e0b nlm: clean up empty lines in .c and .h files 2020-09-01 22:14:52 +00:00
mjg
b0cd142452 ddb: clean up empty lines in .c and .h files 2020-09-01 22:14:30 +00:00
mjg
246370ba36 geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
mjg
794ebe235e cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
mjg
e169d8195a xdr: clean up empty lines in .c and .h files 2020-09-01 22:13:28 +00:00
mjg
a1c2e427c8 sys: clean up empty lines in .c and .h files 2020-09-01 22:12:58 +00:00
mjg
bb5e775f3b kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
mjg
3cf4b2de11 cpufreq: clean up empty lines in .c and .h files 2020-09-01 22:11:48 +00:00
mjg
938d7b1707 cpuctl: clean up empty lines in .c and .h files 2020-09-01 22:11:22 +00:00
mjg
88a3493077 cmx: clean up empty lines in .c and .h files 2020-09-01 22:11:05 +00:00
mjg
e7de34759e ciss: clean up empty lines in .c and .h files 2020-09-01 22:10:55 +00:00
mjg
7be66c72d4 cfi: clean up empty lines in .c and .h files 2020-09-01 22:10:34 +00:00
mjg
73f45b38a7 cfe: clean up empty lines in .c and .h files 2020-09-01 22:10:24 +00:00
mjg
11f7cb62e1 cesa: clean up empty lines in .c and .h files 2020-09-01 22:10:11 +00:00
mjg
94a815ad2a ce: clean up empty lines in .c and .h files 2020-09-01 22:10:00 +00:00
mjg
8f3646b0d3 cardbus: clean up empty lines in .c and .h files 2020-09-01 22:09:41 +00:00
mjg
ad3f6fc0b6 cadence: clean up empty lines in .c and .h files 2020-09-01 22:09:26 +00:00
mjg
d031c37d62 md: clean up empty lines in .c and .h files 2020-09-01 22:08:52 +00:00
mjg
8b7ab2c886 mem: clean up empty lines in .c and .h files 2020-09-01 22:08:39 +00:00
mjg
79fe805e9a mfi: clean up empty lines in .c and .h files 2020-09-01 22:08:26 +00:00
mjg
472aab7617 mgb: clean up empty lines in .c and .h files 2020-09-01 22:08:14 +00:00
mjg
92bb0a59ee mii: clean up empty lines in .c and .h files 2020-09-01 22:07:59 +00:00
mjg
c7e1f76122 mly: clean up empty lines in .c and .h files 2020-09-01 22:07:37 +00:00
mjg
481790323c mmc: clean up empty lines in .c and .h files 2020-09-01 22:07:26 +00:00
mjg
1191e1f191 mpr: clean up empty lines in .c and .h files 2020-09-01 22:07:12 +00:00
mjg
bc0ef38e69 mps: clean up empty lines in .c and .h files 2020-09-01 22:07:00 +00:00
mjg
51a9c53e48 mpt: clean up empty lines in .c and .h files 2020-09-01 22:06:41 +00:00
mjg
2900c1cb24 mrsas: clean up empty lines in .c and .h files 2020-09-01 22:06:23 +00:00
mjg
b26c0d0853 mthca: clean up empty lines in .c and .h files 2020-09-01 22:06:07 +00:00
mjg
2c25145be4 mvs: clean up empty lines in .c and .h files 2020-09-01 22:05:53 +00:00
mjg
33739433e5 mwl: clean up empty lines in .c and .h files 2020-09-01 22:05:39 +00:00
mjg
382e0b00ca my: clean up empty lines in .c and .h files 2020-09-01 22:05:21 +00:00