]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5: Bridge, fix ageing of peer FDB entries
authorVlad Buslov <vladbu@nvidia.com>
Thu, 26 Jan 2023 13:47:12 +0000 (14:47 +0100)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 8 Feb 2023 03:01:05 +0000 (19:01 -0800)
commitda0c52426cd23f8728eff72c2b2d2a3eb6b451f5
tree37777accdb7bfdb7f60f390d33351ca367e8af69
parent288d85e07fbca5ee35882a4884dd701e43637be1
net/mlx5: Bridge, fix ageing of peer FDB entries

SWITCHDEV_FDB_ADD_TO_BRIDGE event handler that updates FDB entry 'lastuse'
field is only executed for eswitch that owns the entry. However, if peer
entry processed packets at least once it will have hardware counter 'used'
value greater than entry 'lastuse' from that point on, which will cause FDB
entry not being aged out.

Process the event on all eswitch instances.

Fixes: ff9b7521468b ("net/mlx5: Bridge, support LAG")
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.c
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c