| 198 | } |
| 199 | |
| 200 | int |
| 201 | tcp_offload_alloc_tls_session(struct tcpcb *tp, struct ktls_session *tls, |
| 202 | int direction) |
| 203 | { |
| 204 | struct toedev *tod = tp->tod; |
| 205 | |
| 206 | KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); |
| 207 | INP_WLOCK_ASSERT(tp->t_inpcb); |
| 208 | |
| 209 | return (tod->tod_alloc_tls_session(tod, tp, tls, direction)); |
| 210 | } |
| 211 | |
| 212 | void |
| 213 | tcp_offload_detach(struct tcpcb *tp) |