Commit cb97b37
RDMA/bnxt_re: Refurbish CQ to NQ hash calculation
There are few use cases where CQ create and destroy
is seen before re-creating the CQ, this kind of use
case is disturbing the RR distribution and all the
active CQ getting mapped to only 2 NQ alternatively.
Fixing the CQ to NQ hash calculation by implementing
a quick load sorting mechanism under a mutex.
Using this, if the CQ was allocated and destroyed
before using it, the nq selecting algorithm still
obtains the least loaded CQ. Thus balancing the load
on NQs.
Signed-off-by: Selvin Xavier <[email protected]>
Signed-off-by: Kalesh AP <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>1 parent 30b8713 commit cb97b37
File tree
5 files changed
+32
-11
lines changed- drivers/infiniband/hw/bnxt_re
5 files changed
+32
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3029 | 3029 | | |
3030 | 3030 | | |
3031 | 3031 | | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
3032 | 3054 | | |
3033 | 3055 | | |
3034 | 3056 | | |
| |||
3047 | 3069 | | |
3048 | 3070 | | |
3049 | 3071 | | |
| 3072 | + | |
| 3073 | + | |
3050 | 3074 | | |
3051 | 3075 | | |
3052 | 3076 | | |
| |||
3065 | 3089 | | |
3066 | 3090 | | |
3067 | 3091 | | |
3068 | | - | |
3069 | | - | |
3070 | 3092 | | |
3071 | 3093 | | |
3072 | 3094 | | |
| |||
3117 | 3139 | | |
3118 | 3140 | | |
3119 | 3141 | | |
3120 | | - | |
3121 | | - | |
3122 | | - | |
3123 | | - | |
3124 | | - | |
3125 | | - | |
3126 | 3142 | | |
3127 | | - | |
3128 | | - | |
3129 | 3143 | | |
| 3144 | + | |
| 3145 | + | |
3130 | 3146 | | |
3131 | 3147 | | |
3132 | 3148 | | |
| |||
3136 | 3152 | | |
3137 | 3153 | | |
3138 | 3154 | | |
3139 | | - | |
3140 | 3155 | | |
3141 | 3156 | | |
3142 | 3157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1566 | 1566 | | |
1567 | 1567 | | |
1568 | 1568 | | |
| 1569 | + | |
| 1570 | + | |
1569 | 1571 | | |
1570 | 1572 | | |
1571 | 1573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
554 | 555 | | |
555 | 556 | | |
556 | 557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| 522 | + | |
522 | 523 | | |
523 | 524 | | |
524 | 525 | | |
| |||
0 commit comments