diff options
author | Rao, Lei <lei.rao@intel.com> | 2021-11-03 10:21:12 +0800 |
---|---|---|
committer | Juan Quintela <quintela@trasno.org> | 2021-11-03 09:39:48 +0100 |
commit | 64153ca613d0a50d1301eae4bd895aade001fcca (patch) | |
tree | 3db1ca0c48fc2d127e9a58263b18420e0bcba33c /net/colo-compare.c | |
parent | e5fdf920964b65678798960d8b3a55453c2e9094 (diff) | |
download | qemu-64153ca613d0a50d1301eae4bd895aade001fcca.zip qemu-64153ca613d0a50d1301eae4bd895aade001fcca.tar.gz qemu-64153ca613d0a50d1301eae4bd895aade001fcca.tar.bz2 |
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>
Diffstat (limited to 'net/colo-compare.c')
-rw-r--r-- | net/colo-compare.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/colo-compare.c b/net/colo-compare.c index 4a64a5d..b8876d7 100644 --- a/net/colo-compare.c +++ b/net/colo-compare.c @@ -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, |