[ovs-dev] [datapath 2/2] datapath: Shrink sw_flow_mask by 8 bytes (64-bit) or 4 bytes (32-bit).

Ben Pfaff blp at nicira.com
Mon Nov 18 23:00:03 UTC 2013


On Mon, Nov 18, 2013 at 12:55:44PM -0800, Jesse Gross wrote:
> On Wed, Nov 13, 2013 at 9:54 AM, Ben Pfaff <blp at nicira.com> wrote:
> > 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 at nicira.com>
> 
> Acked-by: Jesse Gross <jesse at nicira.com>

Thanks Andy and Jesse, I applied both of these.



More information about the dev mailing list