summaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_lookup.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@redhat.com>2015-02-25 15:31:44 -0800
committerDavid S. Miller <davem@davemloft.net>2015-02-27 16:37:07 -0500
commit9b6ebad5c3a152271c6af19cd44e20001ae72fe8 (patch)
treed2ce2a8d6606e8a7e5bd3e4366ed252e673b4598 /net/ipv4/fib_lookup.h
parent5786ec60549961a575044e0fb81664da1f8bf225 (diff)
downloadlinux-stable-9b6ebad5c3a152271c6af19cd44e20001ae72fe8.tar.gz
linux-stable-9b6ebad5c3a152271c6af19cd44e20001ae72fe8.tar.bz2
linux-stable-9b6ebad5c3a152271c6af19cd44e20001ae72fe8.zip
fib_trie: Add slen to fib alias
Make use of an empty spot in the alias to store the suffix length so that we don't need to pull that information from the leaf_info structure. This patch also makes a slight change to the user statistics. Instead of incrementing semantic_match_miss once per leaf_info miss we now just increment it once per leaf if a match was not found. Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_lookup.h')
-rw-r--r--net/ipv4/fib_lookup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/fib_lookup.h b/net/ipv4/fib_lookup.h
index 3cd444f4e0f6..ae2e6eede46e 100644
--- a/net/ipv4/fib_lookup.h
+++ b/net/ipv4/fib_lookup.h
@@ -11,6 +11,7 @@ struct fib_alias {
u8 fa_tos;
u8 fa_type;
u8 fa_state;
+ u8 fa_slen;
struct rcu_head rcu;
};