Commit 53153cb
committed
net/bnxt: fix mutexes for multi-process
The BNXT driver supports secondary processes. Several mutexes live in
structures allocated in shared memory (dev_private and rte_zmalloc'd
structures) and must be initialized with PTHREAD_PROCESS_SHARED:
- flow_lock, def_cp_lock, health_check_lock, err_recovery_lock
in struct bnxt
- vfr_start_lock in rep_info
- txq_lock in struct bnxt_tx_queue
- bnxt_ulp_mutex in session state
- flow_db_lock in cfg_data
Bugzilla ID: 662
Fixes: 1cb3d39 ("net/bnxt: synchronize between flow related functions")
Fixes: 5526c80 ("net/bnxt: fix race between interrupt handler and dev config")
Fixes: b59e4be ("net/bnxt: fix VF representor port add")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Konstantin Ananyev <konstantin.ananyev@huawei.com>1 parent 9652d66 commit 53153cb
5 files changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5899 | 5899 | | |
5900 | 5900 | | |
5901 | 5901 | | |
5902 | | - | |
5903 | | - | |
5904 | | - | |
5905 | | - | |
| 5902 | + | |
| 5903 | + | |
| 5904 | + | |
| 5905 | + | |
5906 | 5906 | | |
5907 | 5907 | | |
5908 | 5908 | | |
| |||
6920 | 6920 | | |
6921 | 6921 | | |
6922 | 6922 | | |
6923 | | - | |
| 6923 | + | |
| 6924 | + | |
6924 | 6925 | | |
6925 | 6926 | | |
6926 | 6927 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1469 | 1469 | | |
1470 | 1470 | | |
1471 | 1471 | | |
1472 | | - | |
| 1472 | + | |
1473 | 1473 | | |
1474 | 1474 | | |
1475 | 1475 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
| 1041 | + | |
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
| |||
0 commit comments