]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: prs: Use the correct helpers when removing all VID filters
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Tue, 11 Jun 2019 09:51:43 +0000 (11:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2019 18:12:58 +0000 (11:12 -0700)
commitf62e827b566c3f22fa2ea457b962a244770fccba
tree59ca4c36d477340effb77854ba4e7387345860ea
parent230d5da7cc27ad39f55239fd836409863bff7bac
net: mvpp2: prs: Use the correct helpers when removing all VID filters

When removing all VID filters, the mvpp2_prs_vid_entry_remove would be
called with the TCAM id incorrectly used as a VID, causing the wrong
TCAM entries to be invalidated.

Fix this by directly invalidating entries in the VID range.

Fixes: d496ff76493b ("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