-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/hns3: fix traffic management thread safety
[ upstream commit 69901040975bff8a38edfc47aee727cadc87d356 ] The driver-related TM (traffic management) info is implemented through the linked list. The following threads are involved in the read and write of the TM info: 1. main thread: invokes the rte_tm_xxx() API family to modify or read. 2. interrupt thread: will read TM info in reset recover process. Currently, thread safety protection of TM info is implemented only in the following operations: 1. some of the rte_tm_xxx() API's implementation. 2. reset recover process. Thread safety risks may exist in other scenarios, so fix by make sure all the rte_tm_xxx() API's implementations protected by hw.lock. Fixes: c09c784 ("net/hns3: support traffic management") Signed-off-by: Chengwen Feng <[email protected]> Signed-off-by: Dongdong Liu <[email protected]>
- Loading branch information
1 parent
2f4040d
commit 3b48ec6
Showing
1 changed file
with
150 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters