i40e: remove fake support of rx-frames-irq
Subsystems (3)
Tony Nguyen
maintainerPATCH v2 1/1 i40e: remove fake support of rx-frames-irq
From: Jason Xing <[email protected]>
Since we never support this feature for I40E driver, we don't have to display the value when using 'ethtool -c eth0'.
Before this patch applied, the rx-frames-irq is 256 which is consistent with tx-frames-irq. Apparently it could mislead users.
---
v2:
- use the correct params in i40e_ethtool.c file as suggested by Jakub.
v1 :https://lore.kernel.org/netdev/[email protected]/
drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +2 -3
@@ -2893,7 +2893,6 @@ static int __i40e_get_coalesce(struct net_device *netdev,struct i40e_vsi *vsi = np->vsi; ec->tx_max_coalesced_frames_irq = vsi->work_limit; - ec->rx_max_coalesced_frames_irq = vsi->work_limit;/* rx and tx usecs has per queue value. If user doesn't specify the * queue, return queue 0's value to represent.
@@ -3027,7 +3026,7 @@ static int __i40e_set_coalesce(struct net_device *netdev,struct i40e_pf *pf = vsi->back;int i; -if (ec->tx_max_coalesced_frames_irq || ec->rx_max_coalesced_frames_irq) +if (ec->tx_max_coalesced_frames_irq) vsi->work_limit = ec->tx_max_coalesced_frames_irq;if (queue <0 ) {
@@ -5786,7 +5785,7 @@ static const struct ethtool_ops i40e_ethtool_recovery_mode_ops = {static const struct ethtool_ops i40e_ethtool_ops = { .supported_coalesce_params =ETHTOOL_COALESCE_USECS | -ETHTOOL_COALESCE_MAX_FRAMES_IRQ | +ETHTOOL_COALESCE_TX_MAX_FRAMES_IRQ |ETHTOOL_COALESCE_USE_ADAPTIVE |ETHTOOL_COALESCE_RX_USECS_HIGH |ETHTOOL_COALESCE_TX_USECS_HIGH ,
Signature · 1 line
2.41.0
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Wed, 13 Dec 2023 10:44:05 -0800 you wrote:
From: Jason Xing <[email protected]>
Since we never support this feature for I40E driver, we don't have to display the value when using 'ethtool -c eth0'.
Before this patch applied, the rx-frames-irq is 256 which is consistent with tx-frames-irq. Apparently it could mislead users.
[...]
Here is the summary with links:
- [net-next,v2] i40e: remove fake support of rx-frames-irq
https://git.kernel.org/netdev/net-next/c/8d182d5869b3
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html