| HD | net_backends.c | 19 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 30 * to be used by network frontends such as virtio-net and e1000. 71 #define NET_BE_SIZE(be) (sizeof(*be) + (be)->priv_size) argument 74 tap_cleanup(struct net_backend *be) in tap_cleanup() argument 76 struct tap_priv *priv = NET_BE_PRIV(be); in tap_cleanup() 81 if (be->fd != -1) { in tap_cleanup() 82 close(be->fd); in tap_cleanup() 83 be->fd = -1; in tap_cleanup() 88 tap_init(struct net_backend *be, const char *devname, in tap_init() argument 91 struct tap_priv *priv = NET_BE_PRIV(be); in tap_init() [all …]
|