mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
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>
This commit is contained in:
parent
d1bfc62591
commit
4c22279848
16 changed files with 100 additions and 112 deletions
|
@ -491,7 +491,8 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb,
|
|||
if (upcall_info->egress_tun_info) {
|
||||
nla = nla_nest_start(user_skb, OVS_PACKET_ATTR_EGRESS_TUN_KEY);
|
||||
err = ovs_nla_put_egress_tunnel_key(user_skb,
|
||||
upcall_info->egress_tun_info);
|
||||
upcall_info->egress_tun_info,
|
||||
upcall_info->egress_tun_opts);
|
||||
BUG_ON(err);
|
||||
nla_nest_end(user_skb, nla);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue