mlxsw: spectrum_router: Implement next-hop routing
authorJiri Pirko <jiri@mellanox.com>
Tue, 5 Jul 2016 09:27:50 +0000 (11:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 16:06:30 +0000 (09:06 -0700)
commita7ff87acd995e3c024f3262bf90c8682c99b1f6b
tree3eb0eec101ebd3c555bdf527d549e683e97968d1
parenta59f0b312a197d695a6d99469114d2134b5befb2
mlxsw: spectrum_router: Implement next-hop routing

Implement next-hop routing offload including ECMP. To make it possible,
introduce next-hop group entity. This entity keeps track of resolved
neighbours and updates HW adjacency table accordingly. Note that HW
next-hops are stored in this adjacency table, in form of MAC.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c