]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - include/net/selftests.h
Merge tag 'ceph-for-6.9-rc4' of https://github.com/ceph/ceph-client
[thirdparty/kernel/linux.git] / include / net / selftests.h
CommitLineData
3e1e58d6
OR
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _NET_SELFTESTS
3#define _NET_SELFTESTS
4
5#include <linux/ethtool.h>
6
4a52dd8f
OR
7#if IS_ENABLED(CONFIG_NET_SELFTESTS)
8
3e1e58d6
OR
9void net_selftest(struct net_device *ndev, struct ethtool_test *etest,
10 u64 *buf);
11int net_selftest_get_count(void);
12void net_selftest_get_strings(u8 *data);
13
4a52dd8f
OR
14#else
15
16static inline void net_selftest(struct net_device *ndev, struct ethtool_test *etest,
17 u64 *buf)
18{
19}
20
21static inline int net_selftest_get_count(void)
22{
23 return 0;
24}
25
26static inline void net_selftest_get_strings(u8 *data)
27{
28}
29
30#endif
3e1e58d6 31#endif /* _NET_SELFTESTS */