diff options
author | David S. Miller <davem@davemloft.net> | 2023-06-12 11:49:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-06-12 11:49:30 +0300 |
commit | 55d7c91406b4b486ea8c50e2fb31f1e1a0ef5143 (patch) | |
tree | 2c0c0497a68f8edc80a17eedcc9751f1a8fb7e31 /arch/parisc/include/uapi/asm | |
parent | e069ba07e6c7af69e119316bc87ff44869095f49 (diff) | |
parent | df95ae66cc0a1606278677b1be4f2170c73876a9 (diff) | |
download | linux-55d7c91406b4b486ea8c50e2fb31f1e1a0ef5143.tar.xz |
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 <davem@davemloft.net>
Diffstat (limited to 'arch/parisc/include/uapi/asm')
0 files changed, 0 insertions, 0 deletions