Lines Matching refs:vnet
134 struct ipvlan_netns *vnet = net_generic(net, ipvlan_netid); in ipvlan_register_nf_hook() local
137 if (!vnet->ipvl_nf_hook_refcnt) { in ipvlan_register_nf_hook()
141 vnet->ipvl_nf_hook_refcnt = 1; in ipvlan_register_nf_hook()
143 vnet->ipvl_nf_hook_refcnt++; in ipvlan_register_nf_hook()
151 struct ipvlan_netns *vnet = net_generic(net, ipvlan_netid); in ipvlan_unregister_nf_hook() local
153 if (WARN_ON(!vnet->ipvl_nf_hook_refcnt)) in ipvlan_unregister_nf_hook()
156 vnet->ipvl_nf_hook_refcnt--; in ipvlan_unregister_nf_hook()
157 if (!vnet->ipvl_nf_hook_refcnt) in ipvlan_unregister_nf_hook()
178 struct ipvlan_netns *vnet = net_generic(net, ipvlan_netid); in ipvlan_ns_exit() local
180 if (WARN_ON_ONCE(vnet->ipvl_nf_hook_refcnt)) { in ipvlan_ns_exit()
181 vnet->ipvl_nf_hook_refcnt = 0; in ipvlan_ns_exit()