mlxsw: spectrum_router: Demultiplex FIB event based on family
authorIdo Schimmel <idosch@mellanox.com>
Thu, 3 Aug 2017 11:28:26 +0000 (13:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 22:36:00 +0000 (15:36 -0700)
commit66a5763ac180d43f4a16770791669dc1e085cd5d
tree857f1ff2665a20c82859702a8c319ef879972dfd
parenta460aa83963b185a32a6377eb486b6e613ac8e38
mlxsw: spectrum_router: Demultiplex FIB event based on family

The FIB notification block currently only handles IPv4 events, but we
want to start handling IPv6 events soon, so lay the groundwork now.

Do that by preparing the work item and process it according to the
notified address family.

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/mellanox/mlxsw/spectrum_router.c