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:
@@ -166,7 +166,7 @@ static void dp_netdev_execute_actions(struct dp_netdev *,
|
||||
static void dp_netdev_port_input(struct dp_netdev *dp,
|
||||
struct dp_netdev_port *port,
|
||||
struct ofpbuf *packet, uint32_t skb_priority,
|
||||
uint32_t skb_mark, const struct flow_tnl *tnl);
|
||||
uint32_t pkt_mark, const struct flow_tnl *tnl);
|
||||
|
||||
static struct dpif_netdev *
|
||||
dpif_netdev_cast(const struct dpif *dpif)
|
||||
@@ -1135,7 +1135,7 @@ dp_netdev_flow_used(struct dp_netdev_flow *flow, const struct ofpbuf *packet)
|
||||
static void
|
||||
dp_netdev_port_input(struct dp_netdev *dp, struct dp_netdev_port *port,
|
||||
struct ofpbuf *packet, uint32_t skb_priority,
|
||||
uint32_t skb_mark, const struct flow_tnl *tnl)
|
||||
uint32_t pkt_mark, const struct flow_tnl *tnl)
|
||||
{
|
||||
struct dp_netdev_flow *flow;
|
||||
struct flow key;
|
||||
@@ -1145,7 +1145,7 @@ dp_netdev_port_input(struct dp_netdev *dp, struct dp_netdev_port *port,
|
||||
return;
|
||||
}
|
||||
in_port_.odp_port = port->port_no;
|
||||
flow_extract(packet, skb_priority, skb_mark, tnl, &in_port_, &key);
|
||||
flow_extract(packet, skb_priority, pkt_mark, tnl, &in_port_, &key);
|
||||
flow = dp_netdev_lookup_flow(dp, &key);
|
||||
if (flow) {
|
||||
dp_netdev_flow_used(flow, packet);
|
||||
|
Reference in New Issue
Block a user