opnsense-src/sys
John Baldwin bd8cecc466 cxgbe tom: Call t4_rcvd_locked from do_rx_data to return RX credits
In particular, the kernel RPC layer used by the NFS client never
invokes pru_rcvd since it always reads data from the socket upcall
via MSG_SOCALLBCK which avoids calling pru_rcvd.  As a result, on an
NFS client connection managed by t4_tom, RX credits were never
returned to the TOE connection to open the TCP window resulting in
connection hangs.

To fix, expand the set of conditions in do_rx_data where RX credits
are returned to match those in t4_rcvd_locked by calling the function
directly.

Reviewed by:	np
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D41688

(cherry picked from commit dcfddc8dc091e7688abc8488a0307eba425fa7a2)
2023-10-11 08:10:32 -07:00
..
amd64 amd64 db_trace: Reject unaligned frame pointers 2023-10-11 08:10:32 -07:00
arm gic_acpi: Limit the number of CPUs to GIC_MAXCPU 2023-10-11 08:10:32 -07:00
arm64 efirt_machdep.c: Trim some unused includes 2023-10-11 08:10:32 -07:00
bsm timerfd: Move implementation from linux compat to sys/kern 2023-08-24 14:28:56 -06:00
cam cam/scsi_da: Bump deprecation one release. 2023-08-23 22:34:41 -06:00
cddl dtrace: fix fbt regression for aarch64 2023-10-10 09:41:39 -04:00
compat linux(4): Fix semid64_ds structure layout 2023-10-10 08:12:13 +03:00
conf Untie strchrnul() from gdb. 2023-10-03 09:57:16 -04:00
contrib zfs: merge openzfs/zfs@2407f30bd (zfs-2.2-release) into stable/14 2023-10-08 10:14:19 +02:00
crypto ossl: Update the generated assembly files from OpenSSL 3.0. 2023-09-08 13:55:44 -07:00
ddb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
dev cxgbe tom: Call t4_rcvd_locked from do_rx_data to return RX credits 2023-10-11 08:10:32 -07:00
dts sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
fs fusefs: fix some bugs updating atime during close 2023-10-02 19:10:13 -06:00
gdb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom Fix geom build with clang 17 and KTR enabled 2023-09-20 09:03:55 +02:00
gnu sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
i386 linux(4): Regen for linux_nosys change 2023-10-10 08:12:12 +03:00
isa sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
kern vfs cache: denote a known bug in cache_remove_cnp 2023-10-09 23:19:00 +00:00
kgssapi sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
libkern sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
modules zfs: merge openzfs/zfs@2407f30bd (zfs-2.2-release) into stable/14 2023-10-08 10:14:19 +02:00
net pf: mark removed connections within a multihome association as shutting down 2023-10-02 11:32:14 +02:00
net80211 net80211: introduce two extra ieee80211_notify_scan_done() 2023-10-04 15:19:18 +00:00
netgraph sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
netinet netdump: Check the return value of ifunit_ref() 2023-10-08 20:41:42 -04:00
netinet6 netinet6: Add sysctl flag CTLFLAG_TUN to loader tunables 2023-10-02 08:49:37 +08:00
netipsec sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netlink netlink: fix accessing freed memory 2023-10-06 12:47:39 +00:00
netpfil pf: cope with missing rpool.cur 2023-10-07 09:39:04 +02:00
netsmb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfsclient sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nfsserver sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nlm sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
ofed ofed: mask seq_num identifier to occupy only 3 bytes 2023-08-22 16:09:13 -07:00
opencrypto sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
powerpc sysentvec: add SV_SIGSYS flag 2023-10-09 06:24:31 +03:00
riscv riscv: Print stval in dump_regs for fatal exceptions 2023-10-11 08:10:32 -07:00
rpc sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
security sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sys sysent: Trim trailing whitespaces 2023-10-10 08:12:12 +03:00
teken sys: Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:06 -06:00
tests sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
tools pccarddevs2h.awk: Remove 2023-09-17 08:34:41 -06:00
ufs ufs: restore name cache fast path lookup 2023-09-22 21:50:46 +00:00
vm swap_pager: Fix a race in swap_pager_swapoff_object() 2023-10-08 20:41:35 -04:00
x86 x86: Properly align interrupt vectors for MSI 2023-10-11 08:10:32 -07:00
xdr sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xen sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
Makefile sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
README.md sys/README.md: Add a section for documentation 2023-08-03 11:07:41 -03: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.

Documentation:

Source code documentation is maintained in a set of man pages, under section 9. These pages are located in share/man/man9, from the top-level of the src tree. Consult intro(9) for an overview of existing pages.

Some additional high-level documentation of the kernel is maintained in the Architecture Handbook.

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