Use small lock to protect resources related to ethernet.#15668
Conversation
|
[Experimental Bot, please feedback here] No, this PR does not fully meet the NuttX requirements as described. While it provides some information, it's severely lacking in detail and completeness. Here's a breakdown of what's missing:
Example of a better Summary: "Currently, access to the ethernet transmit buffer and descriptor list is not thread-safe, leading to data corruption under heavy load (see issue #123). This PR introduces a small mutex lock to protect these critical sections, ensuring exclusive access and preventing race conditions. The lock is acquired before any modifications to the buffer or descriptor list and released immediately afterwards. This change is also relevant to the Example of a better Impact:
Example of better Testing:
Testing logs before change: Testing logs after change: |
Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
Note: Please adhere to Contributing Guidelines.
Summary
Use small lock to protect resources related to ethernet.
Impact
The underlying implementation of Ethernet.
Testing
CI