]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: print data for unknown xcvr type
authorShannon Nelson <snelson@pensando.io>
Tue, 17 Mar 2020 03:22:09 +0000 (20:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2020 04:18:25 +0000 (21:18 -0700)
commit365c6445c4345c9f2fa52bfb231371aeb3250c16
tree0e1e21fb1607adeade1d24571d0c755f8e6e4904
parent07237627974d5105e32523c9bb6f7f648d8fe310
ionic: print data for unknown xcvr type

If we don't recognize the transceiver type, set the xcvr type
and data length such that ethtool can at least print the first
256 bytes and the reader can figure out why the transceiver
is not recognized.

While we're here, we can update the phy_id type values to use
the enum values in sfp.h.

Fixes: 3d3eb34c86a9 ("ionic: Add initial ethtool support")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_ethtool.c