freebsd-src/sys
Mark Johnston df7bbd8c35 epair: Simplify the transmit path and address lost wakeups
epairs currently shuttle all transmitted packets through a single global
taskqueue thread.  To hand packets over to the taskqueue thread, each
epair maintains a pair of ring buffers and a lockless scheme for
notifying the thread of pending work.  The implementation can lead to
lost wakeups, causing to-be-transmitted packets to end up stuck in the
queue.

Rather than extending the existing scheme, simply replace it with a
linked list protected by a mutex, and use the mutex to synchronize
wakeups of the taskqueue thread.  This appears to give equivalent or
better throughput with >= 16 producer threads and eliminates the lost
wakeups.

Reviewed by:	kp
MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	Modirum MDPay
Differential Revision:	https://reviews.freebsd.org/D38843
2023-03-06 12:49:28 -05:00
..
amd64 linux(4): Drop unncessary struct l_ifconf declaration from amd64/linux 2023-03-04 12:11:38 +03:00
arm Map arm64 pci config memory as non-posted 2023-03-05 20:17:21 +00:00
arm64 Support non-posted MMIO on arm64 with FDT 2023-03-05 20:17:21 +00:00
bsm
cam
cddl
compat linux_80211: Don't dequeue lsta if not queued 2023-03-05 12:16:22 -08:00
conf abstract out the vm detection via smbios.. 2023-03-02 16:54:21 -08:00
contrib powerpc64*: port mlx5, OFED, KTLS and krping 2023-02-26 23:38:33 +01:00
crypto
ddb
dev Mechanically convert usb ethernet drivers to DrvAPI 2023-03-06 11:04:15 -05:00
dts
fs nfs_fha_new: Fix nfs_fha_new so that sysctls work in prisons 2023-03-01 15:25:35 -08:00
gdb
geom g_part_ebr: always create "compat" aliases 2023-03-01 13:44:01 -05:00
gnu
i386 linux(4): Reduce code duplication between MD files 2023-03-04 12:11:38 +03:00
isa
kern deadlkres: Make parameters settable with tunables 2023-03-03 11:16:41 -05:00
kgssapi nfsd: Enable the NFSD_VNET vnet front end macros 2023-02-18 14:59:36 -08:00
libkern
modules sys/modules: Make use of SRCS.${KERN_OPT}. 2023-03-01 10:32:30 -08:00
net epair: Simplify the transmit path and address lost wakeups 2023-03-06 12:49:28 -05:00
net80211 net80211: ieee80211_swscan_bg_scan() track return variable under lock 2023-02-23 21:12:23 +00:00
netgraph ipfw: garbage collect ip_fw_chk_ptr 2023-03-03 10:30:15 -08:00
netinet in_mcat.c: change multicast not member condition 2023-03-03 22:25:17 -07:00
netinet6 netinet: Remove the IP(V6)_RSS_LISTEN_BUCKET socket option 2023-02-28 15:57:21 -05:00
netipsec ipsec: only update lastused when it changes 2023-02-16 07:33:51 +00:00
netlink netlink: use newly-added if_foreach_sleep() to iterate over the interface list. 2023-03-06 15:08:08 +00:00
netpfil pfsync: ensure 'error' is always initialised 2023-02-16 09:16:35 +01:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc powerpc64*: port mlx5, OFED, KTLS and krping 2023-02-26 23:38:33 +01:00
riscv riscv kernel config: clean up whitespace 2023-02-24 08:36:29 -06:00
rpc svc_rpcsec_gss.c: Separate out the non-vnet initialization 2023-03-01 15:29:25 -08:00
security
sys time: s/ppsratecheck/eventratecheck 2023-02-24 19:26:36 +00:00
teken
tests
tools
ufs
vm Drop space in "vm object" lock name to improve wchan 2023-02-15 08:31:17 -05:00
x86 abstract out the vm detection via smbios.. 2023-03-02 16:54:21 -08:00
xdr
xen
Makefile
README.md note that some arch independent code can live in dev (e.g. SMBios) 2023-03-03 01:54:07 -08:00

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures