aboutsummaryrefslogtreecommitdiff
path: root/include/net/flow.h
diff options
context:
space:
mode:
authorAlexey Dobriyan2017-04-03 00:51:50 +0300
committerDavid S. Miller2017-04-03 19:04:48 -0700
commit5a17d9ed9ad702af800f184b13817e056618ba03 (patch)
tree13ea2d5a11ecd448eab864b5a4120d039c0255b6 /include/net/flow.h
parentd39004ab136ebb6949a7dda9d24376f3d6209295 (diff)
flowcache: make flow_key_size() return "unsigned int"
Flow keys aren't 4GB+ numbers so 64-bit arithmetic is excessive. Space savings (I'm not sure what CSWTCH is): add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-48 (-48) function old new delta flow_cache_lookup 1163 1159 -4 CSWTCH 75997 75953 -44 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow.h')
-rw-r--r--include/net/flow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/flow.h b/include/net/flow.h
index 6984f1913dc1..bae198b3039e 100644
--- a/include/net/flow.h
+++ b/include/net/flow.h
@@ -202,7 +202,7 @@ static inline struct flowi *flowidn_to_flowi(struct flowidn *fldn)
typedef unsigned long flow_compare_t;
-static inline size_t flow_key_size(u16 family)
+static inline unsigned int flow_key_size(u16 family)
{
switch (family) {
case AF_INET: