]> 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)
commit3abe218909982e303c1debc779d15528e49852cf
tree62cd2792a0b0d6e80c73f1a64e6921ebd1c3da78
parentf5805c1a5589ceaa4e560f0a8a3a328f78cae009
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