]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: Fix TCAM filter reserved range
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Mon, 16 Apr 2018 08:07:23 +0000 (10:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Apr 2018 14:03:25 +0000 (10:03 -0400)
commitca6db325f078be31d07ce1f2dc90bb1281d1c2f0
treec514efd7d58c658daec30222b9faeeaa0361936d
parentf298d4964257d26200d5fb37a83e6c0adfe85d5d
net: mvpp2: Fix TCAM filter reserved range

Marvell's PPv2 controller has a Packet Header parser, which uses a
fixed-size TCAM array of filter entries.

The mvpp2 driver reserves some ranges among the 256 TCAM entries to
perform MAC and VID filtering. The rest of the TCAM ids are freely usable
for other features, such as IPv4 proto matching.

This commit fixes the MVPP2_PE_LAST_FREE_TID define that sets the end of
the "free range", which included the MAC range. This could therefore allow
some other features to use entries dedicated to MAC filtering,
lowering the number of unicast/multicast addresses that could be allowed
before switching to promiscuous mode.

Fixes: 19bc546a13bb ("net: mvpp2: Add support for unicast filtering")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c