Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_usrreq.c
Show First 20 Lines • Show All 1,638 Lines • ▼ Show 20 Lines | if (tp->t_flags & TF_TOE) { | ||||
ti->tcpi_options |= TCPI_OPT_TOE; | ti->tcpi_options |= TCPI_OPT_TOE; | ||||
tcp_offload_tcp_info(tp, ti); | tcp_offload_tcp_info(tp, ti); | ||||
} | } | ||||
#endif | #endif | ||||
/* | /* | ||||
* AccECN related counters. | * AccECN related counters. | ||||
*/ | */ | ||||
if ((tp->t_flags2 & (TF2_ECN_PERMIT | TF2_ACE_PERMIT)) == | if ((tp->t_flags2 & (TF2_ECN_PERMIT | TF2_ACE_PERMIT)) == | ||||
(TF2_ECN_PERMIT | TF2_ACE_PERMIT)) | (TF2_ECN_PERMIT | TF2_ACE_PERMIT)) { | ||||
/* | /* | ||||
* Internal counter starts at 5 for AccECN | * Internal counter starts at 5 for AccECN | ||||
* but 0 for RFC3168 ECN. | * but 0 for RFC3168 ECN. | ||||
*/ | */ | ||||
ti->tcpi_delivered_ce = tp->t_scep - 5; | ti->tcpi_delivered_ce = tp->t_scep - 5; | ||||
else | ti->tcpi_received_ce = tp->t_rcep - 5; | ||||
} else { | |||||
ti->tcpi_delivered_ce = tp->t_scep; | ti->tcpi_delivered_ce = tp->t_scep; | ||||
ti->tcpi_received_ce = tp->t_rcep; | ti->tcpi_received_ce = tp->t_rcep; | ||||
} | |||||
ti->tcpi_received_e0_bytes = tp->t_ae.re0b - 1; | |||||
ti->tcpi_received_e1_bytes = tp->t_ae.re1b - 1; | |||||
ti->tcpi_received_ce_bytes = tp->t_ae.rceb; | |||||
ti->tcpi_delivered_e0_bytes = tp->t_ae.se0b - 1; | |||||
ti->tcpi_delivered_e1_bytes = tp->t_ae.se1b - 1; | |||||
ti->tcpi_delivered_ce_bytes = tp->t_ae.sceb; | |||||
} | } | ||||
/* | /* | ||||
* tcp_ctloutput() must drop the inpcb lock before performing copyin on | * tcp_ctloutput() must drop the inpcb lock before performing copyin on | ||||
* socket option arguments. When it re-acquires the lock after the copy, it | * socket option arguments. When it re-acquires the lock after the copy, it | ||||
* has to revalidate that the connection is still valid for the socket | * has to revalidate that the connection is still valid for the socket | ||||
* option. | * option. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,528 Lines • Show Last 20 Lines |