OSDN Git Service

net: mvpp2: Add missing VLAN tag detection
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Fri, 18 May 2018 07:33:39 +0000 (09:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 May 2018 02:55:32 +0000 (22:55 -0400)
commit62c8a069b510d905039abd4097434f190a316941
treed2eb8a6e4eca33b9432123cace1102f2e76433ec
parent9d1088412c806844191f986282809db8b6b3e445
net: mvpp2: Add missing VLAN tag detection

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>
drivers/net/ethernet/marvell/mvpp2.c