vxlan: remove unsed vxlan_dev_dst_port()
authorpravin shelar <pshelar@ovn.org>
Mon, 14 Nov 2016 04:43:58 +0000 (20:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Nov 2016 17:16:13 +0000 (12:16 -0500)
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/vxlan.h

index 308adc4154f43e6233b901e0032c20932059bd64..49a59202f85ee2a03a447249f87fe935e28e8967 100644 (file)
@@ -281,16 +281,6 @@ struct vxlan_dev {
 struct net_device *vxlan_dev_create(struct net *net, const char *name,
                                    u8 name_assign_type, struct vxlan_config *conf);
 
-static inline __be16 vxlan_dev_dst_port(struct vxlan_dev *vxlan,
-                                       unsigned short family)
-{
-#if IS_ENABLED(CONFIG_IPV6)
-       if (family == AF_INET6)
-               return inet_sk(vxlan->vn6_sock->sock->sk)->inet_sport;
-#endif
-       return inet_sk(vxlan->vn4_sock->sock->sk)->inet_sport;
-}
-
 static inline netdev_features_t vxlan_features_check(struct sk_buff *skb,
                                                     netdev_features_t features)
 {