Repository navigation
Commit 9e311e7
net/mlx4_en: Use affinity hint
The “affinity hint” mechanism is used by the user space
daemon, irqbalancer, to indicate a preferred CPU mask for irqs.
Irqbalancer can use this hint to balance the irqs between the
cpus indicated by the mask.
We wish the HCA to preferentially map the IRQs it uses to numa cores
close to it. To accomplish this, we use cpumask_set_cpu_local_first(), that
sets the affinity hint according the following policy:
First it maps IRQs to “close” numa cores. If these are exhausted, the
remaining IRQs are mapped to “far” numa cores.
Signed-off-by: Yuval Atias <yuvala@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent da91309 commit 9e311e7
3 files changed
Lines changed: 46 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
| |||
179 | 186 | | |
180 | 187 | | |
181 | 188 | | |
182 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
183 | 192 | | |
| 193 | + | |
184 | 194 | | |
185 | 195 | | |
186 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1526 | 1526 | | |
1527 | 1527 | | |
1528 | 1528 | | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
1529 | 1550 | | |
1530 | 1551 | | |
1531 | 1552 | | |
| |||
1567 | 1588 | | |
1568 | 1589 | | |
1569 | 1590 | | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
1570 | 1597 | | |
1571 | 1598 | | |
1572 | 1599 | | |
| 1600 | + | |
1573 | 1601 | | |
1574 | 1602 | | |
1575 | 1603 | | |
| |||
1578 | 1606 | | |
1579 | 1607 | | |
1580 | 1608 | | |
| 1609 | + | |
1581 | 1610 | | |
1582 | 1611 | | |
1583 | 1612 | | |
| |||
1715 | 1744 | | |
1716 | 1745 | | |
1717 | 1746 | | |
1718 | | - | |
| 1747 | + | |
1719 | 1748 | | |
| 1749 | + | |
| 1750 | + | |
1720 | 1751 | | |
1721 | 1752 | | |
1722 | 1753 | | |
| |||
1847 | 1878 | | |
1848 | 1879 | | |
1849 | 1880 | | |
| 1881 | + | |
| 1882 | + | |
1850 | 1883 | | |
1851 | 1884 | | |
1852 | 1885 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
| |||
0 commit comments