From: David S. Miller Date: Wed, 20 Apr 2022 09:34:34 +0000 (+0100) Subject: Merge branch 'dsa-cross-chip-notifier-cleanup' X-Git-Tag: v6.1-rc5~1274^2~293 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ab38ed779857fd6d739dacac928dd8df82c4655;p=platform%2Fkernel%2Flinux-starfive.git Merge branch 'dsa-cross-chip-notifier-cleanup' Vladimir Oltean says: ==================== DSA cross-chip notifier cleanups This patch set makes the following improvements: - Cross-chip notifiers pass a switch index, port index, sometimes tree index, all as integers. Sometimes we need to recover the struct dsa_port based on those integers. That recovery involves traversing a list. By passing directly a pointer to the struct dsa_port we can avoid that, and the indices passed previously can still be obtained from the passed struct dsa_port. - Resetting VLAN filtering on a switch has explicit code to make it run on a single switch, so it has no place to stay in the cross-chip notifier code. Move it out. - Changing the MTU on a user port affects only that single port, yet the code passes through the cross-chip notifier layer where all switches are notified. Avoid that. - Other related cosmetic changes in the MTU changing procedure. Apart from the slight improvement in performance given by (a) doing less work in cross-chip notifiers (b) emitting less cross-chip notifiers we also end up with about 100 less lines of code. ==================== Signed-off-by: David S. Miller --- 8ab38ed779857fd6d739dacac928dd8df82c4655