datapath: Shrink sw_flow_mask by 8 bytes (64-bit) or 4 bytes (32-bit).
authorBen Pfaff <blp@nicira.com>
Wed, 13 Nov 2013 17:50:54 +0000 (09:50 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 18 Nov 2013 22:59:26 +0000 (14:59 -0800)
commit8c19b83f862a66f032930b328ab72cd2ee5aebf0
treea90c35392a0d50322a52f9d47e926b17502ef3c4
parenta2f3ccc577c6fdb685362a26b6980a0b50454ec2
datapath: Shrink sw_flow_mask by 8 bytes (64-bit) or 4 bytes (32-bit).

We won't normally have a ton of flow masks but using a size_t to store
values no bigger than sizeof(struct sw_flow_key) seems excessive.

This reduces sw_flow_key_range and sw_flow_mask by 4 bytes on 32-bit
systems.  On 64-bit systems it shrinks sw_flow_key_range by 12 bytes but
sw_flow_mask only by 8 bytes due to padding.

Compile tested only.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
datapath/flow.h