smsc95xx: use ethtool_op_get_ts_info()
authorPetr Kulhavy <brain@jikos.cz>
Thu, 13 Jul 2017 17:40:57 +0000 (19:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2017 15:54:03 +0000 (08:54 -0700)
commita8f5cb9e79913a6918f87495d4969706f8817b8e
tree145e322b6471a456b97d30bc1003be24528b84e7
parentc4c4290c17bd099b7654d683f8ab6233b4f4a364
smsc95xx: use ethtool_op_get_ts_info()

This change enables the use of SW timestamping on Raspberry PI.

smsc95xx uses the usbnet transmit function usbnet_start_xmit(), which
implements software timestamping. However the SOF_TIMESTAMPING_TX_SOFTWARE
capability was missing and only SOF_TIMESTAMPING_RX_SOFTWARE was announced.
By using ethtool_op_get_ts_info() as get_ts_info() also the
SOF_TIMESTAMPING_TX_SOFTWARE is announced.

Signed-off-by: Petr Kulhavy <brain@jikos.cz>
Reviewed-by: Woojung Huh <Woojung.Huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c