ofproto/xlate: Add xlate_lookup_ofproto().
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 22 Aug 2014 16:01:36 +0000 (09:01 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 22 Aug 2014 21:40:25 +0000 (14:40 -0700)
commitef377a586d17fab82d93520edd7588a4f2567adc
tree02f3cff8532229e92675e03f381caa8cdd4344e1
parentc5c2c273598df7efed53fc82ad88b5bc8e2da9cf
ofproto/xlate: Add xlate_lookup_ofproto().

"xlate_receive" did not tell much about what it is used for.  We have
two users of it that only want the ofproto and the OF port number, use the
new xlate_lookup_ofproto() for those.

Fix the comments of xlate_receive() as we no longer change the flow.

Also, the helper ofproto_dpif_contains_flow() seemed ill-named, so this
path removes it and uses xlate_lookup_ofproto() directly.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-xlate.c
ofproto/ofproto-dpif-xlate.h
ofproto/ofproto-dpif.c