Lines Matching defs:ti
124 struct udp_tunnel_info *ti)
126 memset(ti, 0, sizeof(*ti));
127 ti->port = entry->port;
128 ti->type = entry->type;
129 ti->hw_priv = entry->hw_priv;
169 unsigned int idx, struct udp_tunnel_info *ti)
178 udp_tunnel_nic_ti_from_entry(entry, ti);
217 struct udp_tunnel_info ti;
224 udp_tunnel_nic_ti_from_entry(entry, &ti);
226 err = dev->udp_tunnel_nic_info->set_port(dev, table, idx, &ti);
229 &ti);
313 struct udp_tunnel_info *ti)
315 return table->tunnel_types & ti->type;
320 struct udp_tunnel_info *ti)
327 ti->sa_family != AF_INET)
331 if (udp_tunnel_nic_table_is_capable(&info->tables[i], ti))
338 struct udp_tunnel_info *ti)
349 entry->port == ti->port &&
350 entry->type != ti->type) {
399 struct udp_tunnel_info *ti, int use_cnt_adj)
404 entry->port != ti->port ||
405 entry->type != ti->type)
422 struct udp_tunnel_info *ti, int use_cnt_adj)
429 if (!udp_tunnel_nic_table_is_capable(table, ti))
433 if (udp_tunnel_nic_entry_try_adj(utn, i, j, ti,
443 struct udp_tunnel_info *ti)
445 return udp_tunnel_nic_try_existing(dev, utn, ti, +1);
450 struct udp_tunnel_info *ti)
452 return udp_tunnel_nic_try_existing(dev, utn, ti, -1);
457 struct udp_tunnel_info *ti)
464 if (!udp_tunnel_nic_table_is_capable(table, ti))
474 entry->port = ti->port;
475 entry->type = ti->type;
493 __udp_tunnel_nic_add_port(struct net_device *dev, struct udp_tunnel_info *ti)
504 ti->port == htons(IANA_VXLAN_UDP_PORT)) {
505 if (ti->type != UDP_TUNNEL_TYPE_VXLAN)
510 if (!udp_tunnel_nic_is_capable(dev, utn, ti))
517 if (udp_tunnel_nic_has_collision(dev, utn, ti))
520 if (!udp_tunnel_nic_add_existing(dev, utn, ti))
521 udp_tunnel_nic_add_new(dev, utn, ti);
527 __udp_tunnel_nic_del_port(struct net_device *dev, struct udp_tunnel_info *ti)
535 if (!udp_tunnel_nic_is_capable(dev, utn, ti))
538 udp_tunnel_nic_del_existing(dev, utn, ti);