]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bnx2x: convert to use ndo_hwtstamp callbacks
authorVadim Fedorenko <vadim.fedorenko@linux.dev>
Sun, 16 Nov 2025 09:46:09 +0000 (09:46 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Nov 2025 03:30:12 +0000 (19:30 -0800)
commit889e6af87734389068fd924431f2141ddacad65e
treec5d01c04f346a37ab615b75ab56194d63d26a8a1
parentef3b682aca223ff903d1e488e5103270d1eef343
bnx2x: convert to use ndo_hwtstamp callbacks

The driver implemented SIOCSHWTSTAMP ioctl command only, but at the same
time it has configuration stored in a private structure. Implement both
ndo_hwtstamp_set and ndo_hwtstamp_get callback using stored info.
ndo_hwtstamp_set callback implements a check for unsupported 1-step
timestamping. The same check is removed from bnx2x_configure_ptp_filters
function as it's not needed anymore. Another call site of
bnx2x_configure_ptp_filters has hwtstamp_ioctl_called guard.

Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20251116094610.3932005-2-vadim.fedorenko@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c