xref: /illumos-gate/usr/src/test/bhyve-tests/tests/viona/viona_suite.h (revision ce489a5e0a9c618cd26b66d6b1fd397d8545db9b)
1 /*
2  * This file and its contents are supplied under the terms of the
3  * Common Development and Distribution License ("CDDL"), version 1.0.
4  * You may only use this file in accordance with the terms of version
5  * 1.0 of the CDDL.
6  *
7  * A full copy of the text of the CDDL should have accompanied this
8  * source.  A copy of the CDDL is also available via the Internet at
9  * http://www.illumos.org/license/CDDL.
10  */
11 
12 /*
13  * Copyright 2024 Oxide Computer Company
14  */
15 
16 #ifndef _VIONA_SUITE_H
17 #define	_VIONA_SUITE_H
18 
19 #include <libdladm.h>
20 
21 /*
22  * Shared definitions for tests included in viona suite of tests.
23  */
24 
25 /*
26  * Name of simnet link create viona instances upon.
27  *
28  * This is created and destroyed by the setup.ksh/cleanup.ksh scripts, and the
29  * name must be kept in sync with them.
30  */
31 #define	VIONA_TEST_IFACE_NAME	"bhyvetest_viona0"
32 
33 #define	VIONA_DEV	"/dev/viona"
34 
35 int open_viona(void);
36 dladm_status_t query_dlid(const char *, datalink_id_t *);
37 
38 #endif /* _VIONA_SUITE_H */
39