mlxsw: spectrum: PTP: Support ethtool get_ts_info
authorPetr Machata <petrm@mellanox.com>
Sun, 30 Jun 2019 06:05:00 +0000 (09:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2019 01:58:35 +0000 (18:58 -0700)
commit87ee07f8e2efbaf473945f0aef41040212596676
tree65397cf0962b1ff5eac0cfe3455af3d455e85b55
parent8748642751ede505c3d6de1486fa0c1f8eb8be6b
mlxsw: spectrum: PTP: Support ethtool get_ts_info

The get_ts_info callback is used for obtaining information about
timestamping capabilities of a network device. On Spectrum-1, implement
it to advertise the PHC and the capability to do HW timestamping, and
the supported RX and TX filters.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h