net/mlx5e: IPoIB, Add support for get_link_ksettings in ethtool
authorShalom Lagziel <shaloml@mellanox.com>
Sun, 28 May 2017 13:40:24 +0000 (16:40 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 20 Aug 2017 09:57:19 +0000 (12:57 +0300)
commiteb234ee9d5413368c8bef5f4061cd76da0b5dd55
treebdf0407712178ca1f55a756a1d8950a9b25abdb3
parent1d1c3436119a6fb92adb8ae72d9a1bcb7f5d0d6a
net/mlx5e: IPoIB, Add support for get_link_ksettings in ethtool

Add support for "ethtool DEVNAME" over ipoib ports,
Display standard port information for IPoIB netdevices using ethtool
For example:
$ ethtool ib2
> Settings for ib2:
        Supported ports: [ ]
        Supported link modes:   Not reported
        Supported pause frame use: No
        Supports auto-negotiation: No
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 100000Mb/s
        Duplex: Full
        Port: Other
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Link detected: yes

Signed-off-by: Shalom Lagziel <shaloml@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c