Lines Matching refs:pmtu_entries
34 static struct net_pmtu_entry pmtu_entries[NET_PMTU_MAX_ENTRIES]; variable
45 for (i = 0; i < ARRAY_SIZE(pmtu_entries); i++) { in get_pmtu_entry()
49 pmtu_entries[i].dst.family == AF_INET && in get_pmtu_entry()
50 net_ipv4_addr_cmp(&pmtu_entries[i].dst.in_addr, in get_pmtu_entry()
52 entry = &pmtu_entries[i]; in get_pmtu_entry()
59 pmtu_entries[i].dst.family == AF_INET6 && in get_pmtu_entry()
60 net_ipv6_addr_cmp(&pmtu_entries[i].dst.in6_addr, in get_pmtu_entry()
62 entry = &pmtu_entries[i]; in get_pmtu_entry()
86 for (i = 0; i < ARRAY_SIZE(pmtu_entries); i++) { in get_free_pmtu_entry()
87 if (!pmtu_entries[i].in_use) { in get_free_pmtu_entry()
88 pmtu_entries[i].in_use = true; in get_free_pmtu_entry()
89 pmtu_entries[i].last_update = k_uptime_get_32(); in get_free_pmtu_entry()
91 entry = &pmtu_entries[i]; in get_free_pmtu_entry()
95 if (oldest == 0U || pmtu_entries[i].last_update < oldest) { in get_free_pmtu_entry()
96 oldest = pmtu_entries[i].last_update; in get_free_pmtu_entry()
97 entry = &pmtu_entries[i]; in get_free_pmtu_entry()
269 ARRAY_FOR_EACH(pmtu_entries, i) { in net_pmtu_foreach()
271 cb(&pmtu_entries[i], user_data); in net_pmtu_foreach()
283 ARRAY_FOR_EACH(pmtu_entries, i) { in net_pmtu_init()
284 pmtu_entries[i].in_use = false; in net_pmtu_init()