On 08/31/2017 01:53 PM, Eric Dumazet wrote:
From: Eric Dumazet <redacted>
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 <redacted>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
LGTM, thanks Eric!
Acked-by: Daniel Borkmann <daniel@iogearbox.net>