From: Ido Schimmel <ido...@mellanox.com> Make sure the device has a complete view of the FIB tables by invoking their dump during module init.
Signed-off-by: Ido Schimmel <ido...@mellanox.com> Signed-off-by: Jiri Pirko <j...@mellanox.com> --- drivers/net/ethernet/rocker/rocker_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/rocker/rocker_main.c b/drivers/net/ethernet/rocker/rocker_main.c index b80ff12..6968473 100644 --- a/drivers/net/ethernet/rocker/rocker_main.c +++ b/drivers/net/ethernet/rocker/rocker_main.c @@ -2806,6 +2806,7 @@ static int rocker_probe(struct pci_dev *pdev, const struct pci_device_id *id) rocker->fib_nb.notifier_call = rocker_router_fib_event; register_fib_notifier(&rocker->fib_nb); + fib_notifier_dump(&rocker->fib_nb); dev_info(&pdev->dev, "Rocker switch with id %*phN\n", (int)sizeof(rocker->hw.id), &rocker->hw.id); -- 2.7.4