]> git.baikalelectronics.ru Git - kernel.git/commit
net-next: tag_mtk: add flow_dissect callback to the ops struct
authorJohn Crispin <john@phrozen.org>
Wed, 9 Aug 2017 12:41:18 +0000 (14:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:51:47 +0000 (22:51 -0700)
commite6bb2418e712c9c42f56be4e7d6b8db0f112f45f
treec6ab27e229b804d7b74b924b6a9a3f4f87e7d34f
parenta72d5292466986f5c4c3c6955c89ce3b0789ca10
net-next: tag_mtk: add flow_dissect callback to the ops struct

The MT7530 inserts the 4 magic header in between the 802.3 address and
protocol field. The patch implements the callback that can be called by
the flow dissector to figure out the real protocol and offset of the
network header. With this patch applied we can properly parse the packet
and thus make hashing function properly.

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>
net/dsa/tag_mtk.c