rocker: Register FIB notifier before creating ports
authorIdo Schimmel <idosch@mellanox.com>
Sat, 3 Dec 2016 15:45:04 +0000 (16:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Dec 2016 00:29:35 +0000 (19:29 -0500)
commit17f8be7dafce4e4b92fbe7bfec605944df290546
tree1bfaf2a42751cab2a98bbf9ff67d726fb285adbe
parentdb7019557cb48508f3ff9d6b40c2e967702897a6
rocker: Register FIB notifier before creating ports

We can miss FIB notifications sent between the time the ports were
created and the FIB notification block registered.

Instead of receiving these notifications only when they are replayed for
the FIB notification block during registration, just register the
notification block before the ports are created.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker_main.c