Commit e48766e
committed
Merge branch 'net-broadcom-migrate-to-get_rx_ring_count-ethtool-callback'
Breno Leitao says:
====================
net: broadcom: migrate to .get_rx_ring_count() ethtool callback
This series migrates Broadcom ethernet drivers to use the new
.get_rx_ring_count() ethtool callback introduced in commit 84eaf43
("net: ethtool: add get_rx_ring_count callback to optimize RX ring
queries").
This change simplifies the .get_rxnfc() implementation by
extracting the ETHTOOL_GRXRINGS case handling into a dedicated callback,
making the code cleaner and aligning these drivers with the updated
ethtool API.
The series covers two Broadcom drivers: bnxt and bcmgenet. Each patch
removes the ETHTOOL_GRXRINGS case from the driver's .get_rxnfc() switch
statement and implements the new .get_rx_ring_count() callback that
returns the number of RX rings.
====================
Link: https://patch.msgid.link/20251127-grxrings_broadcom-v1-0-b0b182864950@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>2 files changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1770 | 1770 | | |
1771 | 1771 | | |
1772 | 1772 | | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1773 | 1780 | | |
1774 | 1781 | | |
1775 | 1782 | | |
1776 | 1783 | | |
1777 | 1784 | | |
1778 | 1785 | | |
1779 | 1786 | | |
1780 | | - | |
1781 | | - | |
1782 | | - | |
1783 | | - | |
1784 | 1787 | | |
1785 | 1788 | | |
1786 | 1789 | | |
| |||
5616 | 5619 | | |
5617 | 5620 | | |
5618 | 5621 | | |
| 5622 | + | |
5619 | 5623 | | |
5620 | 5624 | | |
5621 | 5625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1640 | 1640 | | |
1641 | 1641 | | |
1642 | 1642 | | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
1643 | 1650 | | |
1644 | 1651 | | |
1645 | 1652 | | |
| |||
1649 | 1656 | | |
1650 | 1657 | | |
1651 | 1658 | | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | 1659 | | |
1656 | 1660 | | |
1657 | 1661 | | |
| |||
1700 | 1704 | | |
1701 | 1705 | | |
1702 | 1706 | | |
| 1707 | + | |
1703 | 1708 | | |
1704 | 1709 | | |
1705 | 1710 | | |
| |||
0 commit comments