]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Receive and decode meta frames
authorVladimir Oltean <olteanv@gmail.com>
Sat, 8 Jun 2019 12:04:39 +0000 (15:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Jun 2019 22:20:40 +0000 (15:20 -0700)
commit66f79ab97adfc23c8bb3431c199663df1957f18a
tree11d8d66ae2b477cde4fed8a534fa3df7c69c91bc
parent1f0883746bf0ebe526134cc10384537ca4a88cfa
net: dsa: sja1105: Receive and decode meta frames

This adds support in the tagger for understanding the source port and
switch id of meta frames.  Their timestamp is also extracted but not
used yet - this needs to be done in a state machine that modifies the
previously received timestampable frame - will be added in a follow-up
patch.

Also take the opportunity to:
- Remove a comment in sja1105_filter made obsolete by b5ea9941e682
  ("net: dsa: sja1105: Don't store frame type in skb->cb")
- Reorder the checks in sja1105_filter to optimize for the most likely
  scenario first: regular traffic.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_sja1105.c