Skip to contentSkip to conversation

mlx4_core: Managing common port filters by

PATCH Yevgeny Petrilin 2 participants 2 messages Feb 10, 2010 – Feb 16, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · On Sunday -10,January,-28163 09:59 PM, Or Gerlitz [[email protected]] wrote:
Quoted 4 lines · Yevgeny Petrilin

The Multicast filter configuration is done by the master, that manages the filter which is common for all the functions.
The VLAN filter is a bitwise OR of all the VLAN filters for all functions, the result is a false-positive filter.

Reading through patches "18/23 v3 mlx4_core: Managing common port filters..." &&
"16/23 v3 mlx4_core: Multi-Function MCG support" I have difficulties to follow on the vlan and multicast filtering related changes and proposed architecture.

Quoted 8 lines

Can you explain them in a bit more detailed fashion? For example, in the multicast case I believe that currently a bloom filter is applied at the port level and each packet which pass the filter and has no registered QP is consumed by the EN driver. At some point
my understanding was that everyone (all PFs, all VFs, etc) move to exact match, is it correct?

As for the false-positive vlan filter, I understand that this means further filtering has to be applied by some driver. Where you thinking on the 802q driver? what about the case where a VF driver is assigned a vlan, does the mlx4 VF code does such filtering?

Or.

The multicast bloom filter is a false-positive filter per port.
All multicast packets go through the Multicast tables mechanism where every PF/VF is registered for every multicast address it listens to. We will add support for per-Function multicast promiscuous mode.

The deal with the VLAN filter is similar, it includes all VIDs that some PF/VF requested. We plan to add a MAC+VLAN filter implementation, that would cancel the need in this filter.

Yevgeny

#1 lore raw
Quoted 4 lines · Yevgeny Petrilin

On Sunday -10,January,-28163 09:59 PM, Or Gerlitz [[email protected]] wrote:

The multicast bloom filter is a false-positive filter per port.
All multicast packets go through the Multicast tables mechanism where every PF/VF is registered for every multicast address

okay, so the bloom filter is going and exact match is coming, understood.

Quoted 4 lines
Quoted 2 lines

As for the false-positive vlan filter, I understand that this means further filtering has to be applied by some driver. Where you thinking on the 802q driver? what about the case where a VF driver is assigned a vlan, does the mlx4 VF code does filtering?

The deal with the VLAN filter is similar, it includes all VIDs that some PF/VF requested.

So for a given VID, a unicast packet carrying it will be dispatched to all the PFs/VFs which
have registered this VID? I guess this isn't the case, so please elaborate.

Quoted 1 line

We plan to add a MAC+VLAN filter implementation, that would cancel the need in this filter.

I'm still not clear in what level you expect the software filtering to happen

Or.