From: David S. Miller Date: Tue, 26 Oct 2021 12:35:59 +0000 (+0100) Subject: Merge branch 'mlxsw-rif-mac-prefixes' X-Git-Tag: v6.1-rc5~2768^2~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72b93a86856cfe9358752d8797a729ca8e9b6a5f;p=platform%2Fkernel%2Flinux-starfive.git Merge branch 'mlxsw-rif-mac-prefixes' Ido Schimmel says: ==================== mlxsw: Support multiple RIF MAC prefixes Currently, mlxsw enforces that all the netdevs used as router interfaces (RIFs) have the same MAC prefix (e.g., same 38 MSBs in Spectrum-1). Otherwise, an error is returned to user space with extack. This patchset relaxes the limitation through the use of RIF MAC profiles. A RIF MAC profile is a hardware entity that represents a particular MAC prefix which multiple RIFs can reference. Therefore, the number of possible MAC prefixes is no longer one, but the number of profiles supported by the device. The ability to change the MAC of a particular netdev is useful, for example, for users who use the netdev to connect to an upstream provider that performs MAC filtering. Currently, such users are either forced to negotiate with the provider or change the MAC address of all other netdevs so that they share the same prefix. Patchset overview: Patches #1-#3 are preparations. Patch #4 adds actual support for RIF MAC profiles. Patch #5 exposes RIF MAC profiles as a devlink resource, so that user space has visibility into the maximum number of profiles and current occupancy. Useful for debugging and testing (next 3 patches). Patches #6-#8 add both scale and functional tests. Patch #9 removes tests that validated the previous limitation. It is now covered by patch #6 for devices that support a single profile. ==================== Signed-off-by: David S. Miller --- 72b93a86856cfe9358752d8797a729ca8e9b6a5f