]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Avoid unnecessary neighbour updates
authorIdo Schimmel <idosch@nvidia.com>
Mon, 22 Mar 2021 15:58:52 +0000 (17:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2021 20:45:46 +0000 (13:45 -0700)
commitf027492b0449403a6fe19103d6de2ba5cae49926
tree420b19eaf36badcfe091e151d750a7668ba4df2f
parent58e4f47d5d4037c4b92b8c1f173f997e29d9c334
mlxsw: spectrum_router: Avoid unnecessary neighbour updates

Avoid updating neighbour and adjacency entries in hardware when the
neighbour is already connected and its MAC address did not change. This
can happen, for example, when neighbour transitions between valid states
such as 'NUD_REACHABLE' and 'NUD_DELAY'.

This is especially important for resilient hashing as these updates will
result in adjacency entries being marked as active.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c