diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-06-24 16:09:11 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-06-24 16:09:11 +0000 |
commit | a7444f807ec44ec5dc4db59b155982ae5b2970b0 (patch) | |
tree | 8eabeee2a40ac5e696d75ec33a7807310c2fd5b3 /sys/sys/sockbuf.h | |
parent | a4fc41423f7d6e43287822212f0e9db7aab83d39 (diff) | |
download | src-a7444f807ec44ec5dc4db59b155982ae5b2970b0.tar.gz src-a7444f807ec44ec5dc4db59b155982ae5b2970b0.zip |
unix/dgram: use minimal possible socket buffer for PF_UNIX/SOCK_DGRAM
This change fully splits away PF_UNIX/SOCK_DGRAM from other socket
buffer implementations, without any behavior changes.
Generic socket implementation is reduced down to one STAILQ and very
little code.
Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D35300
Diffstat (limited to 'sys/sys/sockbuf.h')
-rw-r--r-- | sys/sys/sockbuf.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h index 7800b2790c04..a1fd65d1a9e5 100644 --- a/sys/sys/sockbuf.h +++ b/sys/sys/sockbuf.h @@ -133,6 +133,14 @@ struct sockbuf { uint64_t sb_tls_seqno; /* TLS seqno */ struct ktls_session *sb_tls_info; /* TLS state */ }; + /* + * PF_UNIX/SOCK_DGRAM + * + * Local protocol, thus any socket buffer is a receive buffer. + */ + struct { + STAILQ_HEAD(, mbuf) uxdg_mb; + }; }; }; |