xref: /openbmc/linux/include/net/net_trackers.h (revision 41415b8a)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NET_NET_TRACKERS_H
3 #define __NET_NET_TRACKERS_H
4 #include <linux/ref_tracker.h>
5 
6 #ifdef CONFIG_NET_DEV_REFCNT_TRACKER
7 typedef struct ref_tracker *netdevice_tracker;
8 #else
9 typedef struct {} netdevice_tracker;
10 #endif
11 
12 #ifdef CONFIG_NET_NS_REFCNT_TRACKER
13 typedef struct ref_tracker *netns_tracker;
14 #else
15 typedef struct {} netns_tracker;
16 #endif
17 
18 #endif /* __NET_NET_TRACKERS_H */
19