Lines Matching refs:info

132 	const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
136 for (j = 0; j < info->tables[i].n_entries; j++)
241 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
245 for (j = 0; j < info->tables[i].n_entries; j++)
253 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
259 for (j = 0; j < info->tables[i].n_entries; j++)
262 if (j == info->tables[i].n_entries)
265 err = info->sync_table(dev, i);
270 for (j = 0; j < info->tables[i].n_entries; j++) {
301 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
310 may_sleep = info->flags & UDP_TUNNEL_NIC_INFO_MAY_SLEEP;
330 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
334 if (info->flags & UDP_TUNNEL_NIC_INFO_IPV4_ONLY &&
339 if (udp_tunnel_nic_table_is_capable(&info->tables[i], ti))
348 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
353 for (j = 0; j < info->tables[i].n_entries; j++) {
503 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
509 if (!netif_running(dev) && info->flags & UDP_TUNNEL_NIC_INFO_OPEN_ONLY)
511 if (info->flags & UDP_TUNNEL_NIC_INFO_STATIC_IANA_VXLAN &&
553 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
565 for (j = 0; j < info->tables[i].n_entries; j++) {
587 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
597 for (j = 0; j < info->tables[table].n_entries; j++) {
613 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
622 for (j = 0; j < info->tables[table].n_entries; j++) {
657 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
661 for (j = 0; j < info->tables[i].n_entries; j++) {
671 memset(utn->entries[i], 0, array_size(info->tables[i].n_entries,
680 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
688 for (j = 0; j < info->tables[i].n_entries; j++)
693 if (!info->shared) {
696 list_for_each_entry(node, &info->shared->devices, list)
701 for (j = 0; j < info->tables[i].n_entries; j++)
720 udp_tunnel_nic_alloc(const struct udp_tunnel_nic_info *info,
737 utn->entries[i] = kcalloc(info->tables[i].n_entries,
766 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
777 /* Check that the driver info is sane */
778 if (WARN_ON(!info->set_port != !info->unset_port) ||
779 WARN_ON(!info->set_port == !info->sync_table) ||
780 WARN_ON(!info->tables[0].n_entries))
783 if (WARN_ON(info->shared &&
784 info->flags & UDP_TUNNEL_NIC_INFO_OPEN_ONLY))
789 if (!info->tables[i].n_entries)
793 if (WARN_ON(!info->tables[i - 1].n_entries))
798 if (info->shared) {
806 if (info->shared && info->shared->udp_tunnel_nic_info) {
807 utn = info->shared->udp_tunnel_nic_info;
809 utn = udp_tunnel_nic_alloc(info, n_tables);
816 if (info->shared) {
817 if (!info->shared->udp_tunnel_nic_info) {
818 INIT_LIST_HEAD(&info->shared->devices);
819 info->shared->udp_tunnel_nic_info = utn;
822 list_add_tail(&node->list, &info->shared->devices);
829 if (!(info->flags & UDP_TUNNEL_NIC_INFO_OPEN_ONLY))
838 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
843 if (info->shared) {
846 list_for_each_entry(node, &info->shared->devices, list)
849 if (list_entry_is_head(node, &info->shared->devices, list))
855 first = list_first_entry_or_null(&info->shared->devices,
863 info->shared->udp_tunnel_nic_info = NULL;
888 const struct udp_tunnel_nic_info *info;
891 info = dev->udp_tunnel_nic_info;
892 if (!info)
914 if (!(info->flags & UDP_TUNNEL_NIC_INFO_OPEN_ONLY))