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.h | |
parent | e5fdf920964b65678798960d8b3a55453c2e9094 (diff) |
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.h')
-rw-r--r-- | net/colo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/colo.h b/net/colo.h index d91cd245c4..8b3e8d5a83 100644 --- a/net/colo.h +++ b/net/colo.h @@ -89,9 +89,9 @@ typedef struct Connection { uint32_t connection_key_hash(const void *opaque); int connection_key_equal(const void *opaque1, const void *opaque2); int parse_packet_early(Packet *pkt); -void extract_ip_and_port(uint32_t tmp_ports, ConnectionKey *key, Packet *pkt); -void fill_connection_key(Packet *pkt, ConnectionKey *key); -void reverse_connection_key(ConnectionKey *key); +void extract_ip_and_port(uint32_t tmp_ports, ConnectionKey *key, + Packet *pkt, bool reverse); +void fill_connection_key(Packet *pkt, ConnectionKey *key, bool reverse); Connection *connection_new(ConnectionKey *key); void connection_destroy(void *opaque); Connection *connection_get(GHashTable *connection_track_table, |