diff options
author | Ido Schimmel | 2022-05-04 09:29:09 +0300 |
---|---|---|
committer | David S. Miller | 2022-05-04 11:21:33 +0100 |
commit | cff9437605d5c282c1fe00c63ea5f312a7465646 (patch) | |
tree | fd90a2b546b9c8df4907dc35458d20ff4511bdb5 /net/core | |
parent | b8950003849de2a78f7aed9e348233e2b678b755 (diff) |
mlxsw: spectrum_router: Only query neighbour activity when necessary
The driver periodically queries the device for activity of neighbour
entries in order to report it to the kernel's neighbour table.
Avoid unnecessary activity query when no neighbours are installed. Use
an atomic variable to track the number of neighbours, as it is read
without any locks.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions