[ovs-discuss] Meter IDs and meter cleanup on disconnect

Gur Stavi gstavi at mrv.com
Sun Sep 21 05:33:36 UTC 2014


Hi all,

I have 2 questions about meters:

If OVS loses connection to controller it delete active flows but does not delete active meters. Shouldn't meters be deleted as well.

Meters are stored in an array in ofproto where meter_id is used as an index into the array.
The datapath need to pre-declare the array size using max_meters during a call to meter_get_features.
This puts a hard limit on the range of Meter IDs 0-max_meters.
It may be very convenient to the controller to have freedom in the selection of meter_id 32 bits in order to easily associate flows to meters.
For example: if the bridge states that max_meters=4 the controller may want to select meter-ids as a function of vlan: 1000, 1200, 1560, 3420.
Is it possible to change meters in ofproto from an array into hash?

The above was observed in openvswitch-2.1.2 release.

Thanks,
Gur

[E-Banner]<http://www.mrv.com/products/optidriver>


The contents of this message, together with any attachments, are intended only for the use of the person(s) to whom they are addressed and may contain confidential and/or privileged information. If you are not the intended recipient, immediately advise the sender, delete this message and any attachments and note that any distribution, or copying of this message, or any attachment, is prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20140921/b6ad88f1/attachment-0002.html>


More information about the discuss mailing list