]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f39ed237258d159e4afd7a03e5945d0884e62fd
tree1bfaf2a42751cab2a98bbf9ff67d726fb285adbe
parent9612245818a60f526a6a26c36c6b26c6fb89664f
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