net-next: dsa: add flow_dissect callback to struct dsa_device_ops
authorJohn Crispin <john@phrozen.org>
Wed, 9 Aug 2017 12:41:17 +0000 (14:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:51:47 +0000 (22:51 -0700)
commit598a968011ffc4d624934995fe46d06bd450cdf4
tree2d0f718a04615ed23d4350f68ae2559bcb1f610f
parent68277a2c9d32fd9090247a5c08aaf1353049c0b1
net-next: dsa: add flow_dissect callback to struct dsa_device_ops

When the flow dissector first sees packets coming in on a DSA devices the
802.3 header wont be located where the code expects it to be as the tag
is still present. Adding this new callback allows a DSA device to provide a
new function that the flow_dissector can use to get the correct protocol
and offset of the network header.

Signed-off-by: Muciri Gatimu <muciri@openmesh.com>
Signed-off-by: Shashidhar Lakkavalli <shashidhar.lakkavalli@openmesh.com>
Signed-off-by: John Crispin <john@phrozen.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h