diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2017-04-03 00:52:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-03 19:04:48 -0700 |
commit | f31cc7e8155f392583a1e3cc2e83ddbc43bacbb3 (patch) | |
tree | 2d851673a77f3f7ac8a3cccd910cde71557820da /net/xfrm/xfrm_hash.c | |
parent | 5a17d9ed9ad702af800f184b13817e056618ba03 (diff) |
flowcache: make flow_cache_hash_size() return "unsigned int"
Hash size can't negative so "unsigned int" is logically correct.
Propagate "unsigned int" to loop counters.
Space savings:
add/remove: 0/0 grow/shrink: 2/2 up/down: 6/-18 (-12)
function old new delta
flow_cache_flush_tasklet 362 365 +3
__flow_cache_shrink 333 336 +3
flow_cache_cpu_up_prep 178 171 -7
flow_cache_lookup 1159 1148 -11
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_hash.c')
0 files changed, 0 insertions, 0 deletions