WHY-OVS: New file explaining the rationale for Open vSwitch.
[openvswitch] / include / openvswitch / datapath-protocol.h
index ff9291cab86b5a76d0faf4eea0f604a93f71126a..4b2168cbd7f4b29bbf97156542b1bb3453ccad22 100644 (file)
 #define ODP_VPORT_ETHER_SET     _IOW('O', 26, struct odp_vport_ether)
 #define ODP_VPORT_MTU_GET       _IOWR('O', 27, struct odp_vport_mtu)
 #define ODP_VPORT_MTU_SET       _IOW('O', 28, struct odp_vport_mtu)
+#define ODP_VPORT_STATS_SET     _IOWR('O', 29, struct odp_vport_stats_req)
 
 struct odp_stats {
     /* Flows. */
@@ -206,7 +207,7 @@ struct odp_port_group {
 struct odp_flow_stats {
     uint64_t n_packets;         /* Number of matched packets. */
     uint64_t n_bytes;           /* Number of matched bytes. */
-    uint64_t used_sec;          /* Time last used. */
+    uint64_t used_sec;          /* Time last used, in system monotonic time. */
     uint32_t used_nsec;
     uint8_t  tcp_flags;
     uint8_t  ip_tos;