RE: [PATCH v2 bpf-next 2/5] bpf: Rename bpf_htab to bpf_shtab in sock_map

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrey Ignatov wrote:
> There are two different `struct bpf_htab` in bpf code in the following
> files:
> - kernel/bpf/hashtab.c
> - net/core/sock_map.c
> 
> It makes it impossible to find proper btf_id by name = "bpf_htab" and
> kind = BTF_KIND_STRUCT what is needed to support access to map ptr so
> that bpf program can access `struct bpf_htab` fields.
> 
> To make it possible one of the struct-s should be renamed, sock_map.c
> looks like a better candidate for rename since it's specialized version
> of hashtab.
> 
> Rename it to bpf_shtab ("sh" stands for Sock Hash).
> 
> Signed-off-by: Andrey Ignatov <rdna@xxxxxx>
> ---
>  net/core/sock_map.c | 82 ++++++++++++++++++++++-----------------------
>  1 file changed, 41 insertions(+), 41 deletions(-)

Acked-by: John Fastabend <john.fastabend@xxxxxxxxx>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux