net/dst: Utility functions to build dst_metadata without supplying an skb
authorAmir Vadai <amir@vadai.me>
Thu, 8 Sep 2016 13:23:46 +0000 (16:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Sep 2016 03:53:55 +0000 (20:53 -0700)
commit2ff378b7474feac1ec665d01e4dfc6907cccc11c
tree277b1c4fe95bbd8a5427eb09b69b6b47d6ec5188
parentd817f432c2ab7639a4f69de73eafdc55e57c45ad
net/dst: Utility functions to build dst_metadata without supplying an skb

Extract __ip_tun_set_dst() and __ipv6_tun_set_dst() out of
ip_tun_rx_dst() and ipv6_tun_rx_dst(), to be used without supplying an
skb.

Signed-off-by: Amir Vadai <amir@vadai.me>
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst_metadata.h