freebsd-src/sys/conf
Gleb Smirnoff e68b379244 tcp: embed inpcb into tcpcb
For the TCP protocol inpcb storage specify allocation size that would
provide space to most of the data a TCP connection needs, embedding
into struct tcpcb several structures, that previously were allocated
separately.

The most import one is the inpcb itself.  With embedding we can provide
strong guarantee that with a valid TCP inpcb the tcpcb is always valid
and vice versa.  Also we reduce number of allocs/frees per connection.
The embedded inpcb is placed in the beginning of the struct tcpcb,
since in_pcballoc() requires that.  However, later we may want to move
it around for cache line efficiency, and this can be done with a little
effort.  The new intotcpcb() macro is ready for such move.

The congestion algorithm data, the TCP timers and osd(9) data are
also embedded into tcpcb, and temprorary struct tcpcb_mem goes away.
There was no extra allocation here, but we went through extra pointer
every time we accessed this data.

One interesting side effect is that now TCP data is allocated from
SMR-protected zone.  Potentially this allows the TCP stacks or other
TCP related modules to utilize that for their own synchronization.

Large part of the change was done with sed script:

s/tp->ccv->/tp->t_ccv./g
s/tp->ccv/\&tp->t_ccv/g
s/tp->cc_algo/tp->t_cc/g
s/tp->t_timers->tt_/tp->tt_/g
s/CCV\(ccv, osd\)/\&CCV(ccv, t_osd)/g

Dependency side effect is that code that needs to know struct tcpcb
should also know struct inpcb, that added several <netinet/in_pcb.h>.

Differential revision:	https://reviews.freebsd.org/D37127
2022-12-07 09:00:48 -08:00
..
config.mk config.mk: All options in DEFAULTS are now defined in opt_global.h 2022-10-24 12:13:04 -06:00
dtb.build.mk dtb: Be much less verbose in the building of dtb 2022-10-29 10:13:54 -06:00
dtb.mk
files Fix a typo in the binmisc option name 2022-12-07 13:51:34 +00:00
files.amd64 zfs: fix static module build broken in 1f1e2261e 2022-06-23 19:44:38 +02:00
files.arm sys: use .S for assembly language files that use the preprocessor 2022-11-02 10:29:00 -04:00
files.arm64 Split out the arm64 EL2 exception vectors 2022-11-15 17:26:52 +00:00
files.i386 sys: use .S for assembly language files that use the preprocessor 2022-11-02 10:29:00 -04:00
files.powerpc Import an optimized str{n}cmp on arm64 2022-09-08 14:23:20 +01:00
files.riscv Import an optimized str{n}cmp on arm64 2022-09-08 14:23:20 +01:00
files.x86 arm64: Hyper-V: enablement for ARM64 in Hyper-V (Part 3, final) 2022-10-27 13:53:22 +00:00
kern.mk Use __freebsd_kprintf__ with GCC 12+ similar to clang. 2022-11-22 08:36:12 -08:00
kern.opts.mk cddl/*: add a WITH(OUT)_DTRACE option 2022-07-06 14:03:48 +01:00
kern.post.mk amd64: symlink i386 includes into build dir 2022-06-13 18:35:38 +01:00
kern.pre.mk zfs: merge openzfs/zfs@2163cde45 2022-11-16 21:27:42 +01:00
kmod.mk LinuxKPI: add the "dummy" includes directory to builds 2022-09-26 19:36:44 +00:00
kmod.opts.mk
kmod_syms.awk
kmod_syms_prefix.awk
ldscript.amd64
ldscript.arm
ldscript.arm64
ldscript.i386
ldscript.kmod.amd64
ldscript.kmod.i386
ldscript.powerpc
ldscript.powerpc64
ldscript.powerpc64le
ldscript.powerpcspe
ldscript.riscv
Makefile.amd64
Makefile.arm
Makefile.arm64
Makefile.i386
Makefile.powerpc
Makefile.riscv
newvers.sh newvers.sh: Don't use return to exit. 2022-06-14 10:51:39 -07:00
NOTES Fix a typo in the binmisc option name 2022-12-07 13:51:34 +00:00
options tcp: embed inpcb into tcpcb 2022-12-07 09:00:48 -08:00
options.amd64 x86: Add MPTABLE_LINUX_BUG_COMPAT option 2022-10-17 23:02:22 -07:00
options.arm arm: Remove useless armv6/armv7 options 2022-10-20 10:48:31 -06:00
options.arm64 conf: Document why we have ARM64 and RISCV options 2022-10-20 10:48:31 -06:00
options.i386 x86: Add MPTABLE_LINUX_BUG_COMPAT option 2022-10-17 23:02:22 -07:00
options.powerpc
options.riscv conf: Document why we have ARM64 and RISCV options 2022-10-20 10:48:31 -06:00
std.nodebug
sysent.mk
systags.sh
vdso_amd64.ldscript vdso linker scripts: explicitly specify output arch and target 2022-02-12 00:32:23 +02:00
vdso_amd64_ia32.ldscript vdso linker scripts: explicitly specify output arch and target 2022-02-12 00:32:23 +02:00
WITHOUT_SOURCELESS
WITHOUT_SOURCELESS_HOST
WITHOUT_SOURCELESS_UCODE