X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fpipeline%2Fobj.h;h=b921610554e635dfa4126dffe4662077ca88c7bd;hb=7c0c63c9a53964d40b27da618ab94303f28ea92e;hp=e6351fd2793466985b692a172b69ecf3e148ed52;hpb=b77f660028127061b05a8a14cc6c93becb9e73bb;p=dpdk.git diff --git a/examples/pipeline/obj.h b/examples/pipeline/obj.h index e6351fd279..b921610554 100644 --- a/examples/pipeline/obj.h +++ b/examples/pipeline/obj.h @@ -104,6 +104,45 @@ link_find(struct obj *obj, const char *name); struct link * link_next(struct obj *obj, struct link *link); +/* + * ring + */ +struct ring_params { + uint32_t size; + uint32_t numa_node; +}; + +struct ring { + TAILQ_ENTRY(ring) node; + char name[NAME_SIZE]; +}; + +struct ring * +ring_create(struct obj *obj, + const char *name, + struct ring_params *params); + +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 */