Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_output.c
Show First 20 Lines • Show All 853 Lines • ▼ Show 20 Lines | if (tso) { | ||||
u_int if_hw_tsomaxsegsize; | u_int if_hw_tsomaxsegsize; | ||||
struct mbuf *mb; | struct mbuf *mb; | ||||
u_int moff; | u_int moff; | ||||
int max_len; | int max_len; | ||||
/* extract TSO information */ | /* extract TSO information */ | ||||
if_hw_tsomax = tp->t_tsomax; | if_hw_tsomax = tp->t_tsomax; | ||||
if_hw_tsomaxsegcount = tp->t_tsomaxsegcount; | if_hw_tsomaxsegcount = tp->t_tsomaxsegcount; | ||||
if_hw_tsomaxsegsize = tp->t_tsomaxsegsize; | if_hw_tsomaxsegsize = min(tp->t_tsomaxsegsize, | ||||
tp->t_maxseg - optlen); | |||||
/* | /* | ||||
* Limit a TSO burst to prevent it from | * Limit a TSO burst to prevent it from | ||||
* overflowing or exceeding the maximum length | * overflowing or exceeding the maximum length | ||||
* allowed by the network interface: | * allowed by the network interface: | ||||
*/ | */ | ||||
KASSERT(ipoptlen == 0, | KASSERT(ipoptlen == 0, | ||||
("%s: TSO can't do IP options", __func__)); | ("%s: TSO can't do IP options", __func__)); | ||||
▲ Show 20 Lines • Show All 944 Lines • Show Last 20 Lines |