bridge.c: Change variable "ofport" type in "struct if_cfg" and "struct iface"
authorAlex Wang <alexw@nicira.com>
Tue, 4 Jun 2013 19:46:38 +0000 (12:46 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 4 Jun 2013 19:32:44 +0000 (12:32 -0700)
commitc60c33fb5d41f03b145b00d2e136f911cd491a9e
treee063c953d4e767cf09d7e8c8fa1eab460836d5f4
parente655542cf3cc10f14651fb237582ac7e55683e88
bridge.c: Change variable "ofport" type in "struct if_cfg" and "struct iface"

This patch changes the variable type of "ofport" in "struct if_cfg" and
"struct iface" from int64_t to uint16_t. This is more consistent with
the OpenFlow-1.0 port definition.

Also, before this patch, -1 is used to indicate an unknown port. This
patch uses OFPP_NONE, since "ofport" becomes uint16_t.

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
vswitchd/bridge.c