Lines Matching refs:tfom
711 struct tcp_fastopen_metrics *tfom = &tm->tcpm_fastopen; in tcp_fastopen_cache_get() local
716 if (tfom->mss) in tcp_fastopen_cache_get()
717 *mss = tfom->mss; in tcp_fastopen_cache_get()
718 *cookie = tfom->cookie; in tcp_fastopen_cache_get()
719 if (cookie->len <= 0 && tfom->try_exp == 1) in tcp_fastopen_cache_get()
721 *syn_loss = tfom->syn_loss; in tcp_fastopen_cache_get()
722 *last_syn_loss = *syn_loss ? tfom->last_syn_loss : 0; in tcp_fastopen_cache_get()
740 struct tcp_fastopen_metrics *tfom = &tm->tcpm_fastopen; in tcp_fastopen_cache_set() local
744 tfom->mss = mss; in tcp_fastopen_cache_set()
746 tfom->cookie = *cookie; in tcp_fastopen_cache_set()
747 else if (try_exp > tfom->try_exp && in tcp_fastopen_cache_set()
748 tfom->cookie.len <= 0 && !tfom->cookie.exp) in tcp_fastopen_cache_set()
749 tfom->try_exp = try_exp; in tcp_fastopen_cache_set()
751 ++tfom->syn_loss; in tcp_fastopen_cache_set()
752 tfom->last_syn_loss = jiffies; in tcp_fastopen_cache_set()
754 tfom->syn_loss = 0; in tcp_fastopen_cache_set()
865 struct tcp_fastopen_metrics tfom_copy[1], *tfom; in tcp_metrics_fill_info() local
873 tfom = tfom_copy; in tcp_metrics_fill_info()
874 if (tfom->mss && in tcp_metrics_fill_info()
876 tfom->mss) < 0) in tcp_metrics_fill_info()
878 if (tfom->syn_loss && in tcp_metrics_fill_info()
880 tfom->syn_loss) < 0 || in tcp_metrics_fill_info()
882 jiffies - tfom->last_syn_loss) < 0)) in tcp_metrics_fill_info()
884 if (tfom->cookie.len > 0 && in tcp_metrics_fill_info()
886 tfom->cookie.len, tfom->cookie.val) < 0) in tcp_metrics_fill_info()