ethtool/mdio: Report MDIO mode support and link partner advertising
Add mdio_support and lp_advertising fields to ethtool_cmd. Set these in mdio45_ethtool_gset{,_npage}(). Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3f926da82f
commit
0c09c1a49c
@@ -234,6 +234,9 @@ static inline __u16 mdio_phy_id_devad(int phy_id)
|
||||
return phy_id & MDIO_PHY_ID_DEVAD;
|
||||
}
|
||||
|
||||
#define MDIO_SUPPORTS_C22 1
|
||||
#define MDIO_SUPPORTS_C45 2
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
/**
|
||||
@@ -264,8 +267,6 @@ struct mdio_if_info {
|
||||
|
||||
#define MDIO_PRTAD_NONE (-1)
|
||||
#define MDIO_DEVAD_NONE (-1)
|
||||
#define MDIO_SUPPORTS_C22 1
|
||||
#define MDIO_SUPPORTS_C45 2
|
||||
#define MDIO_EMULATE_C22 4
|
||||
|
||||
struct ethtool_cmd;
|
||||
|
Reference in New Issue
Block a user