make get_port_mask more efficient by avoiding some unnecessarily mask checking
Bug #1599037 reported by
ding bo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-sfc |
In Progress
|
Low
|
ding bo |
Bug Description
get_port_mask function is used to aggregate port range into masks to install fewer flows in ovs. But, this function literates all possible masks to check if it is needed. In fact, some iterate can be avoided to make this function better time complexity.
original code here:
https:/
Changed in networking-sfc: | |
assignee: | nobody → ding bo (longddropt) |
Changed in networking-sfc: | |
status: | New → In Progress |
Changed in networking-sfc: | |
importance: | Undecided → Low |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/338741
Review: https:/