diff options
author | Ben Pfaff <blp@nicira.com> | 2011-12-21 15:52:23 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-12-21 15:52:38 -0800 |
commit | deedf7e78b249383d6f7b385f9d04e08e33d0e3f (patch) | |
tree | a25f0f2dc20d2454b747f7015fc4eadcccfae5d4 /lib/odp-util.c | |
parent | 88f20c56870074fd43b295fcd7a7ee34578d2355 (diff) |
flow: Rename 'priority' to 'skb_priority'.
This priority's mean is completely different from the priority of an
OpenFlow rule, so it is confusing for it to have the same name.
We should be on the lookout for a less Linux-specific name, but this one
seems fine for now.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/odp-util.c')
-rw-r--r-- | lib/odp-util.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/odp-util.c b/lib/odp-util.c index ee1c3784..490d35eb 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -1163,8 +1163,8 @@ odp_flow_key_from_flow(struct ofpbuf *buf, const struct flow *flow) struct ovs_key_ethernet *eth_key; size_t encap; - if (flow->priority) { - nl_msg_put_u32(buf, OVS_KEY_ATTR_PRIORITY, flow->priority); + if (flow->skb_priority) { + nl_msg_put_u32(buf, OVS_KEY_ATTR_PRIORITY, flow->skb_priority); } if (flow->tun_id != htonll(0)) { @@ -1655,7 +1655,7 @@ odp_flow_key_to_flow(const struct nlattr *key, size_t key_len, /* Metadata. */ if (present_attrs & (UINT64_C(1) << OVS_KEY_ATTR_PRIORITY)) { - flow->priority = nl_attr_get_u32(attrs[OVS_KEY_ATTR_PRIORITY]); + flow->skb_priority = nl_attr_get_u32(attrs[OVS_KEY_ATTR_PRIORITY]); expected_attrs |= UINT64_C(1) << OVS_KEY_ATTR_PRIORITY; } @@ -1859,13 +1859,13 @@ static void commit_set_priority_action(const struct flow *flow, struct flow *base, struct ofpbuf *odp_actions) { - if (base->priority == flow->priority) { + if (base->skb_priority == flow->skb_priority) { return; } - base->priority = flow->priority; + base->skb_priority = flow->skb_priority; commit_set_action(odp_actions, OVS_KEY_ATTR_PRIORITY, - &base->priority, sizeof(base->priority)); + &base->skb_priority, sizeof(base->skb_priority)); } /* If any of the flow key data that ODP actions can modify are different in |