From: David S. Miller Date: Mon, 9 Jul 2018 23:24:18 +0000 (-0700) Subject: Merge branch 'mlxsw-More-Spectrum-2-preparations' X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1497d2fd1bbb04beb795cc4c4f76fef7eb4c6061;p=openwrt%2Fstaging%2Fblogic.git Merge branch 'mlxsw-More-Spectrum-2-preparations' aIdo Schimmel says: ==================== mlxsw: More Spectrum-2 preparations This is the second and last set of preparations towards initial Spectrum-2 support in mlxsw. It mainly re-arranges parts of the code that need to work with both ASICs, but somewhat differ. The first three patches allow different ASICs to register different set of operations for KVD linear (KVDL) management. In Spectrum-2 there is no linear memory and instead entries that reside there in Spectrum (e.g., nexthops) are hashed and inserted to the hash-based KVD memory. The fourth patch does a similar restructuring in the low-level multicast router code. This is necessary because multicast routing is implemented using regular circuit TCAM (C-TCAM) in Spectrum, whereas Spectrum-2 uses an algorithmic TCAM (A-TCAM). Next six patches prepare the ACL code for the introduction of A-TCAM in follow-up patch sets. Last two patches allow different ASICs to require different firmware versions and add two resources that need to be queried from firmware by Spectrum-2 specific code. ==================== Signed-off-by: David S. Miller --- 1497d2fd1bbb04beb795cc4c4f76fef7eb4c6061