No description
Find a file
Aditi Ghag c96dac8d36 bpf: udp: Implement batching for sockets iterator
Batch UDP sockets from BPF iterator that allows for overlapping locking
semantics in BPF/kernel helpers executed in BPF programs.  This facilitates
BPF socket destroy kfunc (introduced by follow-up patches) to execute from
BPF iterator programs.

Previously, BPF iterators acquired the sock lock and sockets hash table
bucket lock while executing BPF programs. This prevented BPF helpers that
again acquire these locks to be executed from BPF iterators.  With the
batching approach, we acquire a bucket lock, batch all the bucket sockets,
and then release the bucket lock. This enables BPF or kernel helpers to
skip sock locking when invoked in the supported BPF contexts.

The batching logic is similar to the logic implemented in TCP iterator:
https://lore.kernel.org/bpf/20210701200613.1036157-1-kafai@fb.com/.

Suggested-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Aditi Ghag <aditi.ghag@isovalent.com>
Link: https://lore.kernel.org/r/20230519225157.760788-6-aditi.ghag@isovalent.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
2023-05-19 17:45:47 -07:00
arch bpf-next-for-netdev 2023-05-16 19:50:05 -07:00
block for-6.4/block-2023-05-06 2023-05-06 08:28:58 -07:00
certs
crypto This push fixes the following problems: 2023-05-07 10:57:14 -07:00
Documentation bpf, docs: Shift operations are defined to use a mask 2023-05-17 16:18:33 +02:00
drivers bpf-next-for-netdev 2023-05-16 19:50:05 -07:00
fs \n 2023-05-10 17:07:42 -05:00
include udp: seq_file: Remove bpf_seq_afinfo from udp_iter_state 2023-05-19 17:45:47 -07:00
init
io_uring for-6.4/io_uring-2023-05-07 2023-05-07 10:00:09 -07:00
ipc
kernel bpf: Show target_{obj,btf}_id in tracing link fdinfo 2023-05-19 10:06:44 -07:00
lib Networking fixes for 6.4-rc2, including fixes from netfilter 2023-05-11 08:42:47 -05:00
LICENSES
mm Reinstate the dmapool changes which were accidentally removed by 2023-05-06 11:43:08 -07:00
net bpf: udp: Implement batching for sockets iterator 2023-05-19 17:45:47 -07:00
rust
samples bpf-next-for-netdev 2023-05-16 19:50:05 -07:00
scripts bpf-next-for-netdev 2023-05-16 19:50:05 -07:00
security
sound sound fixes for 6.4-rc1 2023-05-06 08:07:11 -07:00
tools bpftool: Show target_{obj,btf}_id in tracing link info 2023-05-19 10:06:45 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap for-6.4/block-2023-05-06 2023-05-06 08:28:58 -07:00
.rustfmt.toml
COPYING
CREDITS A handful of late-arriving documentation fixes, plus one Spanish 2023-05-05 13:16:42 -07:00
Kbuild
Kconfig
MAINTAINERS MAINTAINERS: re-sort all entries and fields 2023-05-10 20:04:04 -05:00
Makefile Linux 6.4-rc1 2023-05-07 13:34:35 -07:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.