ovn-controller: Clean up bindings handling.
Remove the global set of logical port IDs called 'all_lports'. This is
no longer used for anything after conntrack ID assignment was moved out
of binding.c.
Remove the global smap of logical port IDs to ovsrec_interface records.
We can't persist references to these records, as we may be holding
references to freed memory. Instead, replace it with a new global sset
of logical port IDs called 'local_ids'. This is used to track when
interfaces have been added or removed. We also build a temporary
shash of logical port IDs to ovs interfaces used for fast lookup
of the right interface as needed.
Found by inspection.
Fixes:
a478c4efef4d ("ovn-controller: Refactor conntrack zone allocation.")
Fixes:
263064aeaa31 ("Convert binding_run to incremental processing.")
Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ryan Moats <rmoats@us.ibm.com>