diff options
author | Gatis Peisenieks <gatis@mikrotik.com> | 2021-05-13 14:43:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-13 15:48:10 -0700 |
commit | ea0fbd05d7bd3298290d3579a837311ee5ceaf18 (patch) | |
tree | 562621c7525aece0f397a1a3d3d898e9606a8a3b /drivers/net/ethernet/atheros/atl1c/atl1c_hw.h | |
parent | atl1c: enable rx csum offload on Mikrotik 10/25G NIC (diff) | |
download | linux-dev-ea0fbd05d7bd3298290d3579a837311ee5ceaf18.tar.xz linux-dev-ea0fbd05d7bd3298290d3579a837311ee5ceaf18.zip |
atl1c: improve link detection reliability on Mikrotik 10/25G NIC
Mikrotik 10/25G NIC emulates the MDIO accesses, but the emulation is
not 100% reliable - the MDIO ops occasionally can timeout.
This adds a reliable way of detecting link on Mikrotik 10/25G NIC.
Signed-off-by: Gatis Peisenieks <gatis@mikrotik.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros/atl1c/atl1c_hw.h')
-rw-r--r-- | drivers/net/ethernet/atheros/atl1c/atl1c_hw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_hw.h b/drivers/net/ethernet/atheros/atl1c/atl1c_hw.h index 73cbc049a63e..c263b326cec5 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_hw.h +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_hw.h @@ -26,6 +26,7 @@ void atl1c_phy_disable(struct atl1c_hw *hw); void atl1c_hw_set_mac_addr(struct atl1c_hw *hw, u8 *mac_addr); int atl1c_phy_reset(struct atl1c_hw *hw); int atl1c_read_mac_addr(struct atl1c_hw *hw); +bool atl1c_get_link_status(struct atl1c_hw *hw); int atl1c_get_speed_and_duplex(struct atl1c_hw *hw, u16 *speed, u16 *duplex); u32 atl1c_hash_mc_addr(struct atl1c_hw *hw, u8 *mc_addr); void atl1c_hash_set(struct atl1c_hw *hw, u32 hash_value); |