]> xenbits.xensource.com Git - freebsd.git/commitdiff
With the recent commit of ktls, we no longer have a
authorrrs <rrs@FreeBSD.org>
Wed, 11 Sep 2019 15:41:36 +0000 (15:41 +0000)
committerrrs <rrs@FreeBSD.org>
Wed, 11 Sep 2019 15:41:36 +0000 (15:41 +0000)
sb_tls_flags, its just the sb_flags. Also the ratelimit
code, now that the defintion is in sockbuf.h, does not
need the ktls.h file (or its predecessor).

Sponsored by: Netflix Inc

sys/netinet/tcp_ratelimit.c

index c722027850f48acdec3c08ed92cce78ecd17f173..bf04fcc9d96c84edc8223814376fcd074d24b519 100644 (file)
@@ -45,9 +45,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/mbuf.h>
 #include <sys/socket.h>
 #include <sys/socketvar.h>
-#ifdef KERN_TLS
-#include <sys/sockbuf_tls.h>
-#endif
 #include <sys/sysctl.h>
 #include <sys/eventhandler.h>
 #include <sys/mutex.h>
@@ -1069,7 +1066,7 @@ tcp_set_pacing_rate(struct tcpcb *tp, struct ifnet *ifp,
                        return (NULL);
                }
 #ifdef KERN_TLS
-               if (tp->t_inpcb->inp_socket->so_snd.sb_tls_flags & SB_TLS_IFNET) {
+               if (tp->t_inpcb->inp_socket->so_snd.sb_flags & SB_TLS_IFNET) {
                        /*
                         * We currently can't do both TLS and hardware
                         * pacing