diff options
author | Ansis Atteka <aatteka@nicira.com> | 2012-11-26 11:24:11 -0800 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2012-11-26 11:33:18 -0800 |
commit | 39c7caebc94e851f58b84b54659156dd30522e8e (patch) | |
tree | eacef2a7255d4e047c8e5d1a0d69041e4a71cf80 /net/openvswitch/actions.c | |
parent | 404f2f1019c0293bd91dc1c03c8557ec97d9d104 (diff) |
openvswitch: add skb mark matching and set action
This patch adds support for skb mark matching and set action.
Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/actions.c')
-rw-r--r-- | net/openvswitch/actions.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index a58ed276f70..ac2defeeba8 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c @@ -428,6 +428,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->mark = nla_get_u32(nested_attr); + break; + case OVS_KEY_ATTR_ETHERNET: err = set_eth_addr(skb, nla_data(nested_attr)); break; |