X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Factions.c;h=f638ffc16c05109265b57904a8527f8cbee03e03;hb=6341bf1febd57c13510d05ede100a054028c87e8;hp=76c9823a5259268e8e5a62aa0748ef3f279bfc8d;hpb=bc7a5acdff087b7e7a162da42ae608a83f3cf902;p=sliver-openvswitch.git diff --git a/datapath/actions.c b/datapath/actions.c index 76c9823a5..f638ffc16 100644 --- a/datapath/actions.c +++ b/datapath/actions.c @@ -380,7 +380,7 @@ static int output_userspace(struct datapath *dp, struct sk_buff *skb, upcall.cmd = OVS_PACKET_CMD_ACTION; upcall.key = &OVS_CB(skb)->flow->key; upcall.userdata = NULL; - upcall.pid = 0; + upcall.portid = 0; for (a = nla_data(attr), rem = nla_len(attr); rem > 0; a = nla_next(a, &rem)) { @@ -390,7 +390,7 @@ static int output_userspace(struct datapath *dp, struct sk_buff *skb, break; case OVS_USERSPACE_ATTR_PID: - upcall.pid = nla_get_u32(a); + upcall.portid = nla_get_u32(a); break; } } @@ -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.