From: David S. Miller Date: Fri, 24 Apr 2020 22:41:51 +0000 (-0700) Subject: Merge branch 'mlxsw-Mirroring-cleanups' X-Git-Tag: baikal/aarch64/sdk6.1~9212^2~440 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=e2f0586332fd4e6490731390476f4f008677dabb;p=kernel.git Merge branch 'mlxsw-Mirroring-cleanups' Ido Schimmel says: ==================== mlxsw: Mirroring cleanups This patch set contains various cleanups in SPAN (mirroring) code noticed by Amit and I while working on future enhancements in this area. No functional changes intended. Tested by current mirroring selftests. Patches #1-#2 from Amit reduce nesting in a certain function and rename a callback to a more meaningful name. Patch #3 removes debug prints that have little value. Patch #4 converts a reference count to 'refcount_t' in order to catch over/under flows. Patch #5 replaces a zero-length array with flexible-array member in order to get a compiler warning in case the flexible array does not occur last in the structure. ==================== Signed-off-by: David S. Miller --- e2f0586332fd4e6490731390476f4f008677dabb