]> 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)
commitc37cfb2e9376cb7fc537999a7007809b62cc7789
tree9ad11a7f4750bda5a02b1332a825d07b716203cc
parenta3fb8ef5e5bad6ed0ff833dbec3c8065bbe4d7fa
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