odp-util: Fix UFID string parsing.
authorJoe Stringer <joestringer@nicira.com>
Wed, 17 Dec 2014 02:40:50 +0000 (18:40 -0800)
committerJoe Stringer <joestringer@nicira.com>
Fri, 19 Dec 2014 20:57:40 +0000 (12:57 -0800)
commit627298c5b3d141b843cde6adaa35c7b6636d595b
tree1ac725dca244ae878e3d4b8df7569abe0a9d9024
parent9fc7fcbc9678871d3245f4003a2d5f64dc159ae1
odp-util: Fix UFID string parsing.

Commit 534a19b (dpctl: Add support for using UFID to add/del flows.)
introduced string parsing functions for UFIDs, but provided a broken
implementation where the upper 64 bits would be ignored, then the lower
64 bits would be read into both the lower and upper UFID positions. Fix
the implementation to read the upper bits properly.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
lib/odp-util.c