Page MenuHomeFreeBSD

D23989.id69271.diff
No OneTemporary

D23989.id69271.diff

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

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)

Event Timeline