]> 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)
commit58732d57a859bdbfa1f55d6de59c07de69b78037
tree1bfaf2a42751cab2a98bbf9ff67d726fb285adbe
parent82d3bb0d97b7819c2141a704764e151247cf271c
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