]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: mvpp2: Add missing VLAN tag detection
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Fri, 18 May 2018 07:33:39 +0000 (09:33 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:21:04 +0000 (14:21 +0100)
commit9046cd2a24688046f7248044ad6fc0f7cba79c80
tree9b1e8dba8c68da9a373d2d1c1781381d7c318b35
parent25f600b7ceb8312f5699721d6cef66fc7809e0d0
net: mvpp2: Add missing VLAN tag detection

BugLink: http://bugs.launchpad.net/bugs/1815234
[ Upstream commit 62c8a069b510d905039abd4097434f190a316941 ]

Marvell PPv2 Header Parser sets some bits in the 'result_info' field in
each lookup iteration, to identify different packet attributes such as
DSA / VLAN tag, protocol infos, etc. This is used in further
classification stages in the controller.

It's the DSA tag detection entry that is in charge of detecting when there
is a single VLAN tag.

This commits adds the missing update of the result_info in this case.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/marvell/mvpp2.c