Commit a0c5393
committed
Merge branch 'lockless-qdisc-packet-stuck'
Yunsheng Lin says:
====================
ix packet stuck problem for lockless qdisc
This patchset fixes the packet stuck problem mentioned in [1].
Patch 1: Add STATE_MISSED flag to fix packet stuck problem.
Patch 2: Fix a tx_action rescheduling problem after STATE_MISSED
flag is added in patch 1.
Patch 3: Fix the significantly higher CPU consumption problem when
multiple threads are competing on a saturated outgoing
device.
V8: Change function name as suggested by Jakub and fix some typo
in patch 3, adjust commit log in patch 2, and add Acked-by
from Jakub.
V7: Fix netif_tx_wake_queue() data race noted by Jakub.
V6: Some performance optimization in patch 1 suggested by Jakub
and drop NET_XMIT_DROP checking in patch 3.
V5: add patch 3 to fix the problem reported by Michal Kubecek.
V4: Change STATE_NEED_RESCHEDULE to STATE_MISSED and add patch 2.
[1]. https://lkml.org/lkml/2019/10/9/42
====================
Signed-off-by: David S. Miller <davem@davemloft.net>File tree
4 files changed
+107
-14
lines changed- include/net
- net
- core
- sched
4 files changed
+107
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 131 | + | |
137 | 132 | | |
138 | 133 | | |
139 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
162 | 186 | | |
163 | 187 | | |
| 188 | + | |
| 189 | + | |
164 | 190 | | |
165 | 191 | | |
166 | 192 | | |
| |||
176 | 202 | | |
177 | 203 | | |
178 | 204 | | |
179 | | - | |
| 205 | + | |
180 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
181 | 214 | | |
182 | 215 | | |
183 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3853 | 3853 | | |
3854 | 3854 | | |
3855 | 3855 | | |
3856 | | - | |
| 3856 | + | |
| 3857 | + | |
3857 | 3858 | | |
3858 | 3859 | | |
3859 | 3860 | | |
| |||
5025 | 5026 | | |
5026 | 5027 | | |
5027 | 5028 | | |
| 5029 | + | |
| 5030 | + | |
5028 | 5031 | | |
5029 | 5032 | | |
5030 | 5033 | | |
5031 | 5034 | | |
5032 | 5035 | | |
5033 | 5036 | | |
5034 | | - | |
5035 | | - | |
5036 | | - | |
5037 | | - | |
5038 | 5037 | | |
5039 | 5038 | | |
5040 | 5039 | | |
5041 | 5040 | | |
| 5041 | + | |
| 5042 | + | |
| 5043 | + | |
| 5044 | + | |
| 5045 | + | |
| 5046 | + | |
| 5047 | + | |
| 5048 | + | |
| 5049 | + | |
| 5050 | + | |
| 5051 | + | |
| 5052 | + | |
| 5053 | + | |
| 5054 | + | |
| 5055 | + | |
| 5056 | + | |
| 5057 | + | |
| 5058 | + | |
5042 | 5059 | | |
5043 | 5060 | | |
5044 | 5061 | | |
5045 | 5062 | | |
5046 | 5063 | | |
| 5064 | + | |
| 5065 | + | |
5047 | 5066 | | |
5048 | 5067 | | |
5049 | 5068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
38 | 57 | | |
39 | 58 | | |
40 | 59 | | |
| |||
74 | 93 | | |
75 | 94 | | |
76 | 95 | | |
| 96 | + | |
77 | 97 | | |
78 | 98 | | |
79 | 99 | | |
| |||
242 | 262 | | |
243 | 263 | | |
244 | 264 | | |
| 265 | + | |
245 | 266 | | |
246 | 267 | | |
247 | 268 | | |
| |||
251 | 272 | | |
252 | 273 | | |
253 | 274 | | |
254 | | - | |
| 275 | + | |
| 276 | + | |
255 | 277 | | |
| 278 | + | |
256 | 279 | | |
257 | 280 | | |
258 | 281 | | |
| |||
311 | 334 | | |
312 | 335 | | |
313 | 336 | | |
| 337 | + | |
| 338 | + | |
314 | 339 | | |
315 | 340 | | |
316 | 341 | | |
| |||
640 | 665 | | |
641 | 666 | | |
642 | 667 | | |
| 668 | + | |
643 | 669 | | |
644 | 670 | | |
| 671 | + | |
645 | 672 | | |
646 | 673 | | |
647 | 674 | | |
| |||
652 | 679 | | |
653 | 680 | | |
654 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
655 | 699 | | |
656 | 700 | | |
657 | 701 | | |
| |||
1158 | 1202 | | |
1159 | 1203 | | |
1160 | 1204 | | |
1161 | | - | |
| 1205 | + | |
| 1206 | + | |
1162 | 1207 | | |
| 1208 | + | |
1163 | 1209 | | |
1164 | 1210 | | |
1165 | 1211 | | |
| |||
0 commit comments