Commit f0dfc4c
octeontx2-pf: Fix SQE threshold checking
Current way of checking available SQE count which is based on
HW updated SQB count could result in driver submitting an SQE
even before CQE for the previously transmitted SQE at the same
index is processed in NAPI resulting losing SKB pointers,
hence a leak. Fix this by checking a consumer index which
is updated once CQE is processed.
Fixes: 3ca6c4c ("octeontx2-pf: Add packet transmission support")
Signed-off-by: Ratheesh Kannoth <[email protected]>
Reviewed-by: Sunil Kovvuri Goutham <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>1 parent b0c09c7 commit f0dfc4c
File tree
3 files changed
+21
-13
lines changed- drivers/net/ethernet/marvell/octeontx2/nic
3 files changed
+21
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
| 901 | + | |
901 | 902 | | |
902 | 903 | | |
903 | 904 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
| |||
451 | 452 | | |
452 | 453 | | |
453 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
454 | 458 | | |
455 | 459 | | |
456 | 460 | | |
457 | 461 | | |
458 | 462 | | |
459 | 463 | | |
460 | 464 | | |
| 465 | + | |
461 | 466 | | |
462 | | - | |
463 | | - | |
464 | | - | |
| 467 | + | |
465 | 468 | | |
466 | | - | |
467 | | - | |
468 | | - | |
| 469 | + | |
| 470 | + | |
469 | 471 | | |
| 472 | + | |
470 | 473 | | |
471 | 474 | | |
472 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
473 | 479 | | |
474 | 480 | | |
475 | 481 | | |
| |||
1072 | 1078 | | |
1073 | 1079 | | |
1074 | 1080 | | |
1075 | | - | |
| 1081 | + | |
1076 | 1082 | | |
1077 | 1083 | | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
| 1084 | + | |
| 1085 | + | |
1081 | 1086 | | |
1082 | | - | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1083 | 1090 | | |
1084 | | - | |
1085 | | - | |
| 1091 | + | |
1086 | 1092 | | |
1087 | 1093 | | |
1088 | 1094 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
0 commit comments