Commit 0baf2b35 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

ipv4: shrink rt_cache_stat

Half of the rt_cache_stat fields are no longer used after IP
route cache removal, lets shrink this per cpu area.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a5bb202b
...@@ -88,22 +88,14 @@ struct ip_rt_acct { ...@@ -88,22 +88,14 @@ struct ip_rt_acct {
}; };
struct rt_cache_stat { struct rt_cache_stat {
unsigned int in_hit;
unsigned int in_slow_tot; unsigned int in_slow_tot;
unsigned int in_slow_mc; unsigned int in_slow_mc;
unsigned int in_no_route; unsigned int in_no_route;
unsigned int in_brd; unsigned int in_brd;
unsigned int in_martian_dst; unsigned int in_martian_dst;
unsigned int in_martian_src; unsigned int in_martian_src;
unsigned int out_hit;
unsigned int out_slow_tot; unsigned int out_slow_tot;
unsigned int out_slow_mc; unsigned int out_slow_mc;
unsigned int gc_total;
unsigned int gc_ignored;
unsigned int gc_goal_miss;
unsigned int gc_dst_overflow;
unsigned int in_hlist_search;
unsigned int out_hlist_search;
}; };
extern struct ip_rt_acct __percpu *ip_rt_acct; extern struct ip_rt_acct __percpu *ip_rt_acct;
......
...@@ -295,7 +295,7 @@ static int rt_cpu_seq_show(struct seq_file *seq, void *v) ...@@ -295,7 +295,7 @@ static int rt_cpu_seq_show(struct seq_file *seq, void *v)
seq_printf(seq,"%08x %08x %08x %08x %08x %08x %08x %08x " seq_printf(seq,"%08x %08x %08x %08x %08x %08x %08x %08x "
" %08x %08x %08x %08x %08x %08x %08x %08x %08x \n", " %08x %08x %08x %08x %08x %08x %08x %08x %08x \n",
dst_entries_get_slow(&ipv4_dst_ops), dst_entries_get_slow(&ipv4_dst_ops),
st->in_hit, 0, /* st->in_hit */
st->in_slow_tot, st->in_slow_tot,
st->in_slow_mc, st->in_slow_mc,
st->in_no_route, st->in_no_route,
...@@ -303,16 +303,16 @@ static int rt_cpu_seq_show(struct seq_file *seq, void *v) ...@@ -303,16 +303,16 @@ static int rt_cpu_seq_show(struct seq_file *seq, void *v)
st->in_martian_dst, st->in_martian_dst,
st->in_martian_src, st->in_martian_src,
st->out_hit, 0, /* st->out_hit */
st->out_slow_tot, st->out_slow_tot,
st->out_slow_mc, st->out_slow_mc,
st->gc_total, 0, /* st->gc_total */
st->gc_ignored, 0, /* st->gc_ignored */
st->gc_goal_miss, 0, /* st->gc_goal_miss */
st->gc_dst_overflow, 0, /* st->gc_dst_overflow */
st->in_hlist_search, 0, /* st->in_hlist_search */
st->out_hlist_search 0 /* st->out_hlist_search */
); );
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment