diff options
author | Petr Machata <petrm@nvidia.com> | 2023-06-09 19:32:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-06-12 09:49:30 +0100 |
commit | 151b89f6025a95dd8083d5844f2746a9450653ca (patch) | |
tree | dd911d64a716b35896e974aeda3bdf9e189baab0 /net/unix/af_unix.c | |
parent | 14304e70634cb03913ec11b7f418df752d9ee3f8 (diff) | |
download | linux-151b89f6025a95dd8083d5844f2746a9450653ca.tar.gz linux-151b89f6025a95dd8083d5844f2746a9450653ca.tar.bz2 linux-151b89f6025a95dd8083d5844f2746a9450653ca.zip |
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 <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions