41#define TESTNET( NAME, ... ) \
42 static struct testnet_setting NAME ## _setting[] = { \
45 static struct testnet NAME = { \
48 .driver_name = "testnet", \
50 LIST_HEAD_INIT ( NAME.dev.siblings ), \
52 LIST_HEAD_INIT ( NAME.dev.children ), \
54 .testset = NAME ## _setting, \
55 .count = ( sizeof ( NAME ## _setting ) / \
56 sizeof ( NAME ## _setting[0] ) ), \
64#define testnet_ok( testnet ) testnet_okx ( testnet, __FILE__, __LINE__ )
73#define testnet_open_ok( testnet ) \
74 testnet_open_okx ( testnet, __FILE__, __LINE__ )
85#define testnet_set_ok( testnet, name, value ) \
86 testnet_set_okx ( testnet, name, value, __FILE__, __LINE__ )
88 const char *
value,
const char *file,
96#define testnet_close_ok( testnet ) \
97 testnet_close_okx ( testnet, __FILE__, __LINE__ )
106#define testnet_remove_ok( testnet ) \
107 testnet_remove_okx ( testnet, __FILE__, __LINE__ )
pseudo_bit_t value[0x00020]
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
void testnet_remove_okx(struct testnet *testnet, const char *file, unsigned int line)
Report a network device removal test result.
void testnet_set_okx(struct testnet *testnet, const char *name, const char *value, const char *file, unsigned int line)
Report a network device setting test result.
void testnet_okx(struct testnet *testnet, const char *file, unsigned int line)
Report a network device creation test result.
void testnet_open_okx(struct testnet *testnet, const char *file, unsigned int line)
Report a network device opening test result.
void testnet_close_okx(struct testnet *testnet, const char *file, unsigned int line)
Report a network device closing test result.
Network device management.
A test network device setting.
const char * name
Setting name (relative to network device's settings)
unsigned int count
Number of initial settings.
struct net_device * netdev
Network device.
struct device dev
Dummy physical device.
struct testnet_setting * testset
Initial settings.