diff options
author | Veerasenareddy Burru | 2018-03-14 06:04:45 +0100 |
---|---|---|
committer | David S. Miller | 2018-03-14 18:34:42 +0100 |
commit | 5677629a5a091a62512427534404b509fe6c615d (patch) | |
tree | ef0aae003fcb4292fa99d2ba2beef639da1e3e2d /drivers/net/ethernet/cavium/liquidio/liquidio_common.h | |
parent | tuntap: XDP_TX can use native XDP (diff) | |
download | kernel-qcow2-linux-5677629a5a091a62512427534404b509fe6c615d.tar.gz kernel-qcow2-linux-5677629a5a091a62512427534404b509fe6c615d.tar.xz kernel-qcow2-linux-5677629a5a091a62512427534404b509fe6c615d.zip |
liquidio: Add support for liquidio 10GBase-T NIC
Added ethtool changes to show port type as TP (Twisted Pair) for
10GBASE-T ports. Same driver and firmware works for liquidio NIC with
SFP+ ports or TP ports.
Signed-off-by: Veerasenareddy Burru <veerasenareddy.burru@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/liquidio/liquidio_common.h')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/liquidio_common.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/liquidio_common.h b/drivers/net/ethernet/cavium/liquidio/liquidio_common.h index 4f72ed1ad15a..ecc16824fc1b 100644 --- a/drivers/net/ethernet/cavium/liquidio/liquidio_common.h +++ b/drivers/net/ethernet/cavium/liquidio/liquidio_common.h @@ -676,9 +676,11 @@ union oct_link_status { u64 if_mode:5; u64 pause:1; u64 flashing:1; - u64 reserved:15; + u64 phy_type:5; + u64 reserved:10; #else - u64 reserved:15; + u64 reserved:10; + u64 phy_type:5; u64 flashing:1; u64 pause:1; u64 if_mode:5; @@ -691,6 +693,12 @@ union oct_link_status { } s; }; +enum lio_phy_type { + LIO_PHY_PORT_TP = 0x0, + LIO_PHY_PORT_FIBRE = 0x1, + LIO_PHY_PORT_UNKNOWN, +}; + /** The txpciq info passed to host from the firmware */ union oct_txpciq { |