Skip to content

Commit

Permalink
issue: Reduce flow_tuple by 8 bytes
Browse files Browse the repository at this point in the history
in_protocol_t represents several values and doens't have to be 4 bytes
in size. Reducing it to 2 bytes allows to utilize flow_tuple layout more
efficiently.

Signed-off-by: Dmytro Podgornyi <[email protected]>
  • Loading branch information
pasis committed Aug 21, 2024
1 parent 0188d29 commit 7c363d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/libxlio.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ typedef enum {
TRANS_DEFAULT
} transport_t;

typedef enum { PROTO_UNDEFINED, PROTO_UDP, PROTO_TCP, PROTO_ALL } in_protocol_t;
typedef enum : uint16_t { PROTO_UNDEFINED, PROTO_UDP, PROTO_TCP, PROTO_ALL } in_protocol_t;

typedef enum { DEV_CLONE, DEV_REPLACE } dev_conf_mode_t;

Expand Down

0 comments on commit 7c363d6

Please sign in to comment.