Lines Matching refs:tln

472     struct tcp_log_id_bucket *tlb, struct tcp_log_id_node *tln,  in tcp_log_remove_id_node()  argument
477 KASSERT(tp != NULL || (tlb != NULL && tln != NULL), in tcp_log_remove_id_node()
479 tp, tlb, tln)); in tcp_log_remove_id_node()
485 tln = tp->t_lin; in tcp_log_remove_id_node()
487 KASSERT(tln != NULL, ("%s: unexpectedly NULL tln", __func__)); in tcp_log_remove_id_node()
498 SLIST_REMOVE(&tlb->tlb_head, tln, tcp_log_id_node, tln_list); in tcp_log_remove_id_node()
645 struct tcp_log_id_node *tln; in tcp_log_set_id() local
651 tln = NULL; in tcp_log_set_id()
775 if (tln != NULL) in tcp_log_set_id()
776 uma_zfree(tcp_log_id_node_zone, tln); in tcp_log_set_id()
777 tln = tp->t_lin; in tcp_log_set_id()
808 if (tln == NULL) { in tcp_log_set_id()
809 tln = uma_zalloc(tcp_log_id_node_zone, in tcp_log_set_id()
811 if (tln == NULL) { in tcp_log_set_id()
815 tln->tln_inp = inp; in tcp_log_set_id()
816 tln->tln_tp = tp; in tcp_log_set_id()
977 SLIST_INSERT_HEAD(&tlb->tlb_head, tln, tln_list); in tcp_log_set_id()
979 tp->t_lin = tln; in tcp_log_set_id()
990 tln = NULL; in tcp_log_set_id()
1013 if (tln != NULL) in tcp_log_set_id()
1014 uma_zfree(tcp_log_id_node_zone, tln); in tcp_log_set_id()
1306 struct tcp_log_id_node *tln; in tcp_log_expire() local
1324 while ((tln = STAILQ_FIRST(&tcp_log_expireq_head)) != NULL && in tcp_log_expire()
1325 tln->tln_expiretime <= expiry_limit) { in tcp_log_expire()
1341 tln->tln_expiretime = SBT_MAX; in tcp_log_expire()
1347 tlb = tln->tln_bucket; in tcp_log_expire()
1349 if (tcp_log_remove_id_node(NULL, NULL, tlb, tln, &tree_locked)) { in tcp_log_expire()
1359 INP_WLOCK(tln->tln_inp); in tcp_log_expire()
1360 if (!in_pcbrele_wlocked(tln->tln_inp)) in tcp_log_expire()
1361 INP_WUNLOCK(tln->tln_inp); in tcp_log_expire()
1364 tcp_log_free_entries(&tln->tln_entries, &tln->tln_count); in tcp_log_expire()
1367 uma_zfree(tcp_log_id_node_zone, tln); in tcp_log_expire()
1378 if (tln != NULL) { in tcp_log_expire()
1385 if (expiry_limit < tln->tln_expiretime) in tcp_log_expire()
1386 expiry_limit = tln->tln_expiretime; in tcp_log_expire()
1404 tcp_log_move_tp_to_node(struct tcpcb *tp, struct tcp_log_id_node *tln) in tcp_log_move_tp_to_node() argument
1410 tln->tln_ie = inp->inp_inc.inc_ie; in tcp_log_move_tp_to_node()
1412 tln->tln_af = AF_INET6; in tcp_log_move_tp_to_node()
1414 tln->tln_af = AF_INET; in tcp_log_move_tp_to_node()
1415 tln->tln_entries = tp->t_logs; in tcp_log_move_tp_to_node()
1416 tln->tln_count = tp->t_lognum; in tcp_log_move_tp_to_node()
1417 tln->tln_bucket = tp->t_lib; in tcp_log_move_tp_to_node()
1428 struct tcp_log_id_node *tln, *tln_first; in tcp_log_tcpcbfini() local
1542 tln = tp->t_lin; in tcp_log_tcpcbfini()
1543 KASSERT(tln->tln_inp == inp, in tcp_log_tcpcbfini()
1545 __func__, tln->tln_inp, inp)); in tcp_log_tcpcbfini()
1546 tcp_log_move_tp_to_node(tp, tln); in tcp_log_tcpcbfini()
1569 tln->tln_expiretime = getsbinuptime(); in tcp_log_tcpcbfini()
1571 if (tln->tln_count) { in tcp_log_tcpcbfini()
1572 tln->tln_expiretime += TCP_LOG_EXPIRE_TIME; in tcp_log_tcpcbfini()
1581 tln->tln_expiretime, SBT_1S, tcp_log_expire, in tcp_log_tcpcbfini()
1584 STAILQ_INSERT_TAIL(&tcp_log_expireq_head, tln, in tcp_log_tcpcbfini()
1587 callouttime = tln->tln_expiretime + in tcp_log_tcpcbfini()
1616 tln->tln_expiretime < tln_first->tln_expiretime) in tcp_log_tcpcbfini()
1617 STAILQ_INSERT_HEAD(&tcp_log_expireq_head, tln, in tcp_log_tcpcbfini()
1621 tln_first, tln, tln_expireq); in tcp_log_tcpcbfini()
1633 atomic_store_rel_int(&tln->tln_closed, 1); in tcp_log_tcpcbfini()
2495 tcp_log_dump_node_logbuf(struct tcp_log_id_node *tln, char *reason, int how) in tcp_log_dump_node_logbuf() argument
2500 tlb = tln->tln_bucket; in tcp_log_dump_node_logbuf()
2504 __func__, __LINE__, tln, tlb)); in tcp_log_dump_node_logbuf()
2505 KASSERT(tln->tln_closed, in tcp_log_dump_node_logbuf()
2507 __func__, __LINE__, tln)); in tcp_log_dump_node_logbuf()
2510 if (tln->tln_count == 0) in tcp_log_dump_node_logbuf()
2541 entry->tldl_ie = tln->tln_ie; in tcp_log_dump_node_logbuf()
2542 entry->tldl_entries = tln->tln_entries; in tcp_log_dump_node_logbuf()
2543 entry->tldl_count = tln->tln_count; in tcp_log_dump_node_logbuf()
2544 entry->tldl_af = tln->tln_af; in tcp_log_dump_node_logbuf()