Lines Matching refs:ti
121 struct udp_tunnel_info *ti) in udp_tunnel_nic_ti_from_entry() argument
123 memset(ti, 0, sizeof(*ti)); in udp_tunnel_nic_ti_from_entry()
124 ti->port = entry->port; in udp_tunnel_nic_ti_from_entry()
125 ti->type = entry->type; in udp_tunnel_nic_ti_from_entry()
126 ti->hw_priv = entry->hw_priv; in udp_tunnel_nic_ti_from_entry()
166 unsigned int idx, struct udp_tunnel_info *ti) in __udp_tunnel_nic_get_port() argument
175 udp_tunnel_nic_ti_from_entry(entry, ti); in __udp_tunnel_nic_get_port()
214 struct udp_tunnel_info ti; in udp_tunnel_nic_device_sync_one() local
221 udp_tunnel_nic_ti_from_entry(entry, &ti); in udp_tunnel_nic_device_sync_one()
223 err = dev->udp_tunnel_nic_info->set_port(dev, table, idx, &ti); in udp_tunnel_nic_device_sync_one()
226 &ti); in udp_tunnel_nic_device_sync_one()
321 struct udp_tunnel_info *ti) in udp_tunnel_nic_table_is_capable() argument
323 return table->tunnel_types & ti->type; in udp_tunnel_nic_table_is_capable()
328 struct udp_tunnel_info *ti) in udp_tunnel_nic_is_capable() argument
335 ti->sa_family != AF_INET) in udp_tunnel_nic_is_capable()
339 if (udp_tunnel_nic_table_is_capable(&info->tables[i], ti)) in udp_tunnel_nic_is_capable()
346 struct udp_tunnel_info *ti) in udp_tunnel_nic_has_collision() argument
357 entry->port == ti->port && in udp_tunnel_nic_has_collision()
358 entry->type != ti->type) { in udp_tunnel_nic_has_collision()
407 struct udp_tunnel_info *ti, int use_cnt_adj) in udp_tunnel_nic_entry_try_adj() argument
412 entry->port != ti->port || in udp_tunnel_nic_entry_try_adj()
413 entry->type != ti->type) in udp_tunnel_nic_entry_try_adj()
430 struct udp_tunnel_info *ti, int use_cnt_adj) in udp_tunnel_nic_try_existing() argument
437 if (!udp_tunnel_nic_table_is_capable(table, ti)) in udp_tunnel_nic_try_existing()
441 if (udp_tunnel_nic_entry_try_adj(utn, i, j, ti, in udp_tunnel_nic_try_existing()
451 struct udp_tunnel_info *ti) in udp_tunnel_nic_add_existing() argument
453 return udp_tunnel_nic_try_existing(dev, utn, ti, +1); in udp_tunnel_nic_add_existing()
458 struct udp_tunnel_info *ti) in udp_tunnel_nic_del_existing() argument
460 return udp_tunnel_nic_try_existing(dev, utn, ti, -1); in udp_tunnel_nic_del_existing()
465 struct udp_tunnel_info *ti) in udp_tunnel_nic_add_new() argument
472 if (!udp_tunnel_nic_table_is_capable(table, ti)) in udp_tunnel_nic_add_new()
482 entry->port = ti->port; in udp_tunnel_nic_add_new()
483 entry->type = ti->type; in udp_tunnel_nic_add_new()
501 __udp_tunnel_nic_add_port(struct net_device *dev, struct udp_tunnel_info *ti) in __udp_tunnel_nic_add_port() argument
512 ti->port == htons(IANA_VXLAN_UDP_PORT)) { in __udp_tunnel_nic_add_port()
513 if (ti->type != UDP_TUNNEL_TYPE_VXLAN) in __udp_tunnel_nic_add_port()
518 if (!udp_tunnel_nic_is_capable(dev, utn, ti)) in __udp_tunnel_nic_add_port()
525 if (udp_tunnel_nic_has_collision(dev, utn, ti)) in __udp_tunnel_nic_add_port()
528 if (!udp_tunnel_nic_add_existing(dev, utn, ti)) in __udp_tunnel_nic_add_port()
529 udp_tunnel_nic_add_new(dev, utn, ti); in __udp_tunnel_nic_add_port()
535 __udp_tunnel_nic_del_port(struct net_device *dev, struct udp_tunnel_info *ti) in __udp_tunnel_nic_del_port() argument
543 if (!udp_tunnel_nic_is_capable(dev, utn, ti)) in __udp_tunnel_nic_del_port()
546 udp_tunnel_nic_del_existing(dev, utn, ti); in __udp_tunnel_nic_del_port()