diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2013-06-18 02:50:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-20 03:07:41 +0200 |
commit | 7d5437c709ded4f152cb8b305d17972d6707f20c (patch) | |
tree | d69da5004c4a65a0d4f60f5f8884f2aad120698f /net/openvswitch/actions.c | |
parent | openvswitch: Copy individual actions. (diff) | |
download | linux-7d5437c709ded4f152cb8b305d17972d6707f20c.tar.xz linux-7d5437c709ded4f152cb8b305d17972d6707f20c.zip |
openvswitch: Add tunneling interface.
Add ovs tunnel interface for set tunnel action for userspace.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 596d6373399d..22c5f399f1cf 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c @@ -436,6 +436,10 @@ static int execute_set_action(struct sk_buff *skb, skb->mark = nla_get_u32(nested_attr); break; + case OVS_KEY_ATTR_IPV4_TUNNEL: + OVS_CB(skb)->tun_key = nla_data(nested_attr); + break; + case OVS_KEY_ATTR_ETHERNET: err = set_eth_addr(skb, nla_data(nested_attr)); break; |