]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: mana: Add get_link and get_link_ksettings in ethtool
authorErni Sri Satya Vennela <ernis@linux.microsoft.com>
Mon, 30 Sep 2024 05:42:14 +0000 (22:42 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 3 Oct 2024 11:47:26 +0000 (13:47 +0200)
commitc30a3f54e661d01df2bf193398336155089dd502
treea491d34ec787a8df68500dc803f44945830e86b6
parente26a0c5d828b225b88f534e2fcf10bf617f85f23
net: mana: Add get_link and get_link_ksettings in ethtool

Add support for the ethtool get_link and get_link_ksettings
operations. Display standard port information using ethtool.

Before the change:
$ethtool enP30832s1
> No data available

After the change:
$ethtool enP30832s1
> Settings for enP30832s1:
        Supported ports: [  ]
        Supported link modes:   Not reported
        Supported pause frame use: No
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: Unknown!
        Duplex: Full
        Auto-negotiation: off
        Port: Other
        PHYAD: 0
        Transceiver: internal
        Link detected: yes

Signed-off-by: Erni Sri Satya Vennela <ernis@linux.microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/1727674934-12130-1-git-send-email-ernis@linux.microsoft.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microsoft/mana/mana_ethtool.c