Lines Matching refs:tfom

695 		struct tcp_fastopen_metrics *tfom = &tm->tcpm_fastopen;  in tcp_fastopen_cache_get()  local
700 if (tfom->mss) in tcp_fastopen_cache_get()
701 *mss = tfom->mss; in tcp_fastopen_cache_get()
702 *cookie = tfom->cookie; in tcp_fastopen_cache_get()
703 if (cookie->len <= 0 && tfom->try_exp == 1) in tcp_fastopen_cache_get()
705 *syn_loss = tfom->syn_loss; in tcp_fastopen_cache_get()
706 *last_syn_loss = *syn_loss ? tfom->last_syn_loss : 0; in tcp_fastopen_cache_get()
724 struct tcp_fastopen_metrics *tfom = &tm->tcpm_fastopen; in tcp_fastopen_cache_set() local
728 tfom->mss = mss; in tcp_fastopen_cache_set()
730 tfom->cookie = *cookie; in tcp_fastopen_cache_set()
731 else if (try_exp > tfom->try_exp && in tcp_fastopen_cache_set()
732 tfom->cookie.len <= 0 && !tfom->cookie.exp) in tcp_fastopen_cache_set()
733 tfom->try_exp = try_exp; in tcp_fastopen_cache_set()
735 ++tfom->syn_loss; in tcp_fastopen_cache_set()
736 tfom->last_syn_loss = jiffies; in tcp_fastopen_cache_set()
738 tfom->syn_loss = 0; in tcp_fastopen_cache_set()
849 struct tcp_fastopen_metrics tfom_copy[1], *tfom; in tcp_metrics_fill_info() local
857 tfom = tfom_copy; in tcp_metrics_fill_info()
858 if (tfom->mss && in tcp_metrics_fill_info()
860 tfom->mss) < 0) in tcp_metrics_fill_info()
862 if (tfom->syn_loss && in tcp_metrics_fill_info()
864 tfom->syn_loss) < 0 || in tcp_metrics_fill_info()
866 jiffies - tfom->last_syn_loss) < 0)) in tcp_metrics_fill_info()
868 if (tfom->cookie.len > 0 && in tcp_metrics_fill_info()
870 tfom->cookie.len, tfom->cookie.val) < 0) in tcp_metrics_fill_info()