flow_table.h (04b7d136d015f220b1003e6c573834658d507a31) | flow_table.h (4bc63b1b531df518576a97d17bf5939fdbc33ccb) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (c) 2007-2013 Nicira, Inc. 4 */ 5 6#ifndef FLOW_TABLE_H 7#define FLOW_TABLE_H 1 8 --- 13 unchanged lines hidden (view full) --- 22 23#include "flow.h" 24 25struct mask_cache_entry { 26 u32 skb_hash; 27 u32 mask_index; 28}; 29 | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (c) 2007-2013 Nicira, Inc. 4 */ 5 6#ifndef FLOW_TABLE_H 7#define FLOW_TABLE_H 1 8 --- 13 unchanged lines hidden (view full) --- 22 23#include "flow.h" 24 25struct mask_cache_entry { 26 u32 skb_hash; 27 u32 mask_index; 28}; 29 |
30struct mask_array { 31 struct rcu_head rcu; 32 int count, max; 33 struct sw_flow_mask __rcu *masks[]; 34}; 35 |
|
30struct table_instance { 31 struct hlist_head *buckets; 32 unsigned int n_buckets; 33 struct rcu_head rcu; 34 int node_ver; 35 u32 hash_seed; 36 bool keep_flows; 37}; 38 39struct flow_table { 40 struct table_instance __rcu *ti; 41 struct table_instance __rcu *ufid_ti; 42 struct mask_cache_entry __percpu *mask_cache; | 36struct table_instance { 37 struct hlist_head *buckets; 38 unsigned int n_buckets; 39 struct rcu_head rcu; 40 int node_ver; 41 u32 hash_seed; 42 bool keep_flows; 43}; 44 45struct flow_table { 46 struct table_instance __rcu *ti; 47 struct table_instance __rcu *ufid_ti; 48 struct mask_cache_entry __percpu *mask_cache; |
43 struct list_head mask_list; | 49 struct mask_array __rcu *mask_array; |
44 unsigned long last_rehash; 45 unsigned int count; 46 unsigned int ufid_count; 47}; 48 49extern struct kmem_cache *flow_stats_cache; 50 51int ovs_flow_init(void); --- 32 unchanged lines hidden --- | 50 unsigned long last_rehash; 51 unsigned int count; 52 unsigned int ufid_count; 53}; 54 55extern struct kmem_cache *flow_stats_cache; 56 57int ovs_flow_init(void); --- 32 unchanged lines hidden --- |