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)
commit840eef598653d7e076b5c138cace687b18538605
tree0e1e21fb1607adeade1d24571d0c755f8e6e4904
parentba8fb6c844553950b6e646a4e2f711a7b2ec20ad
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: 4d03e00a2140 ("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