[PATCH 1/1] bpf: avoid unnecessary IPI in bpf_flush_icache
Daniel Borkmann
daniel at iogearbox.net
Tue Jun 1 10:20:04 PDT 2021
On 6/1/21 5:06 PM, Yanfei Xu wrote:
> It's no need to trigger IPI for keeping pipeline fresh in bpf case.
This needs a more concrete explanation/analysis on "why it is safe" to do so
rather than just saying that it is not needed.
> Signed-off-by: Yanfei Xu <yanfei.xu at windriver.com>
> ---
> arch/arm64/net/bpf_jit_comp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/net/bpf_jit_comp.c b/arch/arm64/net/bpf_jit_comp.c
> index f7b194878a99..5311f8be4ba4 100644
> --- a/arch/arm64/net/bpf_jit_comp.c
> +++ b/arch/arm64/net/bpf_jit_comp.c
> @@ -974,7 +974,7 @@ static int validate_code(struct jit_ctx *ctx)
>
> static inline void bpf_flush_icache(void *start, void *end)
> {
> - flush_icache_range((unsigned long)start, (unsigned long)end);
> + __flush_icache_range((unsigned long)start, (unsigned long)end);
> }
>
> struct arm64_jit_data {
>
More information about the linux-arm-kernel
mailing list