net: ethtool: Refactor identical get_ts_info implementations.
authorRichard Cochran <richardcochran@gmail.com>
Tue, 14 Nov 2023 11:28:31 +0000 (12:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Nov 2023 14:52:57 +0000 (14:52 +0000)
commitb8768dc4077712915f045ba1b198f521493c7914
tree9bdc8989c24dae76c118696b6b838acdc86d8b34
parent430dc3256d5790361135c69af5de1aaa07248e8a
net: ethtool: Refactor identical get_ts_info implementations.

The vlan, macvlan and the bonding drivers call their "real" device driver
in order to report the time stamping capabilities.  Provide a core
ethtool helper function to avoid copy/paste in the stack.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/macvlan.c
include/linux/ethtool.h
net/8021q/vlan_dev.c
net/ethtool/common.c