Re: [PATCH bpf-next] bpf: remember meta->iter info only for initialized iters

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

 



Hello:

This patch was applied to bpf/bpf-next.git (master)
by Martin KaFai Lau <martin.lau@xxxxxxxxxx>:

On Wed, 22 Mar 2023 16:25:02 -0700 you wrote:
> For iter_new() functions iterator state's slot might not be yet
> initialized, in which case iter_get_spi() will return -ERANGE. This is
> expected and is handled properly. But for iter_next() and iter_destroy()
> cases iter slot is supposed to be initialized and correct, so -ERANGE is
> not possible.
> 
> Move meta->iter.{spi,frameno} initialization into iter_next/iter_destroy
> handling branch to make it more explicit that valid information will be
> remembered in meta->iter block for subsequent use in process_iter_next_call(),
> avoiding confusingly looking -ERANGE assignment for meta->iter.spi.
> 
> [...]

Here is the summary with links:
  - [bpf-next] bpf: remember meta->iter info only for initialized iters
    https://git.kernel.org/bpf/bpf-next/c/b63cbc490e18

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





[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