1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_IF_HSR_H_
3 #define _LINUX_IF_HSR_H_
5 /* used to differentiate various protocols */
12 #if IS_ENABLED(CONFIG_HSR)
13 extern bool is_hsr_master(struct net_device *dev);
14 extern int hsr_get_version(struct net_device *dev, enum hsr_version *ver);
16 static inline bool is_hsr_master(struct net_device *dev)
20 static inline int hsr_get_version(struct net_device *dev,
21 enum hsr_version *ver)
25 #endif /* CONFIG_HSR */
27 #endif /*_LINUX_IF_HSR_H_*/