diff options
author | Ben Pfaff <blp@nicira.com> | 2011-10-05 09:59:51 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-10-12 16:27:09 -0700 |
commit | 09ded0ad489630236210a02f2d315816e558d701 (patch) | |
tree | ab6fb6575e822d0c6026b4d564fb12ad64a8a25c /lib/odp-util.c | |
parent | 13c0dbe79a50c412721a5df697c6a6303b22d2da (diff) |
datapath-protocol: Rename enums for consistency.
Most of the enum tags in this file are lowercased versions of the uppercase
enum prefixes (or slightly less abbreviated versions, e.g. "dp" becomes
"datapath"). This commit fixes up the others for consistency.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'lib/odp-util.c')
-rw-r--r-- | lib/odp-util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/odp-util.c b/lib/odp-util.c index 08378a68..a4710991 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -55,7 +55,7 @@ odp_action_len(uint16_t type) return -1; } - switch ((enum ovs_action_type) type) { + switch ((enum ovs_action_attr) type) { case OVS_ACTION_ATTR_OUTPUT: return 4; case OVS_ACTION_ATTR_USERSPACE: return -2; case OVS_ACTION_ATTR_PUSH_VLAN: return 2; @@ -278,7 +278,7 @@ odp_flow_key_attr_len(uint16_t type) return -1; } - switch ((enum ovs_key_type) type) { + switch ((enum ovs_key_attr) type) { case OVS_KEY_ATTR_TUN_ID: return 8; case OVS_KEY_ATTR_IN_PORT: return 4; case OVS_KEY_ATTR_ETHERNET: return sizeof(struct ovs_key_ethernet); @@ -913,7 +913,7 @@ odp_flow_key_to_flow(const struct nlattr *key, size_t key_len, struct flow *flow) { const struct nlattr *nla; - enum ovs_key_type prev_type; + enum ovs_key_attr prev_type; size_t left; memset(flow, 0, sizeof *flow); |