Applied on master! > On 25 Mar 2019, at 19:29, aserd...@ovn.org wrote: > > -----Original Message----- > From: ovs-dev-boun...@openvswitch.org <ovs-dev-boun...@openvswitch.org> On > Behalf Of Anand Kumar via dev > Sent: Thursday, March 21, 2019 1:55 AM > To: d...@openvswitch.org > Subject: [ovs-dev] [PATCH v2] datapath-windows: Address memory allocation > issues for OVS_BUFFER_CONTEXT > > With current implementation, when nbl pool is allocated, context size is > specified as 64 bytes, while the OVS_BUFFER_CONTEXT size is only 32 bytes. > Since context size is never changed, additional memory is not required. > > This patch makes it simpler to allocate memory for OVS_BUFFER_CONTEXT so > that it is always aligned to MEMORY_ALLOCATION_ALIGNMENT. > This is acheived by updating "value" field in the context structure, so that > number of elements in array is always a multiple of > MEMORY_ALLOCATION_ALIGNMENT. > > Also change the DEFAULT_CONTEXT_SIZE to accomodate OVS_BUFFER_CONTEXT size. > > Signed-off-by: Anand Kumar <kumaran...@vmware.com> > --- > > Thanks a lot for implementing this! > > Acked-by: Alin Gabriel Serdean <aserd...@ovn.org> > > _______________________________________________ > dev mailing list > d...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
_______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev