On 11/09/2017 11:30 AM, Andrew Lunn wrote:
quoted
This means that switchdev drivers won't ever have to treat a HOST_MDB
notification any differently than a PORT_MDB notification
No, they need to treat it very differently.
Allow me to rephrase, switchdev drivers will ignore HOST_MDB
notifications because that does not resolve to something they can do
something about.
A PORT_MDB says that frames for a group should be sent out that port.
So it probably needs to iterate all the ports in the bridge and add a
match/action to each port saying frames coming in for that group
should be sent out the port listed in the PORT_MDB.
A HOST_MDB say that frames for a group coming in from the port listed
in the HOST_MDB must be sent to the host. The match/action applies
directly to the port, other ports are not involved.
Fine, then add a boolean to the PORT_MDB notification that says ingress
or egress and voila, or am I missing something?
--
Florian