vhost: fix packed ring index wrapping
[dpdk.git] / examples / pipeline / obj.h
index 1aab2a3..b921610 100644 (file)
@@ -125,6 +125,24 @@ ring_create(struct obj *obj,
 struct ring *
 ring_find(struct obj *obj, const char *name);
 
+/*
+ * tap
+ */
+struct tap {
+       TAILQ_ENTRY(tap) node;
+       char name[NAME_SIZE];
+       int fd;
+};
+
+struct tap *
+tap_find(struct obj *obj, const char *name);
+
+struct tap *
+tap_next(struct obj *obj, struct tap *tap);
+
+struct tap *
+tap_create(struct obj *obj, const char *name);
+
 /*
  * pipeline
  */