net: dsa: sja1105: Add a global sja1105_tagger_data structure
authorVladimir Oltean <olteanv@gmail.com>
Sat, 8 Jun 2019 12:04:40 +0000 (15:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Jun 2019 22:20:40 +0000 (15:20 -0700)
commit844d7edc6a34ae3a8236f1306e4f2615c8db1eac
tree5da175f1b127d764059a4d649f548d20805f1188
parente53e18a6fe4d3ae04c28ca2327ef7e7656cb07ce
net: dsa: sja1105: Add a global sja1105_tagger_data structure

This will be used to keep state for RX timestamping. It is global
because the switch serializes timestampable and meta frames when
trapping them towards the CPU port (lower port indices have higher
priority) and therefore having one state machine per port would create
unnecessary complications.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_main.c
include/linux/dsa/sja1105.h