diff options
| author | Tonghao Zhang <[email protected]> | 2020-09-01 12:26:14 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-09-01 18:42:15 +0000 |
| commit | e6896163b20cc2dc1c169fa5e007243a4f9650a4 (patch) | |
| tree | a50c0121e9b433d189c130f15cbe774571c44586 /net/openvswitch/flow_table.c | |
| parent | net: openvswitch: refactor flow free function (diff) | |
| download | kernel-e6896163b20cc2dc1c169fa5e007243a4f9650a4.tar.gz kernel-e6896163b20cc2dc1c169fa5e007243a4f9650a4.zip | |
net: openvswitch: remove unused keep_flows
keep_flows was introduced by [1], which used as flag to delete flows or not.
When rehashing or expanding the table instance, we will not flush the flows.
Now don't use it anymore, remove it.
[1] - https://github.com/openvswitch/ovs/commit/acd051f1761569205827dc9b037e15568a8d59f8
Cc: Pravin B Shelar <[email protected]>
Signed-off-by: Tonghao Zhang <[email protected]>
Acked-by: Pravin B Shelar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/openvswitch/flow_table.c')
| -rw-r--r-- | net/openvswitch/flow_table.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/openvswitch/flow_table.c b/net/openvswitch/flow_table.c index 80849bdf45d2..87c286ad660e 100644 --- a/net/openvswitch/flow_table.c +++ b/net/openvswitch/flow_table.c @@ -168,7 +168,6 @@ static struct table_instance *table_instance_alloc(int new_size) ti->n_buckets = new_size; ti->node_ver = 0; - ti->keep_flows = false; get_random_bytes(&ti->hash_seed, sizeof(u32)); return ti; @@ -481,9 +480,6 @@ void table_instance_flow_flush(struct flow_table *table, { int i; - if (ti->keep_flows) - return; - for (i = 0; i < ti->n_buckets; i++) { struct hlist_head *head = &ti->buckets[i]; struct hlist_node *n; @@ -603,8 +599,6 @@ static void flow_table_copy_flows(struct table_instance *old, lockdep_ovsl_is_held()) table_instance_insert(new, flow); } - - old->keep_flows = true; } static struct table_instance *table_instance_rehash(struct table_instance *ti, |
