Commit 98ff668
committed
Merge: qed/qede: Fix scheduling while atomic
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4930
JIRA: https://issues.redhat.com/browse/RHEL-9751
Statistics read through bond interface via sysfs causes
below bug and traces as it triggers the bonding module to
collect the slave device statistics while holding the spinlock,
beneath that qede->qed driver statistics flow gets scheduled out
due to usleep_range() used in PTT acquire logic
Fix this by collecting the statistics asynchronously from a periodic
delayed work scheduled at default stats coalescing interval and return
the recent copy of statisitcs from .ndo_get_stats64(), also add ability
to configure/retrieve stats coalescing interval using below commands -
ethtool -C ethx stats-block-usecs <val>
ethtool -c ethx
Signed-off-by: John Meneghini <jmeneghi@redhat.com>
Approved-by: Ewan D. Milne <emilne@redhat.com>
Approved-by: Maurizio Lombardi <mlombard@redhat.com>
Approved-by: Michal Schmidt <mschmidt@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: Lucas Zampieri <lzampier@redhat.com>File tree
4 files changed
+60
-4
lines changed- drivers/net/ethernet/qlogic
- qede
- qed
4 files changed
+60
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1903 | 1903 | | |
1904 | 1904 | | |
1905 | 1905 | | |
1906 | | - | |
| 1906 | + | |
1907 | 1907 | | |
1908 | 1908 | | |
1909 | 1909 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
274 | 278 | | |
275 | 279 | | |
276 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
433 | 435 | | |
434 | 436 | | |
435 | 437 | | |
| |||
439 | 441 | | |
440 | 442 | | |
441 | 443 | | |
| 444 | + | |
| 445 | + | |
442 | 446 | | |
443 | 447 | | |
444 | 448 | | |
| |||
830 | 834 | | |
831 | 835 | | |
832 | 836 | | |
| 837 | + | |
833 | 838 | | |
834 | 839 | | |
835 | 840 | | |
| |||
843 | 848 | | |
844 | 849 | | |
845 | 850 | | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
846 | 864 | | |
847 | 865 | | |
848 | 866 | | |
| |||
2255 | 2273 | | |
2256 | 2274 | | |
2257 | 2275 | | |
2258 | | - | |
| 2276 | + | |
| 2277 | + | |
2259 | 2278 | | |
2260 | 2279 | | |
2261 | 2280 | | |
| |||
2306 | 2325 | | |
2307 | 2326 | | |
2308 | 2327 | | |
2309 | | - | |
| 2328 | + | |
| 2329 | + | |
2310 | 2330 | | |
2311 | 2331 | | |
2312 | 2332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
| |||
414 | 416 | | |
415 | 417 | | |
416 | 418 | | |
| 419 | + | |
| 420 | + | |
417 | 421 | | |
418 | 422 | | |
419 | 423 | | |
| |||
422 | 426 | | |
423 | 427 | | |
424 | 428 | | |
425 | | - | |
426 | 429 | | |
427 | 430 | | |
| 431 | + | |
| 432 | + | |
428 | 433 | | |
429 | 434 | | |
430 | 435 | | |
| |||
444 | 449 | | |
445 | 450 | | |
446 | 451 | | |
| 452 | + | |
| 453 | + | |
447 | 454 | | |
448 | 455 | | |
449 | 456 | | |
| |||
1073 | 1080 | | |
1074 | 1081 | | |
1075 | 1082 | | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
1076 | 1100 | | |
1077 | 1101 | | |
1078 | 1102 | | |
| |||
1092 | 1116 | | |
1093 | 1117 | | |
1094 | 1118 | | |
| 1119 | + | |
1095 | 1120 | | |
1096 | 1121 | | |
1097 | 1122 | | |
| |||
1282 | 1307 | | |
1283 | 1308 | | |
1284 | 1309 | | |
| 1310 | + | |
1285 | 1311 | | |
1286 | 1312 | | |
1287 | 1313 | | |
| |||
1306 | 1332 | | |
1307 | 1333 | | |
1308 | 1334 | | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
1309 | 1340 | | |
1310 | 1341 | | |
1311 | 1342 | | |
| |||
1374 | 1405 | | |
1375 | 1406 | | |
1376 | 1407 | | |
| 1408 | + | |
1377 | 1409 | | |
1378 | 1410 | | |
1379 | 1411 | | |
| |||
0 commit comments