[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ad40512b-62dd-abfa-4239-cee8b6606260@iogearbox.net>
Date: Sat, 15 Jun 2019 01:23:34 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Stanislav Fomichev <sdf@...gle.com>, netdev@...r.kernel.org,
bpf@...r.kernel.org
Cc: davem@...emloft.net, ast@...nel.org, Martin Lau <kafai@...com>
Subject: Re: [PATCH bpf-next 1/4] bpf: export bpf_sock for
BPF_PROG_TYPE_CGROUP_SOCK_ADDR prog type
On 06/12/2019 07:30 PM, Stanislav Fomichev wrote:
> And let it use bpf_sk_storage_{get,delete} helpers to access socket
> storage. Kernel context (struct bpf_sock_addr_kern) already has sk
> member, so I just expose it to the BPF hooks. Using PTR_TO_SOCKET
> instead of PTR_TO_SOCK_COMMON should be safe because the hook is
> called on bind/connect.
>
> Cc: Martin Lau <kafai@...com>
> Signed-off-by: Stanislav Fomichev <sdf@...gle.com>
Looks good, applied, thanks!
Powered by blists - more mailing lists