]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xfrm: use "unsigned int" in __xfrm6_pref_hash()
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 23 Mar 2017 22:53:09 +0000 (01:53 +0300)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 24 Mar 2017 06:03:12 +0000 (07:03 +0100)
commitd7f6946630bc324b9d791bee6dc41ff0d9469b0b
tree49110d8f3f630d362098f8fd157d9d92594e6e54
parent1560875600b8aa88ff0f55f827a7741c026795ee
xfrm: use "unsigned int" in __xfrm6_pref_hash()

x86_64 is zero-extending arch so "unsigned int" is preferred over "int"
for address calculations.

Space savings:

add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-58 (-58)
function                                     old     new   delta
xfrm_hash_resize                            2752    2743      -9
policy_hash_bysel                            985     973     -12
policy_hash_direct                          1036     999     -37

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_hash.h