nfp: update ethtool reporting of pauseframe control
Subsystems (3)
PATCH 1/1 nfp: update ethtool reporting of pauseframe control
From: Fei Qin <[email protected]>
Pauseframe control is set to symmetric mode by default on the NFP. Pause frames can not be configured through ethtool now, but ethtool can report the supported mode.
--- drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +2 -0
@@ -286,6 +286,8 @@ nfp_net_get_link_ksettings(struct net_device *netdev,/* Init to unknowns */ ethtool_link_ksettings_add_link_mode (cmd, supported,FIBRE ); +ethtool_link_ksettings_add_link_mode (cmd, supported, Pause); +ethtool_link_ksettings_add_link_mode (cmd, advertising, Pause); cmd->base.port =PORT_OTHER ; cmd->base.speed =SPEED_UNKNOWN ; cmd->base.duplex =DUPLEX_UNKNOWN ;
Signature · 1 line
2.20.1
This patch was applied to netdev/net.git (refs/heads/master):
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
Quoted 6 lines · On Tue, 3 Aug 2021 12:39:11 +0200 you wrote:
From: Fei Qin <[email protected]>
Pauseframe control is set to symmetric mode by default on the NFP. Pause frames can not be configured through ethtool now, but ethtool can report the supported mode.
Quoted 6 lines
Fixes 265aeb511bd5 ("nfp: add support for .get_link_ksettings()")Signed-off-by Fei Qin <[email protected]>Signed-off-by Louis Peens <[email protected]>Signed-off-by Simon Horman <[email protected]>[...]
Here is the summary with links:
- [net] nfp: update ethtool reporting of pauseframe control
https://git.kernel.org/netdev/net/c/9fdc5d85a8fe
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Quoted 19 lines · Simon Horman
From: Fei Qin <[email protected]>
Pauseframe control is set to symmetric mode by default on the NFP. Pause frames can not be configured through ethtool now, but ethtool can report the supported mode.
Fixes 265aeb511bd5 ("nfp: add support for .get_link_ksettings()")Signed-off-by Fei Qin <[email protected]>Signed-off-by Louis Peens <[email protected]>Signed-off-by Simon Horman <[email protected]>--- drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +0
-0
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c nfp_net_get_link_ksettings(struct net_device *netdev, · line 290
Quoted 5 lines
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +2
-0@@ -286,6 +286,8 @@ nfp_net_get_link_ksettings(struct net_device *netdev,/* Init to unknowns */ ethtool_link_ksettings_add_link_mode (cmd, supported,FIBRE ); +ethtool_link_ksettings_add_link_mode (cmd, supported, Pause); +ethtool_link_ksettings_add_link_mode (cmd, advertising, Pause);
Hi Simon
Does it act on the results of the pause auto-neg? If the link peer says it does not support pause, will it turn pause off?
Andrew
Quoted 28 lines · Andrew Lunn
Quoted 19 lines · Simon Horman
From: Fei Qin <[email protected]>
Pauseframe control is set to symmetric mode by default on the NFP. Pause frames can not be configured through ethtool now, but ethtool can report the supported mode.
Fixes 265aeb511bd5 ("nfp: add support for .get_link_ksettings()")Signed-off-by Fei Qin <[email protected]>Signed-off-by Louis Peens <[email protected]>Signed-off-by Simon Horman <[email protected]>--- drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +0
-0drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c nfp_net_get_link_ksettings(struct net_device *netdev, · line 290
Quoted 5 lines
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +2
-0@@ -286,6 +286,8 @@ nfp_net_get_link_ksettings(struct net_device *netdev,/* Init to unknowns */ ethtool_link_ksettings_add_link_mode (cmd, supported,FIBRE ); +ethtool_link_ksettings_add_link_mode (cmd, supported, Pause); +ethtool_link_ksettings_add_link_mode (cmd, advertising, Pause);Hi Simon
Quoted 2 lines
Does it act on the results of the pause auto-neg? If the link peer says it does not support pause, will it turn pause off?
Thanks Andrew,
I'll try and get an answer to that question for you.
Quoted 29 lines · Simon Horman
Quoted 28 lines · Andrew Lunn
Quoted 19 lines · Simon Horman
From: Fei Qin <[email protected]>
Pauseframe control is set to symmetric mode by default on the NFP. Pause frames can not be configured through ethtool now, but ethtool can report the supported mode.
Fixes 265aeb511bd5 ("nfp: add support for .get_link_ksettings()")Signed-off-by Fei Qin <[email protected]>Signed-off-by Louis Peens <[email protected]>Signed-off-by Simon Horman <[email protected]>--- drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +0
-0drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c nfp_net_get_link_ksettings(struct net_device *netdev, · line 290
Quoted 5 lines
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +2
-0@@ -286,6 +286,8 @@ nfp_net_get_link_ksettings(struct net_device *netdev,/* Init to unknowns */ ethtool_link_ksettings_add_link_mode (cmd, supported,FIBRE ); +ethtool_link_ksettings_add_link_mode (cmd, supported, Pause); +ethtool_link_ksettings_add_link_mode (cmd, advertising, Pause);Hi Simon
Quoted 6 lines
Quoted 2 lines
Does it act on the results of the pause auto-neg? If the link peer says it does not support pause, will it turn pause off?
Thanks Andrew,
I'll try and get an answer to that question for you.
Hi Andrew,
The simple answer to those questions is no.
Quoted 33 lines · Simon Horman
Quoted 32 lines · Simon Horman
Quoted 30 lines · Andrew Lunn
Quoted 19 lines · Simon Horman
From: Fei Qin <[email protected]>
Pauseframe control is set to symmetric mode by default on the NFP. Pause frames can not be configured through ethtool now, but ethtool can report the supported mode.
Fixes 265aeb511bd5 ("nfp: add support for .get_link_ksettings()")Signed-off-by Fei Qin <[email protected]>Signed-off-by Louis Peens <[email protected]>Signed-off-by Simon Horman <[email protected]>--- drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +0
-0drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c nfp_net_get_link_ksettings(struct net_device *netdev, · line 290
Quoted 5 lines
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +2
-0@@ -286,6 +286,8 @@ nfp_net_get_link_ksettings(struct net_device *netdev,/* Init to unknowns */ ethtool_link_ksettings_add_link_mode (cmd, supported,FIBRE ); +ethtool_link_ksettings_add_link_mode (cmd, supported, Pause); +ethtool_link_ksettings_add_link_mode (cmd, advertising, Pause);Hi Simon
Does it act on the results of the pause auto-neg? If the link peer says it does not support pause, will it turn pause off?
Quoted 7 lines
Quoted 3 lines
Thanks Andrew,
I'll try and get an answer to that question for you.
Hi Andrew,
The simple answer to those questions is no.
Hi Simon
Then please send a patch removing Pause from advertising, and ensure your PHY, SERDES etc, does not advertise it.
It seems like all the smart NICs get pause wrong.
Andrew