]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
openvswitch: clean up unused function
authorJean Sacren <sakiwit@gmail.com>
Sat, 9 Jan 2016 23:07:09 +0000 (16:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jan 2016 04:49:21 +0000 (23:49 -0500)
commit 6b001e682e90 ("openvswitch: Use Geneve device.")

The commit above deleted the only call site of ovs_tunnel_route_lookup()
and now that function is not used any more. So let's delete the function
definition as well.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport.h

index 8ea3a96980acff90b1237387be70967c25f1236e..f00bb153ad131ddc29e18e19284cd57079e4fe50 100644 (file)
@@ -204,26 +204,6 @@ int __ovs_vport_ops_register(struct vport_ops *ops);
        })
 
 void ovs_vport_ops_unregister(struct vport_ops *ops);
-
-static inline struct rtable *ovs_tunnel_route_lookup(struct net *net,
-                                                    const struct ip_tunnel_key *key,
-                                                    u32 mark,
-                                                    struct flowi4 *fl,
-                                                    u8 protocol)
-{
-       struct rtable *rt;
-
-       memset(fl, 0, sizeof(*fl));
-       fl->daddr = key->u.ipv4.dst;
-       fl->saddr = key->u.ipv4.src;
-       fl->flowi4_tos = RT_TOS(key->tos);
-       fl->flowi4_mark = mark;
-       fl->flowi4_proto = protocol;
-
-       rt = ip_route_output_key(net, fl);
-       return rt;
-}
-
 void ovs_vport_send(struct vport *vport, struct sk_buff *skb);
 
 #endif /* vport.h */