aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/sja1105/sja1105_ptp.c
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2019-06-08 15:04:42 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-08 15:20:40 -0700
commitf3097be21bf17ae8785eea009cbc424f16611d9a (patch)
treee21fd387d3a4914c2bf7b0322aaedb0d5172b23c /drivers/net/dsa/sja1105/sja1105_ptp.c
parentnet: dsa: sja1105: Increase priority of CPU-trapped frames (diff)
downloadlinux-dev-f3097be21bf17ae8785eea009cbc424f16611d9a.tar.xz
linux-dev-f3097be21bf17ae8785eea009cbc424f16611d9a.zip
net: dsa: sja1105: Add a state machine for RX timestamping
Meta frame reception relies on the hardware keeping its promise that it will send no other traffic towards the CPU port between a link-local frame and a meta frame. Otherwise there is no other way to associate the meta frame with the link-local frame it's holding a timestamp of. The receive function is made stateful, and buffers a timestampable frame until its meta frame arrives, then merges the two, drops the meta and releases the link-local frame up the stack. Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/sja1105/sja1105_ptp.c')
0 files changed, 0 insertions, 0 deletions