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