Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / net / selftests.h
blobe65e8d230d33c2410f58c06b2907097f4a8621d9
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _NET_SELFTESTS
3 #define _NET_SELFTESTS
5 #include <linux/ethtool.h>
7 #if IS_ENABLED(CONFIG_NET_SELFTESTS)
9 void net_selftest(struct net_device *ndev, struct ethtool_test *etest,
10 u64 *buf);
11 int net_selftest_get_count(void);
12 void net_selftest_get_strings(u8 *data);
14 #else
16 static inline void net_selftest(struct net_device *ndev, struct ethtool_test *etest,
17 u64 *buf)
21 static inline int net_selftest_get_count(void)
23 return 0;
26 static inline void net_selftest_get_strings(u8 *data)
30 #endif
31 #endif /* _NET_SELFTESTS */