mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
Change hw_tls to a bool
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/512
This commit is contained in:
parent
499171a98c
commit
2f201df1f8
@ -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;
|
||||
|
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user