qed: Add new ethtool supported port types based on media.
authorRahul Verma <rahulv@marvell.com>
Tue, 6 Aug 2019 06:59:50 +0000 (23:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 01:14:07 +0000 (18:14 -0700)
commit5e6d9fc76190aa70db9cbfb18a6f44f4ee83b7f5
tree9533aef3153ffc326a0a43d2277ba32797a34acf
parentad2dcba008a4a24a39ba39300a460bec2f73fd04
qed: Add new ethtool supported port types based on media.

Supported ports in ethtool <eth1> are displayed based on media type.
For media type fibre and twinaxial, port type is "FIBRE". Media type
Base-T is "TP" and media KR is "Backplane".

V1->V2:
Corrected the subject.

Signed-off-by: Rahul Verma <rahulv@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_main.c
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
include/linux/qed/qed_if.h