Re: [PATCH v2] man/man7/socket.7: fix documentation for SO_ATTACH_REUSEPORT_EBPF
From: Vincent Bernat <hidden>
Date: 2025-12-01 05:49:44
From: Vincent Bernat <hidden>
Date: 2025-12-01 05:49:44
On 2025-12-01 06:44, Vincent Bernat wrote:
When using eBPF, there are two possible cases depending on the program type. Only the first case was described. In the second case, the program should not return an index, but a decision (SK_PASS/SK_DROP). The socket should be selected using the sk_select_reuseport helper.
I didn't add a "Fix:", as this is an update (introduced in Linux 4.19). This is not 100% complete as it does not explain socket migration (https://docs.ebpf.io/linux/program-type/BPF_PROG_TYPE_SK_REUSEPORT/) but I didn't want to go too much in details.