mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
[NETFILTER]: nfnetlink_queue: mark hash table __read_mostly
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2bd0119729
commit
9d6023ab8b
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ typedef int (*nfqnl_cmpfn)(struct nf_queue_entry *, unsigned long);
|
||||||
static DEFINE_SPINLOCK(instances_lock);
|
static DEFINE_SPINLOCK(instances_lock);
|
||||||
|
|
||||||
#define INSTANCE_BUCKETS 16
|
#define INSTANCE_BUCKETS 16
|
||||||
static struct hlist_head instance_table[INSTANCE_BUCKETS];
|
static struct hlist_head instance_table[INSTANCE_BUCKETS] __read_mostly;
|
||||||
|
|
||||||
static inline u_int8_t instance_hashfn(u_int16_t queue_num)
|
static inline u_int8_t instance_hashfn(u_int16_t queue_num)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue