Optimized the function of fill_connection_key.

Remove some unnecessary code to improve the performance of
the filter-rewriter module.

Signed-off-by: Lei Rao <lei.rao@intel.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@trasno.org>
This commit is contained in:
Rao, Lei
2021-11-03 10:21:12 +08:00
committed by Juan Quintela
parent e5fdf92096
commit 64153ca613
4 changed files with 17 additions and 32 deletions

View File

@ -264,7 +264,7 @@ static int packet_enqueue(CompareState *s, int mode, Connection **con)
pkt = NULL;
return -1;
}
fill_connection_key(pkt, &key);
fill_connection_key(pkt, &key, false);
conn = connection_get(s->connection_track_table,
&key,