summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2020-09-26 22:32:06 +0300
committerDavid S. Miller <davem@davemloft.net>2020-09-27 00:17:59 +0300
commit9790cf20a8c4bb8d774797c238fa3643f4336e46 (patch)
tree7fcb60f76797ed986b58ecaa0b6ff369973e70e4 /net
parent2e8cb1b3db384382c84cc5f765c821454640aac1 (diff)
downloadlinux-9790cf20a8c4bb8d774797c238fa3643f4336e46.tar.xz
net: dsa: add a generic procedure for the flow dissector
For all DSA formats that don't use tail tags, it looks like behind the obscure number crunching they're all doing the same thing: locating the real EtherType behind the DSA tag. Nonetheless, this is not immediately obvious, so create a generic helper for those DSA taggers that put the header before the EtherType. Another assumption for the generic function is that the DSA tags are of equal length on RX and on TX. Prior to the previous patch, this was not true for ocelot and for gswip. The problem was resolved for ocelot, but for gswip it still remains, so that can't use this helper yet. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions