freebsd-nq/sys
Gleb Smirnoff 4328318445 sockets: use socket buffer mutexes in struct socket directly
Since c67f3b8b78 the sockbuf mutexes belong to the containing socket,
and socket buffers just point to it.  In 74a68313b5 macros that access
this mutex directly were added.  Go over the core socket code and
eliminate code that reaches the mutex by dereferencing the sockbuf
compatibility pointer.

This change requires a KPI change, as some functions were given the
sockbuf pointer only without any hint if it is a receive or send buffer.

This change doesn't cover the whole kernel, many protocols still use
compatibility pointers internally.  However, it allows operation of a
protocol that doesn't use them.

Reviewed by:		markj
Differential revision:	https://reviews.freebsd.org/D35152
2022-05-12 13:22:12 -07:00
..
amd64 linux(4): Regen for prctl fix. 2022-05-09 21:48:15 +03:00
arm arm xilinx: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-09 14:26:45 -07:00
arm64 Code deduplication: use SID-getting functions in smmu_find(). 2022-05-10 16:20:15 +01:00
bsm
cam Fix bd82711aff serial number trailing spaces removal. 2022-05-09 10:30:04 -04:00
cddl stand/zfs: Fix const-qual warnings 2022-05-04 10:06:21 -04:00
compat LinuxKPI: Implement linux/hashtable.h for FreeBSD. 2022-05-12 16:32:47 +02:00
conf Add FDT attachment driver for ARM System MMU v3.2 controller. 2022-05-07 11:18:35 +01:00
contrib vchiq: Remove unused devclass argument to DRIVER_MODULE. 2022-05-10 10:21:39 -07:00
crypto crypto: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
ddb
dev sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
dts
fs fusefs: fix an undefined variable access 2022-05-05 08:43:51 -06:00
gdb
geom geom_dev: extend kevent support for geom dev 2022-04-28 08:40:13 -08:00
gnu bwn: eliminate dead writes in BWN_GPL_PHY 2022-05-04 09:32:59 -04:00
i386 i386: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-09 14:26:43 -07:00
isa isa: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:59 -07:00
kern sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
kgssapi kgssapi krb5: Remove unused variables. 2022-04-06 16:45:29 -07:00
libkern libkern: Fix two typos in source code comments 2022-04-09 09:36:34 +02:00
modules linux(4): Implement vdso getcpu for x86. 2022-05-08 17:20:52 +03:00
net epair: unbind prior to returning to userspace 2022-05-07 18:17:33 +02:00
net80211 net80211: simplify code after STA/AP VAPs traffic hang fix 2022-05-06 09:34:16 +00:00
netgraph ng_ubt: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-09 12:22:03 -07:00
netinet sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
netinet6 udp6: allow udp_tun_func_t() to indicate it did not eat the packet 2022-04-22 16:55:23 +02:00
netipsec ipsec_encap: setdf is only used for INET. 2022-04-13 16:08:21 -07:00
netpfil pf: fix pf_rule_to_actions() 2022-05-12 21:50:10 +02:00
netsmb smb_smb_treedisconnect: eliminate write only variable mbp 2022-04-04 22:30:57 -06:00
nfs nfs: do not panic on bootpc_init when no interfaces are found 2022-04-07 19:33:26 -03:00
nfsclient
nfsserver nfs: Cleanup dead files 2021-03-17 06:16:31 +11:00
nlm
ofed sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
opencrypto crypto: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
powerpc powerpc nexus: Remove unused devclass argument to DRIVER_MODULE. 2022-05-10 10:21:38 -07:00
riscv riscv sifive: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-10 10:21:38 -07:00
rpc sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
security mac_pimd: Support for privilege drop in pimd 2022-04-20 08:07:37 +02:00
sys sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
teken
tests
tools
ufs UFS: clear fs_fmod once more, in the buffer data copy. 2022-05-09 23:46:05 +03:00
vm vm_phys: avoid waste in multipage allocation 2022-04-26 02:56:23 -05:00
x86 linux(4): Implement vdso getcpu for x86. 2022-05-08 17:20:52 +03:00
xdr
xen xen: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
Makefile