]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: pch_gbe: convert to use ndo_hwtstamp callbacks
authorVadim Fedorenko <vadim.fedorenko@linux.dev>
Mon, 3 Nov 2025 15:09:51 +0000 (15:09 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Nov 2025 01:43:52 +0000 (17:43 -0800)
commitd8fdc7069474a298ec63ee338b5fcc879a33c754
treeb53dca772ca49cf68a65607cba88b4255f91feb7
parenta23d0486d05a7b6d816d55099a7574c3c4ca4869
net: pch_gbe: convert to use ndo_hwtstamp callbacks

The driver implemented SIOCSHWTSTAMP ioctl command only, but it stores
configuration in the private data, so it is possible to report it back
to users. Implement both ndo_hwtstamp_set and ndo_hwtstamp_get
callbacks. To properly report RX filter type, store it in hwts_rx_en
instead of using this field as a simple flag. The logic didn't change
because receive path used this field as boolean flag.

Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20251103150952.3538205-7-vadim.fedorenko@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c