Skip to content

net: mvpp2: Add Unicast filtering capabilities

Maxime Chevallier lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: mvpp2: Simplify MAC filtering function parametersdrivers/net/ethernet/marvell/mvpp2.c+15 -150 replies
2/2net: mvpp2: Add support for unicast filteringdrivers/net/ethernet/marvell/mvpp2.c+161 -1350 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/2] net: mvpp2: Add Unicast filtering capabilities

Hi all,

This series adds unicast filtering support to the Marvell PPv2 controller.

This is implemented using the header parser cababilities of the PPv2, which allows for generic packet filtering based on matching patterns in the packet headers.

PPv2 controller only has 256 of these entries, and we need to share them with other features, such as VLAN filtering.

For each interface, we have 5 entries dedicated to unicast filtering (the controller's own address, and 4 other), and 21 to multicast filtering.

When this number is reached, the controller switches to unicast or multicast promiscuous mode.

The first patch reworks the function that adds and removes addresses to the filter. This is preparatory work to ease UC filter implementation.

The second patch adds the UC filtering feature.

Maxime Chevallier (2):
net: mvpp2: Simplify MAC filtering function parameters
net: mvpp2: Add support for unicast filtering

 drivers/net/ethernet/marvell/mvpp2.c | 320 +++++++++++++++++++----------------
 1 file changed, 173 insertions(+), 147 deletions(-)
Signature · 1 line
2.11.0