Skip to content

Commit e777a4b

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: felix: report timestamping stats from the ocelot library
Make the linkage between the DSA user port ethtool_ops :: get_ts_info and the implementation from the Ocelot switch library. Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8fbd24f commit e777a4b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/net/dsa/ocelot/felix.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,14 @@ static void felix_get_eth_phy_stats(struct dsa_switch *ds, int port,
13161316
ocelot_port_get_eth_phy_stats(ocelot, port, phy_stats);
13171317
}
13181318

1319+
static void felix_get_ts_stats(struct dsa_switch *ds, int port,
1320+
struct ethtool_ts_stats *ts_stats)
1321+
{
1322+
struct ocelot *ocelot = ds->priv;
1323+
1324+
ocelot_port_get_ts_stats(ocelot, port, ts_stats);
1325+
}
1326+
13191327
static void felix_get_strings(struct dsa_switch *ds, int port,
13201328
u32 stringset, u8 *data)
13211329
{
@@ -2237,6 +2245,7 @@ static const struct dsa_switch_ops felix_switch_ops = {
22372245
.get_stats64 = felix_get_stats64,
22382246
.get_pause_stats = felix_get_pause_stats,
22392247
.get_rmon_stats = felix_get_rmon_stats,
2248+
.get_ts_stats = felix_get_ts_stats,
22402249
.get_eth_ctrl_stats = felix_get_eth_ctrl_stats,
22412250
.get_eth_mac_stats = felix_get_eth_mac_stats,
22422251
.get_eth_phy_stats = felix_get_eth_phy_stats,

0 commit comments

Comments
 (0)