Re: [PATCH net-next] gro: avoid checking for a failed search

From: Richard Gobert
Date: Wed Nov 02 2022 - 12:49:02 EST


> Why does it matter? You see a measurable perf win?

In the common case, we will exit the loop with a break,
so this patch eliminates an unnecessary check.

On some architectures this optimization might be done
automatically by the compiler, but I think it will be better
to make it explicit here. Although on x86 this optimization
happens automatically, I noticed that on my build target
(ARM/GCC) this does change the binary.