]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: add support for SIOCETHTOOL ETHTOOL_GET_TS_INFO
authorPauli Virtanen <pav@iki.fi>
Sun, 27 Apr 2025 11:27:25 +0000 (14:27 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 21 May 2025 14:28:51 +0000 (10:28 -0400)
commitdd0ccf858057b793beb3779be7576d92c93cf828
tree438257307069b50b0595e23985c40c17d897758b
parent190377500fdefce2bda3bbd08409f4f4d813b2d1
Bluetooth: add support for SIOCETHTOOL ETHTOOL_GET_TS_INFO

Bluetooth needs some way for user to get supported so_timestamping flags
for the different socket types.

Use SIOCETHTOOL API for this purpose. As hci_dev is not associated with
struct net_device, the existing implementation can't be reused, so we
add a small one here.

Add support (only) for ETHTOOL_GET_TS_INFO command. The API differs
slightly from netdev in that the result depends also on socket type.

Signed-off-by: Pauli Virtanen <pav@iki.fi>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/bluetooth.h
net/bluetooth/af_bluetooth.c
net/bluetooth/hci_conn.c