]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Shrink sw_flow_mask by 8 bytes (64-bit) or 4 bytes (32-bit).
authorBen Pfaff <blp@nicira.com>
Mon, 25 Nov 2013 18:41:28 +0000 (10:41 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 6 Jan 2014 23:51:27 +0000 (15:51 -0800)
commit503efe2a6a52c4d9977640cdc5dcd5ab24292e32
treeb84afd96bec73bf6d180c85599762564f783a68b
parent7f2eb3a15ff3c37fa5d36130a1a58c6ee34f85d2
openvswitch: 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: Andy Zhou <azhou@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/flow.h