ofproto: Merge all the CFM query functions into one.
authorBen Pfaff <blp@nicira.com>
Wed, 6 Mar 2013 17:25:40 +0000 (09:25 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 6 Mar 2013 17:25:40 +0000 (09:25 -0800)
commit9a9e3786b3a8065723887ab009aedb7f6d2667aa
tree455aad8c92924f2e9ed5d46206b10b72ddfa5e62
parent0f3f3c3db0a997ddb512bf9f0a9a1df7d5252f84
ofproto: Merge all the CFM query functions into one.

This eliminates several function calls and in particular several
hash table lookups to find structures corresponding to a port
number from iface_refresh_cfm_stats().

This does not seem to reduce CPU use, but the code is shorter
and more readable.

Bug #15171.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif.c
ofproto/ofproto-provider.h
ofproto/ofproto.c
ofproto/ofproto.h
vswitchd/bridge.c