Re: [ovs-dev] [PATCH 1/2] ofp-actions: Waste less memory in learn actions.

2016-08-31 Thread Jarno Rajahalme
> On Aug 30, 2016, at 8:55 AM, Ben Pfaff wrote: > > On Tue, Aug 23, 2016 at 05:51:36PM -0700, Jarno Rajahalme wrote: >> Make the immediate data member 'src_imm' of a learn spec allocated at >> the end of the action for just the right size. This, together with >> some structure

Re: [ovs-dev] [PATCH 1/2] ofp-actions: Waste less memory in learn actions.

2016-08-30 Thread Ben Pfaff
On Tue, Aug 23, 2016 at 05:51:36PM -0700, Jarno Rajahalme wrote: > Make the immediate data member 'src_imm' of a learn spec allocated at > the end of the action for just the right size. This, together with > some structure packing saves on average of ~128 bytes for each learn > spec in each learn

[ovs-dev] [PATCH 1/2] ofp-actions: Waste less memory in learn actions.

2016-08-23 Thread Jarno Rajahalme
Make the immediate data member 'src_imm' of a learn spec allocated at the end of the action for just the right size. This, together with some structure packing saves on average of ~128 bytes for each learn spec in each learn action. Typical learn actions have about 4 specs each, so this amounts