Lines Matching refs:gn
577 struct geneve_net *gn = net_generic(net, geneve_net_id); in geneve_socket_create() local
611 list_add(&gs->list, &gn->sock_list); in geneve_socket_create()
644 static struct geneve_sock *geneve_find_sock(struct geneve_net *gn, in geneve_find_sock() argument
650 list_for_each_entry(gs, &gn->sock_list, list) { in geneve_find_sock()
662 struct geneve_net *gn = net_generic(net, geneve_net_id); in geneve_sock_add() local
668 gs = geneve_find_sock(gn, ipv6 ? AF_INET6 : AF_INET, geneve->cfg.info.key.tp_dst); in geneve_sock_add()
1216 struct geneve_net *gn = net_generic(net, geneve_net_id); in geneve_offload_rx_ports() local
1220 list_for_each_entry_rcu(gs, &gn->sock_list, list) { in geneve_offload_rx_ports()
1330 static struct geneve_dev *geneve_find_dev(struct geneve_net *gn, in geneve_find_dev() argument
1339 list_for_each_entry(geneve, &gn->geneve_list, next) { in geneve_find_dev()
1372 struct geneve_net *gn = net_generic(net, geneve_net_id); in geneve_configure() local
1387 t = geneve_find_dev(gn, info, &tun_on_same_port, &tun_collect_md); in geneve_configure()
1431 list_add(&geneve->next, &gn->geneve_list); in geneve_configure()
1936 struct geneve_net *gn = net_generic(net, geneve_net_id); in geneve_init_net() local
1938 INIT_LIST_HEAD(&gn->geneve_list); in geneve_init_net()
1939 INIT_LIST_HEAD(&gn->sock_list); in geneve_init_net()
1945 struct geneve_net *gn = net_generic(net, geneve_net_id); in geneve_destroy_tunnels() local
1955 list_for_each_entry_safe(geneve, next, &gn->geneve_list, next) { in geneve_destroy_tunnels()
1978 const struct geneve_net *gn = net_generic(net, geneve_net_id); in geneve_exit_batch_net() local
1980 WARN_ON_ONCE(!list_empty(&gn->sock_list)); in geneve_exit_batch_net()