diff options
| author | Jakub Kicinski <[email protected]> | 2025-07-09 01:05:27 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-09 01:05:27 +0000 |
| commit | 042ef6aafd3fa22a0398c1c25c2dc742cba78eed (patch) | |
| tree | a7408f5361ad08f71f135cfe0fb1bc21f3351422 /net/lapb/lapb_iface.c | |
| parent | Merge branch 'eth-fbnic-add-firmware-logging-support' (diff) | |
| parent | selftest: af_unix: Add test for SO_INQ. (diff) | |
| download | kernel-042ef6aafd3fa22a0398c1c25c2dc742cba78eed.tar.gz kernel-042ef6aafd3fa22a0398c1c25c2dc742cba78eed.zip | |
Merge branch 'af_unix-introduce-so_inq-scm_inq'
Kuniyuki Iwashima says:
====================
af_unix: Introduce SO_INQ & SCM_INQ.
We have an application that uses almost the same code for TCP and
AF_UNIX (SOCK_STREAM).
The application uses TCP_INQ for TCP, but AF_UNIX doesn't have it
and requires an extra syscall, ioctl(SIOCINQ) or getsockopt(SO_MEMINFO)
as an alternative.
Also, ioctl(SIOCINQ) for AF_UNIX SOCK_STREAM is more expensive because
it needs to iterate all skb in the receive queue.
This series adds a cached field for SIOCINQ to speed it up and introduce
SO_INQ, the generic version of TCP_INQ to get the queue length as cmsg in
each recvmsg().
====================
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions
