brcompat: Simplify generation of bridge ID.
authorJesse Gross <jesse@nicira.com>
Sat, 4 Dec 2010 23:17:56 +0000 (15:17 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 10 Dec 2010 01:43:36 +0000 (17:43 -0800)
commit6d6266e6c9e387052e34f8434ee1d80690bff75d
tree897d417d256a4b60d1f635686561564cbade25be
parent33b38b63e42c1f5aa80d1d7b4ce79cfbe371fae3
brcompat: Simplify generation of bridge ID.

Currently we use a fairly complicated method of generating the
bridge ID, since the actual struct is only available in a header
file private to the Linux bridge.  The current method appears to
be correct but is difficult to reason about.  This replaces it
with a simple memcpy, which is more analogous to what the Linux
bridge does.

Flagged by sparse.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/brcompat.c