]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Build a minimal understanding of meta frames
authorVladimir Oltean <olteanv@gmail.com>
Sat, 8 Jun 2019 12:04:36 +0000 (15:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Jun 2019 22:20:40 +0000 (15:20 -0700)
commit5a7024341e02f834069cdfadf48ef63310ef0360
tree9ad11a7f4750bda5a02b1332a825d07b716203cc
parent31fbc55da5aea88bac6580fc04e7ef274edf33db
net: dsa: sja1105: Build a minimal understanding of meta frames

Meta frames are sent on the CPU port by the switch if RX timestamping is
enabled. They contain a partial timestamp of the previous frame.

They are Ethernet frames with the Ethernet header constructed out of:

- SJA1105_META_DMAC
- SJA1105_META_SMAC
- ETH_P_SJA1105_META

The Ethernet payload will be decoded in a follow-up patch.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/dsa/sja1105.h
net/dsa/tag_sja1105.c