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)
commitc49a35eedfef08bffd46b53c25dbf9d6016a86ff
tree54bf5a5fb8297bd619577daffa8f27ff8a1833dc
parent96ca08c05838d1f5501003f0a6201824e4eede70
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: 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>
drivers/net/ethernet/mscc/ocelot.c