Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202936
b: refs/heads/master
c: 339bb99
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and Patrick McHardy committed Jun 8, 2010
1 parent 77cd5d0 commit e036a2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e12f8e29a8526172b7715881503bae636d60bdd8
refs/heads/master: 339bb99e4a8ba1f8960eed21d50be808b35ad22a
10 changes: 7 additions & 3 deletions trunk/include/net/netfilter/xt_rateest.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
#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_est rstats;

/* following fields not accessed in hot path */
struct hlist_node list;
char name[IFNAMSIZ];
unsigned int refcnt;
spinlock_t lock;
struct gnet_estimator params;
struct gnet_stats_rate_est rstats;
struct gnet_stats_basic_packed bstats;
};

extern struct xt_rateest *xt_rateest_lookup(const char *name);
Expand Down

0 comments on commit e036a2c

Please sign in to comment.