-void netdev_enumerate(struct svec *);
-int netdev_nodev_get_flags(const char *netdev_name, enum netdev_flags *);
-int netdev_nodev_set_etheraddr(const char *name, const uint8_t mac[6]);
-int netdev_nodev_get_etheraddr(const char *netdev_name, uint8_t mac[6]);
-int netdev_nodev_set_policing(const char *netdev_name, uint32_t kbits_rate,
- uint32_t kbits_burst);
-int netdev_nodev_get_carrier(const char *netdev_name, bool *carrier);
-
-int netdev_get_vlan_vid(const char *netdev_name, int *vlan_vid);
-
-struct netdev_monitor;
-int netdev_monitor_create(struct netdev_monitor **);
-void netdev_monitor_destroy(struct netdev_monitor *);
-void netdev_monitor_add(struct netdev_monitor *, struct netdev *);
-void netdev_monitor_remove(struct netdev_monitor *, struct netdev *);
-int netdev_monitor_poll(struct netdev_monitor *, char **devnamep);
-void netdev_monitor_poll_wait(const struct netdev_monitor *);
+int netdev_get_qos_types(const struct netdev *, struct sset *types);
+int netdev_get_qos_capabilities(const struct netdev *,
+ const char *type,
+ struct netdev_qos_capabilities *);
+int netdev_get_n_queues(const struct netdev *,
+ const char *type, unsigned int *n_queuesp);
+
+int netdev_get_qos(const struct netdev *,
+ const char **typep, struct smap *details);
+int netdev_set_qos(struct netdev *,
+ const char *type, const struct smap *details);
+
+int netdev_get_queue(const struct netdev *,
+ unsigned int queue_id, struct smap *details);
+int netdev_set_queue(struct netdev *,
+ unsigned int queue_id, const struct smap *details);
+int netdev_delete_queue(struct netdev *, unsigned int queue_id);
+int netdev_get_queue_stats(const struct netdev *, unsigned int queue_id,
+ struct netdev_queue_stats *);
+uint64_t netdev_get_change_seq(const struct netdev *);
+
+struct netdev_queue_dump {
+ struct netdev *netdev;
+ int error;
+ void *state;
+};
+void netdev_queue_dump_start(struct netdev_queue_dump *,
+ const struct netdev *);
+bool netdev_queue_dump_next(struct netdev_queue_dump *,
+ unsigned int *queue_id, struct smap *details);
+int netdev_queue_dump_done(struct netdev_queue_dump *);
+
+/* Iterates through each queue in NETDEV, using DUMP as state. Fills QUEUE_ID
+ * and DETAILS with information about queues. The client must initialize and
+ * destroy DETAILS.
+ *
+ * Arguments all have pointer type.
+ *
+ * If you break out of the loop, then you need to free the dump structure by
+ * hand using netdev_queue_dump_done(). */
+#define NETDEV_QUEUE_FOR_EACH(QUEUE_ID, DETAILS, DUMP, NETDEV) \
+ for (netdev_queue_dump_start(DUMP, NETDEV); \
+ (netdev_queue_dump_next(DUMP, QUEUE_ID, DETAILS) \
+ ? true \
+ : (netdev_queue_dump_done(DUMP), false)); \
+ )
+
+typedef void netdev_dump_queue_stats_cb(unsigned int queue_id,
+ struct netdev_queue_stats *,
+ void *aux);
+int netdev_dump_queue_stats(const struct netdev *,
+ netdev_dump_queue_stats_cb *, void *aux);
+
+enum { NETDEV_MAX_RX_BATCH = 256 }; /* Maximum number packets in rx_recv() batch. */
+
+#ifdef __cplusplus
+}
+#endif