Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_offload.c
Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct toedev *tod = tp->tod; | struct toedev *tod = tp->tod; | ||||
KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); | KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); | ||||
INP_WLOCK_ASSERT(tp->t_inpcb); | INP_WLOCK_ASSERT(tp->t_inpcb); | ||||
tod->tod_pcb_detach(tod, tp); | tod->tod_pcb_detach(tod, tp); | ||||
} | } | ||||
void | |||||
tcp_offload_pmtu_update(struct tcpcb *tp, tcp_seq seq, int mtu) | |||||
{ | |||||
struct toedev *tod = tp->tod; | |||||
KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); | |||||
INP_WLOCK_ASSERT(tp->t_inpcb); | |||||
tod->tod_pmtu_update(tod, tp, seq, mtu); | |||||
} |