Ease more work concerning active list, e.g. hash table etc.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
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.
Comment Actions
It would be worth checking the assembly output.. if it truly inlines it then
it should probably only do one compare.. but worth checking...
Comment Actions
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 :).