mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
net: phy: add PHY_INTERFACE_MODE_10GBASER
Recent discussion has revealed that the use of PHY_INTERFACE_MODE_10GKR is incorrect. Add a 10GBASE-R definition, document both the -R and -KR versions, and the fact that 10GKR was used incorrectly. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aea6a1eba5
commit
c114574ebf
2 changed files with 26 additions and 4 deletions
|
@ -100,9 +100,11 @@ typedef enum {
|
|||
PHY_INTERFACE_MODE_2500BASEX,
|
||||
PHY_INTERFACE_MODE_RXAUI,
|
||||
PHY_INTERFACE_MODE_XAUI,
|
||||
/* 10GBASE-KR, XFI, SFI - single lane 10G Serdes */
|
||||
PHY_INTERFACE_MODE_10GKR,
|
||||
/* 10GBASE-R, XFI, SFI - single lane 10G Serdes */
|
||||
PHY_INTERFACE_MODE_10GBASER,
|
||||
PHY_INTERFACE_MODE_USXGMII,
|
||||
/* 10GBASE-KR - with Clause 73 AN */
|
||||
PHY_INTERFACE_MODE_10GKR,
|
||||
PHY_INTERFACE_MODE_MAX,
|
||||
} phy_interface_t;
|
||||
|
||||
|
@ -176,10 +178,12 @@ static inline const char *phy_modes(phy_interface_t interface)
|
|||
return "rxaui";
|
||||
case PHY_INTERFACE_MODE_XAUI:
|
||||
return "xaui";
|
||||
case PHY_INTERFACE_MODE_10GKR:
|
||||
return "10gbase-kr";
|
||||
case PHY_INTERFACE_MODE_10GBASER:
|
||||
return "10gbase-r";
|
||||
case PHY_INTERFACE_MODE_USXGMII:
|
||||
return "usxgmii";
|
||||
case PHY_INTERFACE_MODE_10GKR:
|
||||
return "10gbase-kr";
|
||||
default:
|
||||
return "unknown";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue