* [PATCH net-next 1/3] openvswitch: clean up unused function
@ 2016-01-09 23:07 Jεan Sacren
2016-01-10 10:16 ` Thomas Graf
0 siblings, 1 reply; 2+ messages in thread
From: Jεan Sacren @ 2016-01-09 23:07 UTC (permalink / raw)
To: netdev; +Cc: Pravin Shelar, dev
From: Jean Sacren <sakiwit@gmail.com>
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>
---
net/openvswitch/vport.h | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/net/openvswitch/vport.h b/net/openvswitch/vport.h
index 8ea3a96980ac..f00bb153ad13 100644
--- a/net/openvswitch/vport.h
+++ b/net/openvswitch/vport.h
@@ -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 */
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next 1/3] openvswitch: clean up unused function
2016-01-09 23:07 [PATCH net-next 1/3] openvswitch: clean up unused function Jεan Sacren
@ 2016-01-10 10:16 ` Thomas Graf
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Graf @ 2016-01-10 10:16 UTC (permalink / raw)
To: J??an Sacren; +Cc: netdev, Pravin Shelar, dev
On 01/09/16 at 04:07pm, J??an Sacren wrote:
> From: Jean Sacren <sakiwit@gmail.com>
>
> 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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-10 10:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-09 23:07 [PATCH net-next 1/3] openvswitch: clean up unused function Jεan Sacren
2016-01-10 10:16 ` Thomas Graf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).