Re: [PATCH v2] net: core: SIOCADDMULTI/SIOCDELMULTI distinguish between uc and mc

From: David Miller
Date: Mon Aug 17 2020 - 18:08:24 EST


From: Denys Zagorui <dzagorui@xxxxxxxxx>
Date: Mon, 17 Aug 2020 10:52:24 -0700

> SIOCADDMULTI API allows adding multicast/unicast mac addresses but
> doesn't deferentiate them so if someone tries to add secondary
> unicast mac addr it will be added to multicast netdev list which is
> confusing. There is at least one user that allows adding secondary
> unicast through this API.
> (2f41f3358672 i40e/i40evf: fix unicast mac address add)

This doesn't seem appropriate at all. If anything UC addresses
should be blocked and the Intel driver change reverted. We have
a well defined way to add secondary UC addresses and the MC interfaces
are not it.

Furthermore, even if this was appropriate, "fixing" this only for
ethernet is definitely not appropriate. The fix would need to be able
to handle any address type. Having a generic interface work
inconsistently for one link type vs. another is a non-starter.

Thanks.