On Sun, May 12, 2013 at 10:09:57PM +0200, Antonio Quartulli wrote:
When comparing a network ordered value with a constant, it is better to convert the constant at compile time by means of __constant_htons() instead of converting the value at runtime using ntohs().
This refactoring may slightly improve the code performance.
Signed-off-by: Antonio Quartulli ordex@autistici.org
I just found another occurrence that needs the __constant version of this function. I'll send v3.
Cheers,