Re: [PATCH bpf-next 2/2] selftests/bpf: Expand skb dynptr selftests for tp_btf

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

 



On 5/6/24 8:15 PM, Philo Lu wrote:
What do you think if I replace "struct __sk_buff" with "void"? The diffs are appended below.

Because we are not to read anything in these cases, I think using void* is enough to avoid confusion. On the other hand, to use "struct sk_buff" here, we have to introduce the definition, and tune codes as the input type of

The sk_buff definition is in vmlinux.h. However, the dynptr_fail.c does not use vmlinux.h now, so it may need some more changes.

Yep, I think "void *skb" here is fine.

bpf_dynptr_from_skb() is defined as struct __sk_buff in "bpf_kfuncs.h".





[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