Commit f21ad61
net/mlx4_en: Add dynamic variable to hold the number of user priorities (UP)
Until this patch, the number of UPs was hard coded for eight.
Replace this with a variable in struct "mlx4_en_port_profile".
Currently, the variable will hold the maximum number of UP,
as before.
The patch creates an infrastructure to add an option for dynamic
change of the actual number of TCs.
Signed-off-by: Inbar Karmy <inbark@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Cc: Tarick Bedeir <tarick@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent cddbb79 commit f21ad61
File tree
5 files changed
+17
-13
lines changed- drivers/net/ethernet/mellanox/mlx4
5 files changed
+17
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1750 | 1750 | | |
1751 | 1751 | | |
1752 | 1752 | | |
1753 | | - | |
| 1753 | + | |
| 1754 | + | |
1754 | 1755 | | |
1755 | 1756 | | |
1756 | 1757 | | |
| |||
1773 | 1774 | | |
1774 | 1775 | | |
1775 | 1776 | | |
1776 | | - | |
| 1777 | + | |
| 1778 | + | |
1777 | 1779 | | |
1778 | 1780 | | |
1779 | 1781 | | |
1780 | | - | |
| 1782 | + | |
1781 | 1783 | | |
1782 | 1784 | | |
1783 | 1785 | | |
1784 | 1786 | | |
1785 | 1787 | | |
1786 | 1788 | | |
1787 | | - | |
| 1789 | + | |
1788 | 1790 | | |
1789 | 1791 | | |
1790 | 1792 | | |
| |||
1803 | 1805 | | |
1804 | 1806 | | |
1805 | 1807 | | |
1806 | | - | |
| 1808 | + | |
1807 | 1809 | | |
1808 | 1810 | | |
1809 | 1811 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
172 | 173 | | |
173 | | - | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
2780 | 2780 | | |
2781 | 2781 | | |
2782 | 2782 | | |
2783 | | - | |
| 2783 | + | |
2784 | 2784 | | |
2785 | 2785 | | |
2786 | 2786 | | |
| |||
3271 | 3271 | | |
3272 | 3272 | | |
3273 | 3273 | | |
3274 | | - | |
| 3274 | + | |
3275 | 3275 | | |
3276 | 3276 | | |
3277 | 3277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
| |||
485 | 486 | | |
486 | 487 | | |
487 | 488 | | |
488 | | - | |
| 489 | + | |
489 | 490 | | |
490 | 491 | | |
491 | 492 | | |
| |||
0 commit comments