Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132619956
D27467.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27467.diff
View Options
Index: head/sys/dev/cxgbe/t4_main.c
===================================================================
--- head/sys/dev/cxgbe/t4_main.c
+++ head/sys/dev/cxgbe/t4_main.c
@@ -4917,9 +4917,22 @@
#endif
#ifdef KERN_TLS
- if (t4_kern_tls != 0 && sc->cryptocaps & FW_CAPS_CONFIG_TLSKEYS &&
- sc->toecaps & FW_CAPS_CONFIG_TOE)
- t4_enable_kern_tls(sc);
+ if (sc->cryptocaps & FW_CAPS_CONFIG_TLSKEYS &&
+ sc->toecaps & FW_CAPS_CONFIG_TOE) {
+ if (t4_kern_tls != 0)
+ t4_enable_kern_tls(sc);
+ else {
+ /*
+ * Limit TOE connections to 2 reassembly
+ * "islands". This is required for TOE TLS
+ * connections to downgrade to plain TOE
+ * connections if an unsupported TLS version
+ * or ciphersuite is used.
+ */
+ t4_tp_wr_bits_indirect(sc, A_TP_FRAG_CONFIG,
+ V_PASSMODE(M_PASSMODE), V_PASSMODE(2));
+ }
+ }
#endif
return (0);
}
Index: head/sys/dev/cxgbe/tom/t4_tls.c
===================================================================
--- head/sys/dev/cxgbe/tom/t4_tls.c
+++ head/sys/dev/cxgbe/tom/t4_tls.c
@@ -138,11 +138,19 @@
tls_stop_handshake_timer(toep);
- /* Operate in PDU extraction mode only. */
+ KASSERT(toep->tls.rx_key_addr == -1,
+ ("%s: tid %d has RX key", __func__, toep->tid));
+
+ /* Switch to plain TOE mode. */
t4_set_tls_tcb_field(toep, W_TCB_ULP_RAW,
- V_TCB_ULP_RAW(M_TCB_ULP_RAW),
- V_TCB_ULP_RAW(V_TF_TLS_ENABLE(1)));
+ V_TCB_ULP_RAW(V_TF_TLS_ENABLE(1)),
+ V_TCB_ULP_RAW(V_TF_TLS_ENABLE(0)));
+ t4_set_tls_tcb_field(toep, W_TCB_ULP_TYPE,
+ V_TCB_ULP_TYPE(M_TCB_ULP_TYPE), V_TCB_ULP_TYPE(ULP_MODE_NONE));
t4_clear_rx_quiesce(toep);
+
+ toep->flags &= ~TPF_FORCE_CREDITS;
+ toep->params.ulp_mode = ULP_MODE_NONE;
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 19, 12:05 PM (10 h, 52 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23924433
Default Alt Text
D27467.diff (1 KB)
Attached To
Mode
D27467: Fix downgrading of TOE TLS sockets to plain TOE.
Attached
Detach File
Event Timeline
Log In to Comment