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