]> Git Repo - linux.git/commit
mlxsw: spectrum_router: Reuse work neighbor initialization in work scheduler
authorPetr Machata <[email protected]>
Fri, 9 Jun 2023 17:32:10 +0000 (19:32 +0200)
committerDavid S. Miller <[email protected]>
Mon, 12 Jun 2023 08:49:30 +0000 (09:49 +0100)
commit151b89f6025a95dd8083d5844f2746a9450653ca
treedd911d64a716b35896e974aeda3bdf9e189baab0
parent14304e70634cb03913ec11b7f418df752d9ee3f8
mlxsw: spectrum_router: Reuse work neighbor initialization in work scheduler

After the struct mlxsw_sp_netevent_work.n field initialization is moved
here, the body of code that handles NETEVENT_NEIGH_UPDATE is almost
identical to the one in the helper function. Therefore defer to the helper
instead of inlining the equivalent.

Note that previously, the code took and put a reference of the netdevice.
The new code defers to mlxsw_sp_dev_lower_is_port() to obviate the need for
taking the reference.

Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: Amit Cohen <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
This page took 0.057654 seconds and 4 git commands to generate.