0001
0002 #ifndef _NET_SELFTESTS
0003 #define _NET_SELFTESTS
0004
0005 #include <linux/ethtool.h>
0006
0007 #if IS_ENABLED(CONFIG_NET_SELFTESTS)
0008
0009 void net_selftest(struct net_device *ndev, struct ethtool_test *etest,
0010 u64 *buf);
0011 int net_selftest_get_count(void);
0012 void net_selftest_get_strings(u8 *data);
0013
0014 #else
0015
0016 static inline void net_selftest(struct net_device *ndev, struct ethtool_test *etest,
0017 u64 *buf)
0018 {
0019 }
0020
0021 static inline int net_selftest_get_count(void)
0022 {
0023 return 0;
0024 }
0025
0026 static inline void net_selftest_get_strings(u8 *data)
0027 {
0028 }
0029
0030 #endif
0031 #endif