mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
net/ethtool: add netlink interface for the PLCA RS
Add support for configuring the PLCA Reconciliation Sublayer on multi-drop PHYs that support IEEE802.3cg-2019 Clause 148 (e.g., 10BASE-T1S). This patch adds the appropriate netlink interface to ethtool. Signed-off-by: Piergiorgio Beruto <piergiorgio.beruto@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a6f536063b
commit
8580e16c28
@@ -802,12 +802,17 @@ int ethtool_virtdev_set_link_ksettings(struct net_device *dev,
|
||||
|
||||
struct phy_device;
|
||||
struct phy_tdr_config;
|
||||
struct phy_plca_cfg;
|
||||
struct phy_plca_status;
|
||||
|
||||
/**
|
||||
* struct ethtool_phy_ops - Optional PHY device options
|
||||
* @get_sset_count: Get number of strings that @get_strings will write.
|
||||
* @get_strings: Return a set of strings that describe the requested objects
|
||||
* @get_stats: Return extended statistics about the PHY device.
|
||||
* @get_plca_cfg: Return PLCA configuration.
|
||||
* @set_plca_cfg: Set PLCA configuration.
|
||||
* @get_plca_status: Get PLCA configuration.
|
||||
* @start_cable_test: Start a cable test
|
||||
* @start_cable_test_tdr: Start a Time Domain Reflectometry cable test
|
||||
*
|
||||
@@ -819,6 +824,13 @@ struct ethtool_phy_ops {
|
||||
int (*get_strings)(struct phy_device *dev, u8 *data);
|
||||
int (*get_stats)(struct phy_device *dev,
|
||||
struct ethtool_stats *stats, u64 *data);
|
||||
int (*get_plca_cfg)(struct phy_device *dev,
|
||||
struct phy_plca_cfg *plca_cfg);
|
||||
int (*set_plca_cfg)(struct phy_device *dev,
|
||||
const struct phy_plca_cfg *plca_cfg,
|
||||
struct netlink_ext_ack *extack);
|
||||
int (*get_plca_status)(struct phy_device *dev,
|
||||
struct phy_plca_status *plca_st);
|
||||
int (*start_cable_test)(struct phy_device *phydev,
|
||||
struct netlink_ext_ack *extack);
|
||||
int (*start_cable_test_tdr)(struct phy_device *phydev,
|
||||
|
Reference in New Issue
Block a user