mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 23:36:43 +07:00
ec2e45a978
Make ->hash_count, ->low_watermark and ->high_watermark unsigned int and propagate unsignedness to other variables. This change doesn't change code generation because these fields aren't used in 64-bit contexts but make it anyway: these fields can't be negative numbers. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
26 lines
570 B
C
26 lines
570 B
C
#ifndef _NET_FLOWCACHE_H
|
|
#define _NET_FLOWCACHE_H
|
|
|
|
#include <linux/interrupt.h>
|
|
#include <linux/types.h>
|
|
#include <linux/timer.h>
|
|
#include <linux/notifier.h>
|
|
|
|
struct flow_cache_percpu {
|
|
struct hlist_head *hash_table;
|
|
unsigned int hash_count;
|
|
u32 hash_rnd;
|
|
int hash_rnd_recalc;
|
|
struct tasklet_struct flush_tasklet;
|
|
};
|
|
|
|
struct flow_cache {
|
|
u32 hash_shift;
|
|
struct flow_cache_percpu __percpu *percpu;
|
|
struct hlist_node node;
|
|
unsigned int low_watermark;
|
|
unsigned int high_watermark;
|
|
struct timer_list rnd_timer;
|
|
};
|
|
#endif /* _NET_FLOWCACHE_H */
|