flow: Properly translate port numbers in flow_from_match().
authorBen Pfaff <blp@nicira.com>
Fri, 6 Mar 2009 21:30:09 +0000 (13:30 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 6 Mar 2009 21:30:09 +0000 (13:30 -0800)
commitcae0618cd3612f04d2f88c4724ec7429d124a0be
treefc86fa5e4942ed0f1a6dbf732d20f1bd783b7a7e
parent9b4d223c2cd31776ae95b338c06b2db0bb1f3a5d
flow: Properly translate port numbers in flow_from_match().

The OpenFlow and datapath port numbers for the local port are different.
We were translating them in one direction (in flow_to_match()) but not
in the other (in flow_from_match()).

This fixes a performance problem (we were setting up the wrong flow).
lib/flow.c