From: David S. Miller Date: Fri, 24 Apr 2020 22:41:51 +0000 (-0700) Subject: Merge branch 'mlxsw-Mirroring-cleanups' X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=92dc39fd4047c8fb7573df5247a81717bc10e247;p=openwrt%2Fstaging%2Fblogic.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 --- 92dc39fd4047c8fb7573df5247a81717bc10e247