From: David S. Miller Date: Mon, 12 Jun 2023 08:49:30 +0000 (+0100) Subject: Merge branch 'mlxsw-cleanups' X-Git-Tag: v6.6.17~4555^2~116 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55d7c91406b4b486ea8c50e2fb31f1e1a0ef5143;p=platform%2Fkernel%2Flinux-rpi.git Merge branch 'mlxsw-cleanups' Petr Machata says: ==================== mlxsw: Cleanups in router code This patchset moves some router-related code from spectrum.c to spectrum_router.c where it should be. It also simplifies handlers of netevent notifications. - Patch #1 caches router pointer in a dedicated variable. This obviates the need to access the same as mlxsw_sp->router, making lines shorter, and permitting a future patch to add code that fits within 80 character limit. - Patch #2 moves IP / IPv6 validation notifier blocks from spectrum.c to spectrum_router, where the handlers are anyway. - In patch #3, pass router pointer to scheduler of deferred work directly, instead of having it deduce it on its own. - This makes the router pointer available in the handler function mlxsw_sp_router_netevent_event(), so in patch #4, use it directly, instead of finding it through mlxsw_sp_port. - In patch #5, extend mlxsw_sp_router_schedule_work() so that the NETEVENT_NEIGH_UPDATE handler can use it directly instead of inlining equivalent code. - In patches #6 and #7, add helpers for two common operations involving a backing netdev of a RIF. This makes it unnecessary for the function mlxsw_sp_rif_dev() to be visible outside of the router module, so in patch #8, hide it. ==================== Signed-off-by: David S. Miller --- 55d7c91406b4b486ea8c50e2fb31f1e1a0ef5143