Skip to contentSkip to conversation

Fix condition for showing MDI-X status

PATCH Applied [email protected] 2 participants 3 messages Nov 9, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover Fix condition for showing MDI-X status

From: Bastian Germann <[email protected]>

Fix a duplicate condition in the filter for showing MDI-X info. I am not intending to continue on this issue, so I am dropping the second patch (invalid for the current kernel side handling).

Changelog:
v2: - Collect the additional tags
- Drop the 2nd patch with the twisted pair port condition

Bastian Germann (1):
netlink: settings: Correct duplicate condition

 netlink/settings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.30.2
#1 lore raw

PATCH v2 1/1 netlink: settings: Correct duplicate condition

From: Bastian Germann <[email protected]>

tb's fields ETHTOOL_A_LINKINFO_TP_MDIX and ETHTOOL_A_LINKINFO_TP_MDIX_CTRL are used in this case. The condition is duplicate for the former. Fix that.

Fixes 10cc3ea337d1 ("netlink: partial netlink handler for gset (no option)")
---
 netlink/settings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
netlink/settings.c +1 -1
index 6d10a07..c4f5d61 100644
@@ -560,7 +560,7 @@ int linkinfo_reply_cb(const struct nlmsghdr *nlhdr, void *data)
 		print_enum(names_transceiver, ARRAY_SIZE(names_transceiver),
 			   val, "Transceiver");
 	}
-	if (tb[ETHTOOL_A_LINKINFO_TP_MDIX] && tb[ETHTOOL_A_LINKINFO_TP_MDIX] &&
+	if (tb[ETHTOOL_A_LINKINFO_TP_MDIX] && tb[ETHTOOL_A_LINKINFO_TP_MDIX_CTRL] &&
 	    port == PORT_TP) {
 		uint8_t mdix = mnl_attr_get_u8(tb[ETHTOOL_A_LINKINFO_TP_MDIX]);
 		uint8_t mdix_ctrl =
Signature · 1 line
2.30.2
#2 lore raw
In reply to [email protected]
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 11 lines · On Tue, 9 Nov 2021 18:21:24 +0100 you wrote:

From: Bastian Germann <[email protected]>

Fix a duplicate condition in the filter for showing MDI-X info. I am not intending to continue on this issue, so I am dropping the second patch (invalid for the current kernel side handling).

Changelog:
v2: - Collect the additional tags
- Drop the 2nd patch with the twisted pair port condition

[...]

Here is the summary with links:
- [ethtool,v2,1/1] netlink: settings: Correct duplicate condition

    https://git.kernel.org/pub/scm/network/ethtool/ethtool.git/commit/?id=fd7db6457916

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html