ktls: Fix comments & whitespace issues with c0e4090e3d
Address some last minute review feedback on c0e4090e3d
by fixing spacing around comments, and clarifying that the
newly added destroy_task is not related to tls 1.0.
No functional change intended.
Pointed out by: jhb
Sponsored by: Netflix
This commit is contained in:
parent
e9eee0f256
commit
d24b032bec
@ -1478,6 +1478,7 @@ ktls_set_tx_mode(struct socket *so, int mode)
|
||||
/* Don't allow enabling ifnet ktls multiple times */
|
||||
if (tp->t_nic_ktls_xmit)
|
||||
return (EALREADY);
|
||||
|
||||
/*
|
||||
* Don't enable ifnet ktls if we disabled it due to an
|
||||
* excessive retransmission rate
|
||||
@ -1850,7 +1851,6 @@ ktls_destroy(struct ktls_session *tls)
|
||||
* know that we don't hold the inp rlock, and
|
||||
* can safely take the wlock
|
||||
*/
|
||||
|
||||
if (curthread->td_rw_rlocks == 0) {
|
||||
INP_WLOCK(inp);
|
||||
} else {
|
||||
@ -3335,6 +3335,7 @@ ktls_disable_ifnet(void *arg)
|
||||
SOCK_UNLOCK(so);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* note that t_nic_ktls_xmit_dis is never cleared; disabling
|
||||
* ifnet can only be done once per connection, so we never want
|
||||
|
@ -201,6 +201,8 @@ struct ktls_session {
|
||||
/* Only used for TLS 1.0. */
|
||||
uint64_t next_seqno;
|
||||
STAILQ_HEAD(, mbuf) pending_records;
|
||||
|
||||
/* Used to destroy any kTLS session */
|
||||
struct task destroy_task;
|
||||
} __aligned(CACHE_LINE_SIZE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user