mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
datapath: add skb mark matching and set action
This patch adds support for skb mark matching and set action. Acked-by: Jesse Gross <jesse@nicira.com> Signed-off-by: Ansis Atteka <aatteka@nicira.com>
This commit is contained in:
@@ -929,7 +929,7 @@ dpif_netdev_execute(struct dpif *dpif, const struct dpif_execute *execute)
|
||||
ofpbuf_reserve(©, DP_NETDEV_HEADROOM);
|
||||
ofpbuf_put(©, execute->packet->data, execute->packet->size);
|
||||
|
||||
flow_extract(©, 0, NULL, -1, &key);
|
||||
flow_extract(©, 0, 0, NULL, -1, &key);
|
||||
error = dpif_netdev_flow_from_nlattrs(execute->key, execute->key_len,
|
||||
&key);
|
||||
if (!error) {
|
||||
@@ -1027,7 +1027,7 @@ dp_netdev_port_input(struct dp_netdev *dp, struct dp_netdev_port *port,
|
||||
if (packet->size < ETH_HEADER_LEN) {
|
||||
return;
|
||||
}
|
||||
flow_extract(packet, 0, NULL, port->port_no, &key);
|
||||
flow_extract(packet, 0, 0, NULL, port->port_no, &key);
|
||||
flow = dp_netdev_lookup_flow(dp, &key);
|
||||
if (flow) {
|
||||
dp_netdev_flow_used(flow, packet);
|
||||
@@ -1192,6 +1192,7 @@ execute_set_action(struct ofpbuf *packet, const struct nlattr *a)
|
||||
switch (type) {
|
||||
case OVS_KEY_ATTR_TUN_ID:
|
||||
case OVS_KEY_ATTR_PRIORITY:
|
||||
case OVS_KEY_ATTR_SKB_MARK:
|
||||
case OVS_KEY_ATTR_IPV4_TUNNEL:
|
||||
/* not implemented */
|
||||
break;
|
||||
|
Reference in New Issue
Block a user