flowcache.h 561 B

12345678910111213141516171819202122232425
  1. #ifndef _NET_FLOWCACHE_H
  2. #define _NET_FLOWCACHE_H
  3. #include <linux/interrupt.h>
  4. #include <linux/types.h>
  5. #include <linux/timer.h>
  6. #include <linux/notifier.h>
  7. struct flow_cache_percpu {
  8. struct hlist_head *hash_table;
  9. int hash_count;
  10. u32 hash_rnd;
  11. int hash_rnd_recalc;
  12. struct tasklet_struct flush_tasklet;
  13. };
  14. struct flow_cache {
  15. u32 hash_shift;
  16. struct flow_cache_percpu __percpu *percpu;
  17. struct notifier_block hotcpu_notifier;
  18. int low_watermark;
  19. int high_watermark;
  20. struct timer_list rnd_timer;
  21. };
  22. #endif /* _NET_FLOWCACHE_H */