[Differential] D6137: tcp/lro: Refactor the free/active list operation.
sepherosa_gmail.com (Sepherosa Ziehau)
phabric-noreply at FreeBSD.org
Fri Apr 29 01:19:10 UTC 2016
sepherosa_gmail.com added a comment.
In https://reviews.freebsd.org/D6137#130603, @gallatin wrote:
> The tcp_lro_entry_get() abstraction adds an extra compare to the critical path (the compare against NULL in the function itself, in addition to the same compare in the main routine). At least it does at the C level. Have you verified that the compiler is smart enough to continue to use a single compare?
>
> If this adds an extra compare to the actual executed code, then I object.
OK, I see your concern. I think instead of depending on the compiler, we probably just leave the original code for the free list unchanged :).
REVISION DETAIL
https://reviews.freebsd.org/D6137
EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/
To: sepherosa_gmail.com, network, transport, adrian, delphij, glebius, hselasky, np, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, gallatin, rrs
Cc: freebsd-net-list
More information about the freebsd-net
mailing list