mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-13 01:52:44 +00:00
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: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a5bb202b84
commit
0baf2b35fc
2 changed files with 8 additions and 16 deletions
|
@ -88,22 +88,14 @@ struct ip_rt_acct {
|
|||
};
|
||||
|
||||
struct rt_cache_stat {
|
||||
unsigned int in_hit;
|
||||
unsigned int in_slow_tot;
|
||||
unsigned int in_slow_mc;
|
||||
unsigned int in_no_route;
|
||||
unsigned int in_brd;
|
||||
unsigned int in_martian_dst;
|
||||
unsigned int in_martian_src;
|
||||
unsigned int out_hit;
|
||||
unsigned int out_slow_tot;
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue