1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _NET_SELFTESTS 2 #ifndef _NET_SELFTESTS 3 #define _NET_SELFTESTS 3 #define _NET_SELFTESTS 4 4 5 #include <linux/ethtool.h> 5 #include <linux/ethtool.h> 6 6 7 #if IS_ENABLED(CONFIG_NET_SELFTESTS) 7 #if IS_ENABLED(CONFIG_NET_SELFTESTS) 8 8 9 void net_selftest(struct net_device *ndev, str 9 void net_selftest(struct net_device *ndev, struct ethtool_test *etest, 10 u64 *buf); 10 u64 *buf); 11 int net_selftest_get_count(void); 11 int net_selftest_get_count(void); 12 void net_selftest_get_strings(u8 *data); 12 void net_selftest_get_strings(u8 *data); 13 13 14 #else 14 #else 15 15 16 static inline void net_selftest(struct net_dev 16 static inline void net_selftest(struct net_device *ndev, struct ethtool_test *etest, 17 u64 *buf) 17 u64 *buf) 18 { 18 { 19 } 19 } 20 20 21 static inline int net_selftest_get_count(void) 21 static inline int net_selftest_get_count(void) 22 { 22 { 23 return 0; 23 return 0; 24 } 24 } 25 25 26 static inline void net_selftest_get_strings(u8 26 static inline void net_selftest_get_strings(u8 *data) 27 { 27 { 28 } 28 } 29 29 30 #endif 30 #endif 31 #endif /* _NET_SELFTESTS */ 31 #endif /* _NET_SELFTESTS */ 32 32
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.