![Joe Perches](/assets/img/avatar_default.png)
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare automatic/local variables in a block. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
23 lines
625 B
C
23 lines
625 B
C
#ifndef _XT_RATEEST_H
|
|
#define _XT_RATEEST_H
|
|
|
|
struct xt_rateest {
|
|
/* keep lock and bstats on same cache line to speedup xt_rateest_tg() */
|
|
struct gnet_stats_basic_packed bstats;
|
|
spinlock_t lock;
|
|
/* keep rstats and lock on same cache line to speedup xt_rateest_mt() */
|
|
struct gnet_stats_rate_est64 rstats;
|
|
|
|
/* following fields not accessed in hot path */
|
|
struct hlist_node list;
|
|
char name[IFNAMSIZ];
|
|
unsigned int refcnt;
|
|
struct gnet_estimator params;
|
|
struct rcu_head rcu;
|
|
};
|
|
|
|
struct xt_rateest *xt_rateest_lookup(const char *name);
|
|
void xt_rateest_put(struct xt_rateest *est);
|
|
|
|
#endif /* _XT_RATEEST_H */
|