netlink: settings: Fix for wrong auto-negotiation state
Subsystems (2)
PATCH v2 1/1 netlink: settings: Fix for wrong auto-negotiation state
Auto-negotiation state in json format showed the opposite state due to wrong comparison.
Fix for returning the correct auto-neg state implemented.
---
Changes in v2:
Used simpler comparison statement for checking
auto-negotiation.
Link to v1:https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/
---
--- netlink/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
netlink/settings.c +1 -1
@@ -546,7 +546,7 @@ int linkmodes_reply_cb(const struct nlmsghdr *nlhdr, void *data) (autoneg == AUTONEG_DISABLE) ? "off" : "on"); else print_bool(PRINT_JSON, "auto-negotiation", NULL, - autoneg == AUTONEG_DISABLE); + autoneg != AUTONEG_DISABLE); }if (tb[ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG ]) {uint8_t val;
Signature · 1 line
2.43.0
This patch was applied to ethtool/ethtool.git (master) by Michal Kubecek <[email protected]>:
Hello:
This patch was applied to ethtool/ethtool.git (master) by Michal Kubecek <[email protected]>:
Quoted 4 lines · On Mon, 4 Nov 2024 04:04:07 +0530 you wrote:
Auto-negotiation state in json format showed the opposite state due to wrong comparison.
Fix for returning the correct auto-neg state implemented.
Quoted 8 lines
Signed-off-by Mohan Prasad J <[email protected]>---
Changes in v2:
Used simpler comparison statement for checking
auto-negotiation.
Link to v1:https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/[...]
Here is the summary with links:
- [ethtool,v2] netlink: settings: Fix for wrong auto-negotiation state
https://git.kernel.org/pub/scm/network/ethtool/ethtool.git/commit/?id=9b2f6b94132d
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html