datapath: add skb mark matching and set action
[openvswitch] / datapath / actions.c
index 76c9823a5259268e8e5a62aa0748ef3f279bfc8d..faa6a0023df87d67adab6e09afff9eae7ed54d60 100644 (file)
@@ -435,6 +435,10 @@ static int execute_set_action(struct sk_buff *skb,
                skb->priority = nla_get_u32(nested_attr);
                break;
 
+       case OVS_KEY_ATTR_SKB_MARK:
+               skb_set_mark(skb, nla_get_u32(nested_attr));
+               break;
+
        case OVS_KEY_ATTR_TUN_ID:
                /* If we're only using the TUN_ID action, store the value in a
                 * temporary instance of struct ovs_key_ipv4_tunnel on the stack.