datapath: Fix net exit.
[cascardo/ovs.git] / datapath / vport.h
index c0ab88a..e256fc0 100644 (file)
@@ -101,6 +101,7 @@ struct vport_portids {
  * @ops: Class structure.
  * @percpu_stats: Points to per-CPU statistics used and maintained by vport
  * @err_stats: Points to error statistics used and maintained by vport
+ * @detach_list: list used for detaching vport in net-exit call.
  */
 struct vport {
        struct rcu_head rcu;
@@ -113,7 +114,9 @@ struct vport {
        const struct vport_ops *ops;
 
        struct pcpu_sw_netstats __percpu *percpu_stats;
+
        struct vport_err_stats err_stats;
+       struct list_head detach_list;
 };
 
 /**
@@ -153,7 +156,8 @@ struct vport_parms {
  * @get_name: Get the device's name.
  * @send: Send a packet on the device.  Returns the length of the packet sent,
  * zero for dropped packets or negative for error.
- * @get_egress_tun_info: Get the egress tunnel 5-tuple and other info for a packet.
+ * @get_egress_tun_info: Get the egress tunnel 5-tuple and other info for
+ * a packet.
  */
 struct vport_ops {
        enum ovs_vport_type type;
@@ -169,7 +173,6 @@ struct vport_ops {
        const char *(*get_name)(const struct vport *);
 
        int (*send)(struct vport *, struct sk_buff *);
-
        int (*get_egress_tun_info)(struct vport *, struct sk_buff *,
                                   struct ovs_tunnel_info *);
 };