]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5c31ae7be91226237cf0f33d41d0b130519cda75
tree62cd2792a0b0d6e80c73f1a64e6921ebd1c3da78
parent33af9b6fc620e13466485744e7f1e21b7d1599f4
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