mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
flow: Rename skb_mark to pkt_mark.
The skb_mark field is currently only available with the Linux datapath and is only used internally. However, it is desirable to expose this through OpenFlow and when it is exposed ideally it would not be system- specific. In preparation for this, skb_mark is rename to pkt_mark in internal data structures for consistency. This does not rename the Linux interfaces because doing so would break the API. It would not necessarily be desirable to do anyways since in Linux-specific code it is clearer to use the actual name rather than a generic one. This can lead to confusion in some places, however, because we do not always strictly separate generic and platform dependent code (one example is actions). This seems inevitable though at this point if the lower and upper layers have different names (as they must given the above requirements). Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
This commit is contained in:
@@ -356,7 +356,7 @@ invalid:
|
||||
* present and has a correct length, and otherwise NULL.
|
||||
*/
|
||||
void
|
||||
flow_extract(struct ofpbuf *packet, uint32_t skb_priority, uint32_t skb_mark,
|
||||
flow_extract(struct ofpbuf *packet, uint32_t skb_priority, uint32_t pkt_mark,
|
||||
const struct flow_tnl *tnl, const union flow_in_port *in_port,
|
||||
struct flow *flow)
|
||||
{
|
||||
@@ -375,7 +375,7 @@ flow_extract(struct ofpbuf *packet, uint32_t skb_priority, uint32_t skb_mark,
|
||||
flow->in_port = *in_port;
|
||||
}
|
||||
flow->skb_priority = skb_priority;
|
||||
flow->skb_mark = skb_mark;
|
||||
flow->pkt_mark = pkt_mark;
|
||||
|
||||
packet->l2 = b.data;
|
||||
packet->l2_5 = NULL;
|
||||
|
Reference in New Issue
Block a user