On 08/31/2017 01:53 PM, Eric Dumazet wrote:
From: Eric Dumazet <[email protected]>

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 protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Daniel Borkmann <[email protected]>

LGTM, thanks Eric!

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

Reply via email to