net: dsa: sja1105: Empty the RX timestamping queue on PTP settings change
authorVladimir Oltean <olteanv@gmail.com>
Fri, 27 Dec 2019 13:02:30 +0000 (15:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Dec 2019 04:31:40 +0000 (20:31 -0800)
commit19d1f0ed74b75279f46549de80fa2adf80ef9995
tree62cd2792a0b0d6e80c73f1a64e6921ebd1c3da78
parent1e762bd278d2a70bc74b9cbee7f1e93bd4704fe2
net: dsa: sja1105: Empty the RX timestamping queue on PTP settings change

When disabling PTP timestamping, don't reset the switch with the new
static config until all existing PTP frames have been timestamped on the
RX path or dropped. There's nothing we can do with these afterwards.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_ptp.c