aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/vport.h
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2015-10-21 02:00:10 -0400
committerDavid S. Miller <davem@davemloft.net>2015-10-22 09:46:16 -0400
commitaec15924740edc9886051593bc7769873be9498b (patch)
treeebd4b44ae60d7ee0af79f4496bb29b65e957ff30 /net/openvswitch/vport.h
parent99e28f18e3f4daa2091802e07ebeb4f541631320 (diff)
openvswitch: Use dev_queue_xmit for vport send.
With use of lwtunnel, we can directly call dev_queue_xmit() rather than calling netdev vport send operation. Following change make tunnel vport code bit cleaner. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Thomas Graf <tgraf@suug.ch> Acked-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/vport.h')
-rw-r--r--net/openvswitch/vport.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/openvswitch/vport.h b/net/openvswitch/vport.h
index a413f3ae6a7b..885607f28d56 100644
--- a/net/openvswitch/vport.h
+++ b/net/openvswitch/vport.h
@@ -153,7 +153,7 @@ struct vport_ops {
153 int (*set_options)(struct vport *, struct nlattr *); 153 int (*set_options)(struct vport *, struct nlattr *);
154 int (*get_options)(const struct vport *, struct sk_buff *); 154 int (*get_options)(const struct vport *, struct sk_buff *);
155 155
156 void (*send)(struct vport *, struct sk_buff *); 156 netdev_tx_t (*send) (struct sk_buff *skb);
157 int (*get_egress_tun_info)(struct vport *, struct sk_buff *, 157 int (*get_egress_tun_info)(struct vport *, struct sk_buff *,
158 struct dp_upcall_info *upcall); 158 struct dp_upcall_info *upcall);
159 159
@@ -234,9 +234,6 @@ static inline struct rtable *ovs_tunnel_route_lookup(struct net *net,
234 return rt; 234 return rt;
235} 235}
236 236
237static inline void ovs_vport_send(struct vport *vport, struct sk_buff *skb) 237void ovs_vport_send(struct vport *vport, struct sk_buff *skb);
238{
239 vport->ops->send(vport, skb);
240}
241 238
242#endif /* vport.h */ 239#endif /* vport.h */