]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: prs: Fix parser range for VID filtering
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Tue, 11 Jun 2019 09:51:42 +0000 (11:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2019 18:12:58 +0000 (11:12 -0700)
commitadfdc8e23077920d944ff07b9f9c343911a0b046
tree8fa5db44e86fc49b7877fb989a02c8bc0e741823
parentcdcf21e24b987b774919e41ba3738e4ab7ed68db
net: mvpp2: prs: Fix parser range for VID filtering

VID filtering is implemented in the Header Parser, with one range of 11
vids being assigned for each no-loopback port.

Make sure we use the per-port range when looking for existing entries in
the Parser.

Since we used a global range instead of a per-port one, this causes VIDs
to be removed from the whitelist from all ports of the same PPv2
instance.

Fixes: 10022dfef690 ("net: mvpp2: Add hardware offloading for VLAN filtering")
Suggested-by: Yuri Chipchev <yuric@marvell.com>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c