diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2015-08-26 23:46:50 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-27 15:42:47 -0700 |
commit | c29a70d2cadfea443c027d23481f820530b70057 (patch) | |
tree | 2ebe4f224f810316d5b4f40131fe871bc7fb0ee6 /include/net/udp_tunnel.h | |
parent | 980c394c53e420f7e5484d011378a4bec861ec7a (diff) | |
download | linux-riscv-c29a70d2cadfea443c027d23481f820530b70057.tar.gz linux-riscv-c29a70d2cadfea443c027d23481f820530b70057.tar.bz2 linux-riscv-c29a70d2cadfea443c027d23481f820530b70057.zip |
tunnel: introduce udp_tun_rx_dst()
Introduce function udp_tun_rx_dst() to initialize tunnel dst on
receive path.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Reviewed-by: Jesse Gross <jesse@nicira.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/udp_tunnel.h')
-rw-r--r-- | include/net/udp_tunnel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/udp_tunnel.h b/include/net/udp_tunnel.h index c491c1221606..35041d0fc21e 100644 --- a/include/net/udp_tunnel.h +++ b/include/net/udp_tunnel.h @@ -93,6 +93,10 @@ int udp_tunnel6_xmit_skb(struct dst_entry *dst, struct sock *sk, void udp_tunnel_sock_release(struct socket *sock); +struct metadata_dst *udp_tun_rx_dst(struct sk_buff *skb, unsigned short family, + __be16 flags, __be64 tunnel_id, + int md_size); + static inline struct sk_buff *udp_tunnel_handle_offloads(struct sk_buff *skb, bool udp_csum) { |