-
Notifications
You must be signed in to change notification settings - Fork 6
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 6990104 ] 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
88ddc5f
commit 9d2cc6c
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