]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5e: IPoIB, Add ethtool support to get child time stamping parameters
authorFeras Daoud <ferasda@mellanox.com>
Tue, 31 Oct 2017 12:03:12 +0000 (14:03 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 9 Jan 2018 05:40:48 +0000 (07:40 +0200)
Add support to get time stamping capabilities using ethtool for
child interface.
Usage example:
ethtool -T CHILD-DEVNAME

This change reuses the functionality of parent devices and does not
introduce any new logic.

Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c

index 6f338a9219c8527c80550013b720e3cc728bf027..90cb50fe17fd95de3a5f295a8cbe60f97cabafa8 100644 (file)
@@ -254,4 +254,5 @@ const struct ethtool_ops mlx5i_ethtool_ops = {
 const struct ethtool_ops mlx5i_pkey_ethtool_ops = {
        .get_drvinfo        = mlx5i_get_drvinfo,
        .get_link           = ethtool_op_get_link,
+       .get_ts_info        = mlx5i_get_ts_info,
 };