Subject: Re: [PATCH net-next] x86: bpf_jit: small optimization in emit_bpf_tail_call()

From: Daniel Borkmann <[email-masked]>
Date: Thu, 31 Aug 2017 14:37:28 +0200

On 08/31/2017 01:53 PM, Eric Dumazet wrote:
> From: Eric Dumazet <[email-masked]>
>
> Saves 4 bytes replacing following instructions :
>
> lea rax, [rsi + rdx * 8 + offsetof(...)]
> mov rax, qword ptr [rax]
> cmp rax, 0
>
> by :
>
> mov rax, [rsi + rdx * 8 + offsetof(...)]
> test rax, rax
>
> Signed-off-by: Eric Dumazet <[email-masked]>
> Cc: Alexei Starovoitov <[email-masked]>
> Cc: Daniel Borkmann <[email-masked]>

LGTM, thanks Eric!

Acked-by: Daniel Borkmann <[email-masked]>