lkml.org 
[lkml]   [2022]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v2] bpf: Simplify code by using for_each_cpu_wrap()
    From
    Date
    Hello:

    This patch was applied to bpf/bpf-next.git (master)
    by Alexei Starovoitov <ast@kernel.org>:

    On Wed, 7 Sep 2022 16:57:46 +0100 you wrote:
    > In the percpu freelist code, it is a common pattern to iterate over
    > the possible CPUs mask starting with the current CPU. The pattern is
    > implemented using a hand rolled while loop with the loop variable
    > increment being open-coded.
    >
    > Simplify the code by using for_each_cpu_wrap() helper to iterate over
    > the possible cpus starting with the current CPU. As a result, some of
    > the special-casing in the loop also gets simplified.
    >
    > [...]

    Here is the summary with links:
    - [v2] bpf: Simplify code by using for_each_cpu_wrap()
    https://git.kernel.org/bpf/bpf-next/c/57c92f11a215

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


    \
     
     \ /
      Last update: 2022-09-11 01:30    [W:3.891 / U:0.488 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site