On Tue, Jun 20, 2017 at 10:06:55AM +0200, John Crispin wrote: > The MT7530 inserts the 4 magic header in between the 802.3 address and > protocol field. The patch defines these header such that the flow_disector > can properly parse the packet and thus allows hashing to function properly.
This is to do with tagging, not the switch driver. The Marvell switch driver can be used with two different tagging protocols. So i would put these fields in the dsa_device_ops. Andrew