Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153151390
D23989.id69271.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
D23989.id69271.diff
View Options
Index: sys/dev/cxgbe/tom/t4_tom.h
===================================================================
--- sys/dev/cxgbe/tom/t4_tom.h
+++ sys/dev/cxgbe/tom/t4_tom.h
@@ -73,6 +73,7 @@
TPF_SYNQE_EXPANDED = (1 << 9), /* toepcb ready, tid context updated */
TPF_FORCE_CREDITS = (1 << 10), /* always send credits */
TPF_KTLS = (1 << 11), /* send TLS records from KTLS */
+ TPF_INITIALIZED = (1 << 12), /* init_toepcb has been called */
};
enum {
Index: sys/dev/cxgbe/tom/t4_tom.c
===================================================================
--- sys/dev/cxgbe/tom/t4_tom.c
+++ sys/dev/cxgbe/tom/t4_tom.c
@@ -187,6 +187,8 @@
if (ulp_mode(toep) == ULP_MODE_TCPDDP)
ddp_init_toep(toep);
+ toep->flags |= TPF_INITIALIZED;
+
return (0);
}
@@ -210,9 +212,11 @@
KASSERT(!(toep->flags & TPF_CPL_PENDING),
("%s: CPL pending", __func__));
- if (ulp_mode(toep) == ULP_MODE_TCPDDP)
- ddp_uninit_toep(toep);
- tls_uninit_toep(toep);
+ if (toep->flags & TPF_INITIALIZED) {
+ if (ulp_mode(toep) == ULP_MODE_TCPDDP)
+ ddp_uninit_toep(toep);
+ tls_uninit_toep(toep);
+ }
free(toep, M_CXGBE);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 12:07 PM (6 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31838329
Default Alt Text
D23989.id69271.diff (1 KB)
Attached To
Mode
D23989: cxgbe/t4_tom: Do not uninitialize a toepcb that has not been initialized.
Attached
Detach File
Event Timeline
Log In to Comment