Change hw_tls to a bool

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/512
This commit is contained in:
Alfonso 2021-07-20 16:17:28 -04:00 committed by Warner Losh
parent 499171a98c
commit 2f201df1f8
2 changed files with 2 additions and 4 deletions

View File

@ -222,9 +222,7 @@ tcp_default_output(struct tcpcb *tp)
#endif
#ifdef INET6
struct ip6_hdr *ip6 = NULL;
int isipv6;
isipv6 = (inp->inp_vflag & INP_IPV6) != 0;
const bool isipv6 = (inp->inp_vflag & INP_IPV6) != 0;
#endif
#ifdef KERN_TLS
const bool hw_tls = tp->t_nic_ktls_xmit != 0;

View File

@ -1283,7 +1283,7 @@ tcp_set_flags(struct tcphdr *th, uint16_t flags)
static inline void
tcp_account_for_send(struct tcpcb *tp, uint32_t len, uint8_t is_rxt,
uint8_t is_tlp, int hw_tls)
uint8_t is_tlp, bool hw_tls)
{
if (is_tlp) {
tp->t_sndtlppack++;