blob: 9caf3bfc8d2dafcc89064ec54e78682244d71fb7 [file] [log] [blame]
Fan Duca925cf2014-01-18 09:55:27 +08001#ifndef _NET_FLOWCACHE_H
2#define _NET_FLOWCACHE_H
3
4#include <linux/interrupt.h>
5#include <linux/types.h>
6#include <linux/timer.h>
7#include <linux/notifier.h>
8
9struct flow_cache_percpu {
10 struct hlist_head *hash_table;
11 int hash_count;
12 u32 hash_rnd;
13 int hash_rnd_recalc;
14 struct tasklet_struct flush_tasklet;
15};
16
17struct flow_cache {
18 u32 hash_shift;
19 struct flow_cache_percpu __percpu *percpu;
Sebastian Andrzej Siewiora4fc1bf2016-11-03 15:50:05 +010020 struct hlist_node node;
Fan Duca925cf2014-01-18 09:55:27 +080021 int low_watermark;
22 int high_watermark;
23 struct timer_list rnd_timer;
24};
25#endif /* _NET_FLOWCACHE_H */