Re: [PATCH 2/4] net-next: dsa: add flow_dissect callback to struct dsa_device_ops

From: Andrew Lunn
Date: Wed Aug 09 2017 - 09:52:36 EST


On Wed, Aug 09, 2017 at 02:41:17PM +0200, John Crispin wrote:
> 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@xxxxxxxxxxxx>
> Signed-off-by: Shashidhar Lakkavalli <shashidhar.lakkavalli@xxxxxxxxxxxx>
> Signed-off-by: John Crispin <john@xxxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew