diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2019-10-08 21:34:06 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2019-10-08 21:34:06 +0000 |
| commit | 9e14430d463ccd92a3acd5e82676ee3ccad8b0ef (patch) | |
| tree | a04cfa4e909307db8e5bade6407d50314678e525 /sys/netinet/tcp_offload.c | |
| parent | fa43c5d49e09c9bab2f2e2dd2e895a81297a20aa (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_offload.c')
| -rw-r--r-- | sys/netinet/tcp_offload.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/netinet/tcp_offload.c b/sys/netinet/tcp_offload.c index 7e0bab70e037..60fb78e435b4 100644 --- a/sys/netinet/tcp_offload.c +++ b/sys/netinet/tcp_offload.c @@ -178,6 +178,17 @@ tcp_offload_tcp_info(struct tcpcb *tp, struct tcp_info *ti) tod->tod_tcp_info(tod, tp, ti); } +int +tcp_offload_alloc_tls_session(struct tcpcb *tp, struct ktls_session *tls) +{ + struct toedev *tod = tp->tod; + + KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); + INP_WLOCK_ASSERT(tp->t_inpcb); + + return (tod->tod_alloc_tls_session(tod, tp, tls)); +} + void tcp_offload_detach(struct tcpcb *tp) { |
