numam-dpdk/examples/ip_pipeline/tap.h
Jasvinder Singh 2f74ae28e2 examples/ip_pipeline: add tap object
Add tap object implementation to the application

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
2018-04-05 18:23:51 +02:00

30 lines
421 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2018 Intel Corporation
*/
#ifndef _INCLUDE_TAP_H_
#define _INCLUDE_TAP_H_
#include <sys/queue.h>
#include "common.h"
struct tap {
TAILQ_ENTRY(tap) node;
char name[NAME_SIZE];
int fd;
};
TAILQ_HEAD(tap_list, tap);
int
tap_init(void);
struct tap *
tap_find(const char *name);
struct tap *
tap_create(const char *name);
#endif /* _INCLUDE_TAP_H_ */