Re: [PATCH v6 bpf-next 09/11] bpf: Support socket migration by eBPF.

From: Martin KaFai Lau
Date: Thu May 20 2021 - 02:27:48 EST


On Mon, May 17, 2021 at 09:22:56AM +0900, Kuniyuki Iwashima wrote:
> This patch introduces a new bpf_attach_type for BPF_PROG_TYPE_SK_REUSEPORT
> to check if the attached eBPF program is capable of migrating sockets. When
> the eBPF program is attached, we run it for socket migration if the
> expected_attach_type is BPF_SK_REUSEPORT_SELECT_OR_MIGRATE or
> net.ipv4.tcp_migrate_req is enabled.
>
> Ccurrently, the expected_attach_type is not enforced for the
nit. 'Currenctly,'