Commit caa343e
bnxt_en: Enhance TX pri counters
The priority packet and byte counters in ethtool -S are returned by
the driver based on the pri2cos mapping. The assumption is that each
priority is mapped to one and only one hardware CoS queue. In a
special RoCE configuration, the FW uses combined CoS queue 0 and CoS
queue 1 for the priority mapped to CoS queue 0. In this special
case, we need to add the CoS queue 0 and CoS queue 1 counters for
the priority packet and byte counters.
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20251126215648.1885936-2-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 61dbc61 commit caa343e
3 files changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8506 | 8506 | | |
8507 | 8507 | | |
8508 | 8508 | | |
| 8509 | + | |
| 8510 | + | |
| 8511 | + | |
| 8512 | + | |
| 8513 | + | |
8509 | 8514 | | |
8510 | 8515 | | |
8511 | 8516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2424 | 2424 | | |
2425 | 2425 | | |
2426 | 2426 | | |
| 2427 | + | |
2427 | 2428 | | |
2428 | 2429 | | |
2429 | 2430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
692 | | - | |
| 691 | + | |
| 692 | + | |
693 | 693 | | |
| 694 | + | |
694 | 695 | | |
| 696 | + | |
| 697 | + | |
695 | 698 | | |
696 | 699 | | |
697 | | - | |
698 | | - | |
| 700 | + | |
| 701 | + | |
699 | 702 | | |
| 703 | + | |
700 | 704 | | |
| 705 | + | |
| 706 | + | |
701 | 707 | | |
702 | 708 | | |
703 | 709 | | |
| |||
0 commit comments