Commit | Line | Data |
---|---|---|
5859034d PM |
1 | #ifndef _XT_RATEEST_H |
2 | #define _XT_RATEEST_H | |
3 | ||
4 | struct xt_rateest { | |
339bb99e ED |
5 | /* keep lock and bstats on same cache line to speedup xt_rateest_tg() */ |
6 | struct gnet_stats_basic_packed bstats; | |
7 | spinlock_t lock; | |
8 | /* keep rstats and lock on same cache line to speedup xt_rateest_mt() */ | |
45203a3b | 9 | struct gnet_stats_rate_est64 rstats; |
339bb99e ED |
10 | |
11 | /* following fields not accessed in hot path */ | |
5859034d PM |
12 | struct hlist_node list; |
13 | char name[IFNAMSIZ]; | |
14 | unsigned int refcnt; | |
5859034d | 15 | struct gnet_estimator params; |
c7de2cf0 | 16 | struct rcu_head rcu; |
5859034d PM |
17 | }; |
18 | ||
4e77be46 JP |
19 | struct xt_rateest *xt_rateest_lookup(const char *name); |
20 | void xt_rateest_put(struct xt_rateest *est); | |
5859034d PM |
21 | |
22 | #endif /* _XT_RATEEST_H */ |