diff options
| author | Yang You (UU) <[email protected]> | 2025-12-09 11:03:15 -0800 |
|---|---|---|
| committer | Yang You (UU) <[email protected]> | 2025-12-09 11:03:15 -0800 |
| commit | a3e68cdfb094c7c5cf4f2a12b8be248053313d87 (patch) | |
| tree | 7a4dc05a8e83719618c941eb5c6bd4de1a7b8d5f /network/netadaptercx/netvadapterlibrary/code/enl.cpp | |
| parent | eb4a87e545f33af410b15c6c86100c165c0eda2a (diff) | |
fix the TX Queue not create issue
Diffstat (limited to 'network/netadaptercx/netvadapterlibrary/code/enl.cpp')
| -rw-r--r-- | network/netadaptercx/netvadapterlibrary/code/enl.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/network/netadaptercx/netvadapterlibrary/code/enl.cpp b/network/netadaptercx/netvadapterlibrary/code/enl.cpp index fb763330..a02fd43f 100644 --- a/network/netadaptercx/netvadapterlibrary/code/enl.cpp +++ b/network/netadaptercx/netvadapterlibrary/code/enl.cpp @@ -546,13 +546,12 @@ EnlCreateQueue( } // Create WDF spinlock for the queue, parent to the queue's WDF handle - { - WDF_OBJECT_ATTRIBUTES attributes; - WDF_OBJECT_ATTRIBUTES_INIT(&attributes); - attributes.ParentObject = enlQueue->Queue->m_handle; - status = WdfSpinLockCreate(&attributes, &enlQueue->Spinlock); - NT_ASSERT(NT_SUCCESS(status)); - } + WDF_OBJECT_ATTRIBUTES attributes; + WDF_OBJECT_ATTRIBUTES_INIT(&attributes); + attributes.ParentObject = enlQueue->Queue->m_handle; + status = WdfSpinLockCreate(&attributes, &enlQueue->Spinlock); + NT_ASSERT(NT_SUCCESS(status)); + EnlpResumeThread(&enlLink->EnlThread); @@ -668,10 +667,9 @@ EnlIsPortActive( { ENLP_PORT* port = &EnlLink->Ports[PortIndex]; ENLP_QUEUE* txq = &port->TxQueue[0]; - ENLP_QUEUE* rxq = &port->RxQueue[0]; NT_FRE_ASSERT(PortIndex < ENLP_PORT_COUNT); - return (txq->Queue == nullptr && rxq->Queue == nullptr) ? FALSE : TRUE; + return (txq->Queue == nullptr) ? FALSE : TRUE; } _IRQL_requires_max_(PASSIVE_LEVEL) |
