aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_offload.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2019-10-08 21:34:06 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2019-10-08 21:34:06 +0000
commit9e14430d463ccd92a3acd5e82676ee3ccad8b0ef (patch)
treea04cfa4e909307db8e5bade6407d50314678e525 /sys/netinet/tcp_offload.c
parentfa43c5d49e09c9bab2f2e2dd2e895a81297a20aa (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_offload.c')
-rw-r--r--sys/netinet/tcp_offload.c11
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)
{