Lines Matching refs:nn_vrf
143 struct netns_vrf *nn_vrf = net_generic(net, vrf_net_id); in netns_vrf_map() local
145 return &nn_vrf->vmap; in netns_vrf_map()
1706 struct netns_vrf *nn_vrf; in vrf_newlink() local
1742 nn_vrf = net_generic(net, vrf_net_id); in vrf_newlink()
1744 add_fib_rules = &nn_vrf->add_fib_rules; in vrf_newlink()
1931 static int vrf_netns_init_sysctl(struct net *net, struct netns_vrf *nn_vrf) in vrf_netns_init_sysctl() argument
1942 nn_vrf->ctl_hdr = register_net_sysctl_sz(net, "net/vrf", table, in vrf_netns_init_sysctl()
1944 if (!nn_vrf->ctl_hdr) { in vrf_netns_init_sysctl()
1954 struct netns_vrf *nn_vrf = net_generic(net, vrf_net_id); in vrf_netns_exit_sysctl() local
1957 table = nn_vrf->ctl_hdr->ctl_table_arg; in vrf_netns_exit_sysctl()
1958 unregister_net_sysctl_table(nn_vrf->ctl_hdr); in vrf_netns_exit_sysctl()
1962 static int vrf_netns_init_sysctl(struct net *net, struct netns_vrf *nn_vrf) in vrf_netns_init_sysctl() argument
1975 struct netns_vrf *nn_vrf = net_generic(net, vrf_net_id); in vrf_netns_init() local
1977 nn_vrf->add_fib_rules = true; in vrf_netns_init()
1978 vrf_map_init(&nn_vrf->vmap); in vrf_netns_init()
1980 return vrf_netns_init_sysctl(net, nn_vrf); in vrf_netns_init()