]> 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)
commit4ef8d8ead2ae627586fd2ade31fceee727a4460e
tree0e1e21fb1607adeade1d24571d0c755f8e6e4904
parent95c2a06a653fae945b2d8ffb60123f217e8a5aac
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: 47577625b856 ("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