]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commite53e18a6fe4d3ae04c28ca2327ef7e7656cb07ce
tree11d8d66ae2b477cde4fed8a534fa3df7c69c91bc
parent79fa7061397a372256b466d62a0a81690b512d5f
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 e8d67fa5696e
  ("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