Re: [ovs-dev] [PATCH 2/3] ofproto: Store meters into imap

2017-04-03 Thread Andy Zhou
On Fri, Mar 31, 2017 at 7:53 PM, Ben Pfaff wrote: > On Fri, Mar 31, 2017 at 01:42:02PM -0700, Andy Zhou wrote: >> Currently, meters are stored in a fixed pointer array. It is not >> very efficient since the controller, at least in theory, can >> pick any meter id (up to the limits

Re: [ovs-dev] [PATCH 2/3] ofproto: Store meters into imap

2017-03-31 Thread Ben Pfaff
On Fri, Mar 31, 2017 at 01:42:02PM -0700, Andy Zhou wrote: > Currently, meters are stored in a fixed pointer array. It is not > very efficient since the controller, at least in theory, can > pick any meter id (up to the limits to uint32_t), not necessarily > within the lower end of a region, or in

[ovs-dev] [PATCH 2/3] ofproto: Store meters into imap

2017-03-31 Thread Andy Zhou
Currently, meters are stored in a fixed pointer array. It is not very efficient since the controller, at least in theory, can pick any meter id (up to the limits to uint32_t), not necessarily within the lower end of a region, or in close range to each other. In particular, OFPM_SLOWPATH and