flow: Make unified version of flow table compaction
tcp_table_compact() will move entries in the connection/flow table to keep it compact when other entries are removed. The moved entries need not have the same type as the flow removed, so it needs to be able to handle moving any type of flow. Therefore, move it to flow.c rather than being purportedly TCP specific. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:

committed by
Stefano Brivio

parent
9d44aba7e0
commit
96590b0560
@@ -283,7 +283,7 @@ void tcp_splice_destroy(struct ctx *c, union flow *flow)
|
||||
conn->flags = 0;
|
||||
debug("TCP (spliced): index %u, CLOSED", FLOW_IDX(conn));
|
||||
|
||||
tcp_table_compact(c, flow);
|
||||
flow_table_compact(c, flow);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user