Commit 479cdfe
ice: Fix tx queue rate limit when TCs are configured
Configuring tx_maxrate via sysfs interface
/sys/class/net/eth0/queues/tx-1/tx_maxrate was not working when
TCs are configured because always main VSI was being used. Fix by
using correct VSI in ice_set_tx_maxrate when TCs are configured.
Fixes: 1ddef45 ("ice: Add NDO callback to set the maximum per-queue bitrate")
Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Tested-by: Bharathi Sreenivas <bharathi.sreenivas@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent 5f16da6 commit 479cdfe
3 files changed
Lines changed: 19 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5739 | 5739 | | |
5740 | 5740 | | |
5741 | 5741 | | |
| 5742 | + | |
| 5743 | + | |
| 5744 | + | |
| 5745 | + | |
| 5746 | + | |
| 5747 | + | |
| 5748 | + | |
5742 | 5749 | | |
5743 | 5750 | | |
5744 | 5751 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
| 753 | + | |
754 | 754 | | |
755 | | - | |
756 | | - | |
757 | | - | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
758 | 758 | | |
759 | | - | |
760 | | - | |
761 | | - | |
| 759 | + | |
| 760 | + | |
762 | 761 | | |
763 | | - | |
| 762 | + | |
764 | 763 | | |
765 | 764 | | |
766 | 765 | | |
| |||
770 | 769 | | |
771 | 770 | | |
772 | 771 | | |
773 | | - | |
774 | 772 | | |
775 | 773 | | |
776 | 774 | | |
| |||
812 | 810 | | |
813 | 811 | | |
814 | 812 | | |
| 813 | + | |
815 | 814 | | |
816 | 815 | | |
817 | 816 | | |
| |||
840 | 839 | | |
841 | 840 | | |
842 | 841 | | |
843 | | - | |
| 842 | + | |
| 843 | + | |
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| |||
1716 | 1716 | | |
1717 | 1717 | | |
1718 | 1718 | | |
1719 | | - | |
| 1719 | + | |
1720 | 1720 | | |
1721 | 1721 | | |
1722 | 1722 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
0 commit comments