summary refs log tree commit diff
path: root/include/net/flowcache.h
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2017-04-03 00:53:15 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-03 19:04:48 -0700
commitec2e45a978b05cd9711e804a41b8a5bc829a8650 (patch)
treedce827fc16f1119dc93208ccb1d43bbcaf838357 /include/net/flowcache.h
parentf31cc7e8155f392583a1e3cc2e83ddbc43bacbb3 (diff)
downloadlinux-ec2e45a978b05cd9711e804a41b8a5bc829a8650.tar.gz
flowcache: more "unsigned int"
Make ->hash_count, ->low_watermark and ->high_watermark unsigned int
and propagate unsignedness to other variables.

This change doesn't change code generation because these fields aren't
used in 64-bit contexts but make it anyway: these fields can't be
negative numbers.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flowcache.h')
-rw-r--r--include/net/flowcache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/flowcache.h b/include/net/flowcache.h
index 9caf3bfc8d2d..51eb971e8973 100644
--- a/include/net/flowcache.h
+++ b/include/net/flowcache.h
@@ -8,7 +8,7 @@
 
 struct flow_cache_percpu {
 	struct hlist_head		*hash_table;
-	int				hash_count;
+	unsigned int			hash_count;
 	u32				hash_rnd;
 	int				hash_rnd_recalc;
 	struct tasklet_struct		flush_tasklet;
@@ -18,8 +18,8 @@ struct flow_cache {
 	u32				hash_shift;
 	struct flow_cache_percpu __percpu *percpu;
 	struct hlist_node		node;
-	int				low_watermark;
-	int				high_watermark;
+	unsigned int			low_watermark;
+	unsigned int			high_watermark;
 	struct timer_list		rnd_timer;
 };
 #endif	/* _NET_FLOWCACHE_H */