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++) {
659 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
663 for (j = 0; j < info->tables[i].n_entries; j++) {
673 memset(utn->entries[i], 0, array_size(info->tables[i].n_entries,
682 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
690 for (j = 0; j < info->tables[i].n_entries; j++)
695 if (!info->shared) {
698 list_for_each_entry(node, &info->shared->devices, list)
703 for (j = 0; j < info->tables[i].n_entries; j++)
722 udp_tunnel_nic_alloc(const struct udp_tunnel_nic_info *info,
739 utn->entries[i] = kcalloc(info->tables[i].n_entries,
768 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
779 /* Check that the driver info is sane */
780 if (WARN_ON(!info->set_port != !info->unset_port) ||
781 WARN_ON(!info->set_port == !info->sync_table) ||
782 WARN_ON(!info->tables[0].n_entries))
785 if (WARN_ON(info->shared &&
786 info->flags & UDP_TUNNEL_NIC_INFO_OPEN_ONLY))
791 if (!info->tables[i].n_entries)
795 if (WARN_ON(!info->tables[i - 1].n_entries))
800 if (info->shared) {
808 if (info->shared && info->shared->udp_tunnel_nic_info) {
809 utn = info->shared->udp_tunnel_nic_info;
811 utn = udp_tunnel_nic_alloc(info, n_tables);
818 if (info->shared) {
819 if (!info->shared->udp_tunnel_nic_info) {
820 INIT_LIST_HEAD(&info->shared->devices);
821 info->shared->udp_tunnel_nic_info = utn;
824 list_add_tail(&node->list, &info->shared->devices);
831 if (!(info->flags & UDP_TUNNEL_NIC_INFO_OPEN_ONLY))
840 const struct udp_tunnel_nic_info *info = dev->udp_tunnel_nic_info;
845 if (info->shared) {
848 list_for_each_entry(node, &info->shared->devices, list)
851 if (list_entry_is_head(node, &info->shared->devices, list))
857 first = list_first_entry_or_null(&info->shared->devices,
865 info->shared->udp_tunnel_nic_info = NULL;
890 const struct udp_tunnel_nic_info *info;
893 info = dev->udp_tunnel_nic_info;
894 if (!info)
916 if (!(info->flags & UDP_TUNNEL_NIC_INFO_OPEN_ONLY))