datapath: Don't drop MTU-sized VLAN packets from userspace
[sliver-openvswitch.git] / lib / dpif.h
index d81cf63..f31fb3b 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdint.h>
 
 struct ofpbuf;
+struct svec;
 
 /* A datapath interface.  Opaque. */
 struct dpif {
@@ -35,6 +36,8 @@ struct dpif {
     int fd;
 };
 
+int dp_enumerate(struct svec *);
+
 int dpif_open(const char *name, struct dpif *);
 int dpif_create(const char *name, struct dpif *);
 void dpif_close(struct dpif *);
@@ -59,6 +62,8 @@ int dpif_port_query_by_number(const struct dpif *, uint16_t port_no,
                               struct odp_port *);
 int dpif_port_query_by_name(const struct dpif *, const char *devname,
                             struct odp_port *);
+int dpif_port_get_name(struct dpif *dpif, uint16_t port_no,
+                       char *name, size_t name_size);
 int dpif_port_list(const struct dpif *, struct odp_port **, size_t *n_ports);
 
 int dpif_port_group_set(struct dpif *, uint16_t group,