Re: [PATCH bpf-next v3 5/6] selftests/bpf: Cope with 512 bytes limit with bpf_global_percpu_ma

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

 




On 12/16/2023 10:30 AM, Yonghong Song wrote:
> In the previous patch, the maximum data size for bpf_global_percpu_ma
> is 512 bytes. This breaks selftest test_bpf_ma. The test is adjusted
> in two aspects:
>   - Since the maximum allowed data size for bpf_global_percpu_ma is
>     512, remove all tests beyond that, names sizes 1024, 2048 and 4096.
>   - Previously the percpu data size is bucket_size - 8 in order to
>     avoid percpu allocation into the next bucket. This patch removed
>     such data size adjustment thanks to Patch 1.
>
> Also, a better way to generate BTF type is used than adding
> a member to the value struct.
>
> Signed-off-by: Yonghong Song <yonghong.song@xxxxxxxxx>

Acked-by: Hou Tao <houtao1@xxxxxxxxxx>

And thanks for the update.





[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