]> git.droids-corp.org - dpdk.git/blobdiff - examples/pipeline/obj.h
vhost: fix packed ring index wrapping
[dpdk.git] / examples / pipeline / obj.h
index 1aab2a37b8df44f53a12748000b81e06bdac760a..b921610554e635dfa4126dffe4662077ca88c7bd 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
  */