]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: mscc: ocelot: correctly report the timestamping RX filters in ethtool
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 26 Nov 2021 17:28:45 +0000 (19:28 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:03 +0000 (09:49 +0100)
commit5a4f7d8ebf31f1551f810a2c84707391b2bf4c67
tree0f41124c2b4d673f1c7c984e55d6648249dd6bdc
parentf2f8cfb5ee6260c4df1536ff2ee2932aba80532f
net: mscc: ocelot: correctly report the timestamping RX filters in ethtool

BugLink: https://bugs.launchpad.net/bugs/1953370
[ Upstream commit c49a35eedfef08bffd46b53c25dbf9d6016a86ff ]

The driver doesn't support RX timestamping for non-PTP packets, but it
declares that it does. Restrict the reported RX filters to PTP v2 over
L2 and over L4.

Fixes: 4e3b0468e6d7 ("net: mscc: PTP Hardware Clock (PHC) support")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/net/ethernet/mscc/ocelot.c