• Ido Schimmel's avatar
    mlxsw: spectrum_router: Use ordered workqueue for neigh updates · e60234dd
    Ido Schimmel authored
    We currently associate each neighbour entry with a work item, so it's
    not possible to have multiple events queued for the same neighbour
    entry. However, this is about to be changed so that the neighbour entry
    is only resolved when the work item is scheduled.
    
    The above can result in a mismatch between the kernel's and the device's
    neighbour table, unless the associated work items are processed in the
    order in which they were submitted.
    
    Do that by migrating the NEIGH_UPDATE work items to be processed in the
    ordered workqueue which was recently introduced in mlxsw in commit
    a3832b31 ("mlxsw: core: Create an ordered workqueue for FIB
    offload").
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    e60234dd
spectrum_router.c 56.4 KB