Re: [RFC PATCH net-next 2/5] net: 8021q: vlan_dev: add vid tag for uc and mc address lists

From: Ivan Khoronzhuk
Date: Tue Dec 04 2018 - 19:05:02 EST


On Tue, Dec 04, 2018 at 11:49:27AM -0800, Florian Fainelli wrote:

...


I was thinking also about pinned list of vlans to the address, but in
this case this information also has to be synced by members of device
chain,
because it can be modified on any device level and it looks not very
friendly,
and at the end address space has addresses with pinned lists of vlans with
their pointers. But keeping this stuff in sync is not simplest decision.



I really think we are not communicating properly, it really seems to me
that if you had the information about the upper device trying to add an
address to the lower device filter's either through notification or call
to ndo_set_rxmode, you could be solving your problems. What are we
missing here?

Sry, missed this one. The problem in getting the owner of address.
Just simple case: vlan/macvlan/real_dev or vlan/.../.../real_dev

The real dev hasn't simple way to get vid the address belong to, or it has?



--
Florian

--
Regards,
Ivan Khoronzhuk