dpif: Always generate RFC4122 UUIDs for UFID.
authorJoe Stringer <joestringer@nicira.com>
Tue, 9 Jun 2015 20:35:29 +0000 (13:35 -0700)
committerJoe Stringer <joestringer@nicira.com>
Wed, 10 Jun 2015 01:20:02 +0000 (18:20 -0700)
commit78145f6edb62f6d6ec3a99f506dff3d617456f9a
tree1577bd19479d41e0d857e10b27ecdfab73e5ce59
parent19ba142220fb109583c181039fb37d8f7aa6ff67
dpif: Always generate RFC4122 UUIDs for UFID.

This patch sacrifices a few bits of hash quality from the 128-bit unique
flow identifiers to make the UFIDs RFC4122-conformant as per the version 4
(random) UUID spec. Given that the 128-bit space is already quite large,
this should not affect the spread of UFIDs in any meaningful way for
hashing.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/dpif.c
lib/uuid.c
lib/uuid.h