Lines Matching refs:nn_vrf
179 struct netns_vrf *nn_vrf = net_generic(net, vrf_net_id); in netns_vrf_map() local
181 return &nn_vrf->vmap; in netns_vrf_map()
1745 struct netns_vrf *nn_vrf; in vrf_newlink() local
1781 nn_vrf = net_generic(net, vrf_net_id); in vrf_newlink()
1783 add_fib_rules = &nn_vrf->add_fib_rules; in vrf_newlink()
1971 static int vrf_netns_init_sysctl(struct net *net, struct netns_vrf *nn_vrf) in vrf_netns_init_sysctl() argument
1982 nn_vrf->ctl_hdr = register_net_sysctl(net, "net/vrf", table); in vrf_netns_init_sysctl()
1983 if (!nn_vrf->ctl_hdr) { in vrf_netns_init_sysctl()
1993 struct netns_vrf *nn_vrf = net_generic(net, vrf_net_id); in vrf_netns_exit_sysctl() local
1996 table = nn_vrf->ctl_hdr->ctl_table_arg; in vrf_netns_exit_sysctl()
1997 unregister_net_sysctl_table(nn_vrf->ctl_hdr); in vrf_netns_exit_sysctl()
2001 static int vrf_netns_init_sysctl(struct net *net, struct netns_vrf *nn_vrf) in vrf_netns_init_sysctl() argument
2014 struct netns_vrf *nn_vrf = net_generic(net, vrf_net_id); in vrf_netns_init() local
2016 nn_vrf->add_fib_rules = true; in vrf_netns_init()
2017 vrf_map_init(&nn_vrf->vmap); in vrf_netns_init()
2019 return vrf_netns_init_sysctl(net, nn_vrf); in vrf_netns_init()