diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2015-08-30 21:09:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-31 15:28:56 -0400 |
commit | 4c22279848c531fc7f555d463daf3d0df963bd41 (patch) | |
tree | 38315c4715393860962cc00a19f47fa1554b6add /net/openvswitch/datapath.c | |
parent | d1bfc62591a0a5144dc380976e737fbbb4f40f4f (diff) |
ip-tunnel: Use API to access tunnel metadata options.
Currently tun-info options pointer is used in few cases to
pass options around. But tunnel options can be accessed using
ip_tunnel_info_opts() API without using the pointer. Following
patch removes the redundant pointer and consistently make use
of API.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Reviewed-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r-- | net/openvswitch/datapath.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 60c2ab8e6bc3..6fbd2decb19e 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c | |||
@@ -491,7 +491,8 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb, | |||
491 | if (upcall_info->egress_tun_info) { | 491 | if (upcall_info->egress_tun_info) { |
492 | nla = nla_nest_start(user_skb, OVS_PACKET_ATTR_EGRESS_TUN_KEY); | 492 | nla = nla_nest_start(user_skb, OVS_PACKET_ATTR_EGRESS_TUN_KEY); |
493 | err = ovs_nla_put_egress_tunnel_key(user_skb, | 493 | err = ovs_nla_put_egress_tunnel_key(user_skb, |
494 | upcall_info->egress_tun_info); | 494 | upcall_info->egress_tun_info, |
495 | upcall_info->egress_tun_opts); | ||
495 | BUG_ON(err); | 496 | BUG_ON(err); |
496 | nla_nest_end(user_skb, nla); | 497 | nla_nest_end(user_skb, nla); |
497 | } | 498 | } |