]> git.baikalelectronics.ru Git - 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)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 19:38:21 +0000 (11:38 -0800)
commit7c84e659abc6669abb9854f96ac86d61b1ea923a
tree54bf5a5fb8297bd619577daffa8f27ff8a1833dc
parentc59e9117cf931380616f5b445a0c895fc9c13b4d
net: mscc: ocelot: correctly report the timestamping RX filters in ethtool

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: 0d840c4d74fd ("net: mscc: PTP Hardware Clock (PHC) support")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot.c