Commit Graph

252849 Commits

Author SHA1 Message Date
Kristof Provost
51e805c43c 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
Kristof Provost
3bebdc0564 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
Hans Petter Selasky
e7b2173d0b 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
Hans Petter Selasky
624677fad7 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
Hans Petter Selasky
0d0053d7ed 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
Hans Petter Selasky
72d849c761 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
Hans Petter Selasky
b1acfb2401 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 Turner
b148010b6a 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
Rick Macklem
ba774e9296 Fix the standalone build of the nfscl and nfsd modules.
Reported by:	jhs@berklix.com
2020-09-02 01:29:33 +00:00
Eric Joyner
2984a8dd7c 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
Mateusz Guzik
b4a5336039 kgssapi: clean up empty lines in .c and .h files 2020-09-01 22:15:02 +00:00
Mateusz Guzik
3e0cd950ac nlm: clean up empty lines in .c and .h files 2020-09-01 22:14:52 +00:00
Mateusz Guzik
b10bc5a1d5 ddb: clean up empty lines in .c and .h files 2020-09-01 22:14:30 +00:00
Mateusz Guzik
d40bc60752 geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
Mateusz Guzik
27dcd3d90b cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
Mateusz Guzik
985b8ee8d2 xdr: clean up empty lines in .c and .h files 2020-09-01 22:13:28 +00:00
Mateusz Guzik
f6e54eb360 sys: clean up empty lines in .c and .h files 2020-09-01 22:12:58 +00:00
Mateusz Guzik
6fed89b179 kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
Mateusz Guzik
ab326db897 cpufreq: clean up empty lines in .c and .h files 2020-09-01 22:11:48 +00:00
Mateusz Guzik
a7699405cb cpuctl: clean up empty lines in .c and .h files 2020-09-01 22:11:22 +00:00
Mateusz Guzik
ea78d63ed0 cmx: clean up empty lines in .c and .h files 2020-09-01 22:11:05 +00:00
Mateusz Guzik
405b8d43e4 ciss: clean up empty lines in .c and .h files 2020-09-01 22:10:55 +00:00
Mateusz Guzik
0979589188 cfi: clean up empty lines in .c and .h files 2020-09-01 22:10:34 +00:00
Mateusz Guzik
9c0df1da91 cfe: clean up empty lines in .c and .h files 2020-09-01 22:10:24 +00:00
Mateusz Guzik
594dd1ded3 cesa: clean up empty lines in .c and .h files 2020-09-01 22:10:11 +00:00
Mateusz Guzik
ebf31a5cb9 ce: clean up empty lines in .c and .h files 2020-09-01 22:10:00 +00:00
Mateusz Guzik
44b1283d2a cardbus: clean up empty lines in .c and .h files 2020-09-01 22:09:41 +00:00
Mateusz Guzik
2334c4b865 cadence: clean up empty lines in .c and .h files 2020-09-01 22:09:26 +00:00
Mateusz Guzik
1224a253d8 md: clean up empty lines in .c and .h files 2020-09-01 22:08:52 +00:00
Mateusz Guzik
9f169a20b5 mem: clean up empty lines in .c and .h files 2020-09-01 22:08:39 +00:00
Mateusz Guzik
f0782e02a2 mfi: clean up empty lines in .c and .h files 2020-09-01 22:08:26 +00:00
Mateusz Guzik
fc32241fc8 mgb: clean up empty lines in .c and .h files 2020-09-01 22:08:14 +00:00
Mateusz Guzik
0077d05cae mii: clean up empty lines in .c and .h files 2020-09-01 22:07:59 +00:00
Mateusz Guzik
5ef3520a33 mly: clean up empty lines in .c and .h files 2020-09-01 22:07:37 +00:00
Mateusz Guzik
56feefccc7 mmc: clean up empty lines in .c and .h files 2020-09-01 22:07:26 +00:00
Mateusz Guzik
577858c836 mpr: clean up empty lines in .c and .h files 2020-09-01 22:07:12 +00:00
Mateusz Guzik
742c5f2014 mps: clean up empty lines in .c and .h files 2020-09-01 22:07:00 +00:00
Mateusz Guzik
0bd9a5da1c mpt: clean up empty lines in .c and .h files 2020-09-01 22:06:41 +00:00
Mateusz Guzik
139b723f80 mrsas: clean up empty lines in .c and .h files 2020-09-01 22:06:23 +00:00
Mateusz Guzik
3cb02df9ae mthca: clean up empty lines in .c and .h files 2020-09-01 22:06:07 +00:00
Mateusz Guzik
68304fdc15 mvs: clean up empty lines in .c and .h files 2020-09-01 22:05:53 +00:00
Mateusz Guzik
1046c45055 mwl: clean up empty lines in .c and .h files 2020-09-01 22:05:39 +00:00
Mateusz Guzik
6622a5e912 my: clean up empty lines in .c and .h files 2020-09-01 22:05:21 +00:00
Mateusz Guzik
ecb86c27ba mxge: clean up empty lines in .c and .h files 2020-09-01 22:05:00 +00:00
Mateusz Guzik
4dd5edf32a nfe: clean up empty lines in .c and .h files 2020-09-01 22:04:37 +00:00
Mateusz Guzik
db95a0c2f6 nfsmb: clean up empty lines in .c and .h files 2020-09-01 22:04:24 +00:00
Mateusz Guzik
1db0db8a10 nge: clean up empty lines in .c and .h files 2020-09-01 22:04:10 +00:00
Mateusz Guzik
391486af75 ntb: clean up empty lines in .c and .h files 2020-09-01 22:03:55 +00:00
Mateusz Guzik
86e53c0789 null: clean up empty lines in .c and .h files 2020-09-01 22:03:46 +00:00
Mateusz Guzik
06e9b42260 nvd: clean up empty lines in .c and .h files 2020-09-01 22:03:32 +00:00